LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Re: How do I get rid of the last carriage return line feed from an array of numbers?

For me I store data comminfg from sensor, it sends hex data when it sends A which is is equivalent to linefeed i lose the next data and I get zeros , how can I solve this ??

Thanks

0 Kudos
Message 1 of 3
(2,788 Views)

If your instrument is not sending ASCII data, then you need to disable the termination character.  This is done with the Configure Serial Port (boolean on the top).



There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 3
(2,781 Views)

Your subject line and question do not match. If the serial interface is swallowing the /0A as described, you would lose part of your data and possibly get out of sync. Getting a zero would depend on the remaining part of the data. 

 

Is the data hex (000A) or binary (/00/0A)? Is the /0A preceded by a /13 CR?  If the previous answer does not fix the problem, provide a sample of the data. 

Michael Munroe, CLD, CTD, MCP
Automate 1M+ VI Search, Sort and Edit operations with Property Inspector 5.1, now with a new Interactive Window Manager!
Now supports full project automation using one-click custom macros or CLI.
0 Kudos
Message 3 of 3
(2,727 Views)