Quantcast
Channel: All LabVIEW posts
Viewing all articles
Browse latest Browse all 203364

Re: Serial Device with LabVIEW

$
0
0

Do you have an exact specification of how the data is formatted?  Does it use a termination character (like an End Of Line)?

 

First, you need to make sure you have a full message.  If the device uses a termination character, then use that and set the number of bytes to read in the VISA Read to something a lot larger than you expect to read.  It will stop when it finds the termination character.

 

From there, it looks like you just have a comma separated value string.  Try using the Spreadsheet String To Array function with a comma as the delimiter.  You can then use Index Array to pick off the values you care about to feed them to wherever you need them.


Viewing all articles
Browse latest Browse all 203364


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>