12-28-2005 10:21 AM
12-28-2005 11:26 AM
When the instrument sends a value at t0, does that value remain on the port until the next value replaces it n seconds later? If so, I'm assuming that whenever I start my vi, it will capture the last value sent to the serial port by the instrument. (I'm also assuming that, as long as I set the instrument to update at least as often as LabVIEW is reading the port, I should be ok). Are both/neither/1 of these assumptions correct?
12-28-2005 11:57 AM
12-28-2005 02:10 PM
Another possibility is to set the serial buffer size to 2 x length of the expected data string. That way, the buffer will always contain a valid string that you can slice to extract the required info, assuming that some delimiter (carriage return ?) can be used to detect the start of the valid data.
This will avoid you the problem of synchronization.
12-30-2005 07:18 AM
Hi
All the data are kept in the Windows buffer, which is quite big. By using serial read you will only read the buffer and get the data from there.
The best way to see if there is any data in the buffer is to use the serial port node and query the buffer for the number of bytes in it.
You can find many useful examples in the examplefinder in LV.
take care
Pawel