G'day Team,
Hope you can give me a quick pointer.
I have a serial scale sensor sending me back a weight in format "ST,GS 2.450kg"
So I am using the serial expression builder in an attempt to get the 2.45 out.
1SERIAL(RS232,"\eST,GS%f[5CV]kg")
Works like a charm getting me 2.5 (seems to round the decimal part up)
So I am trying a formatted float
1SERIAL(RS232,"\eST,GS%5.3f[5CV]kg")
in an attempt to get the full resolution but DT80 & DT800 are not accepting it, error:
"dataTaker 80 E115 - Serial sensor control string error at column 26 [ \eST,GS%5.<err>3f[5CV]kg' ]"
Do you have any advice?
PS - Yes I have checked that the device returns the higher resolution
1SERIAL(RS232,"\e%0s[1$]\e",=1CV,2) shows at least two decimal places
1$ ST,GS 2.250kg
1$ US,GS 2.650kg
1$ ST,GS 2.450kg
1$ ST,GS 2.400kg
Cheers again
Ben Harper
G'day Team,
Hope you can give me a quick pointer.
I have a serial scale sensor sending me back a weight in format "ST,GS 2.450kg"
So I am using the serial expression builder in an attempt to get the 2.45 out.
1SERIAL(RS232,"\eST,GS%f[5CV]kg")
Works like a charm getting me 2.5 (seems to round the decimal part up)
So I am trying a formatted float
1SERIAL(RS232,"\eST,GS%5.3f[5CV]kg")
in an attempt to get the full resolution but DT80 & DT800 are not accepting it, error:
"dataTaker 80 E115 - Serial sensor control string error at column 26 [ \eST,GS%5.<err>3f[5CV]kg' ]"
Do you have any advice?
PS - Yes I have checked that the device returns the higher resolution
1SERIAL(RS232,"\e%0s[1$]\e",=1CV,2) shows at least two decimal places
1$ ST,GS 2.250kg
1$ US,GS 2.650kg
1$ ST,GS 2.450kg
1$ ST,GS 2.400kg
Cheers again
Ben Harper