12-20-2017 08:51 AM
@GMAch wrote:
The device just sends for each measurement a string that is ended by a carriage return, with a rate that I can set.
Well that's important information!
You don't need to know how many bytes are coming, just set a larger number of bytes to read, larger than the longest message you ever expect to get. Make sure the serial configure VI is set to use the termination character and that it uses the carriage return (hex 0D, decimal 13). The VISA read will terminate as soon as it sees the carriage return.
12-20-2017 09:21 AM
That doesn't work because he sets one carriage return after each measurement, and the stream is the data from multiple measurements. I can only use it to separate the data from the different measurements.
12-20-2017 09:28 AM
Who is he?
You should send the data separated by commas or tabs, and the end of the message packet be terminated by the carriage return.