04-27-2015 01:21 PM
I have a 16 digit serial data stream which I am parsing to obtain the annuncator/units "81 = kg cm, 82 = Lb inch and 83 = N cm" using the string subset. This string is then passed to the case structure. When the serial string is read the default case is always used. The string that is being read is 41810000000001 with a start word before and an end word behind the string. I have attached my vi. When I use the prob to debug the value is " ". Is the string being parsed correctly? I must be missing something. Thank you.
Solved! Go to Solution.
04-27-2015 02:05 PM
You should connect output from VISA read to the string subset function, now VISA resource is connected.
04-27-2015 02:09 PM - edited 04-27-2015 02:10 PM
So what happened to fixing the VI like I showed you in the other thread? http://forums.ni.com/t5/LabVIEW/How-to-set-Decimal-Point-position-from-right-to-left-Serial-Read/m-p...
You still have the bytes at port. BAD. And waiting for 32 or more bytes when you know you are getting 16 bytes. Also BAD.
The problem with your current VI is you are parsing the VISA reference and not the string you got from the VISA read.