Question
What is the difference between the ASCII data commands Get Result, Get Value, and Get Decision?
Answer
Sensor Model | All |
Firmware Version | 3.x, 4.x |
SDK Version | 3.x, 4.x |
Below are 3 examples of the Get Decision and Get Value commands:
Let's say the Custom formatted string is (%time, %value[0], %decision[0]).
Command: Decision (no arguments specified)
Response: OK, 33244776916, 45636, 1
<success>,<time>,<measurement>,<decision>
You receive exactly what is stipulated in the custom string.
Command: Decision, 0, 1, , , n
Response: OK, x0, x1, x, , , xn
where x[i] can be 0 (fail) or 1 (pass)
Let's say we ask for decision of measurement ID 878 which is non-existent.
Command: Decision, 878
Response: ERROR, Specified measurement ID not found. Please verify your input
Same applies to Get Value except the command is Value instead Decision and response contains measurement values rather than decision. Pretty straight forward.
Get Result example
Let's say Custom formatted string is (%time, %value[0], %decision[0])
Command: Result (no arguments specified)
Response: OK, 33244776916, 345346, 0
<success>,<time>,<measurement>,<decision>
Command: Result, 0, 4 (I want complete results of measurement tools ID 0 and ID 4)
Response: OK,M0x02,00,V45900,D0,M0x06,04,V-7222,D1
<success>,<measurement type>,<measurement ID>,<value>,<decision>,<measurement type>,<measurement ID>,<value>,<decision>
* measurement types are enumerated in User Manual 3.5.2.123 page 280
Command: Result, 876 (non existent measurement ID)
Response: ERROR,Specified measurement ID not found. Please verify your input
Comments
0 comments
Please sign in to leave a comment.