09-02-2015 11:34 AM
IM tring to visa read from 9 different serial port that have devices that send out data 1 per second and send that data to a csv file. the devices send out a carrage return so im using that term char to stop the read. every thing works fine for 1-2 hours then i seem to start losing parts of mesages like the timing is off
09-02-2015 11:51 AM
1. The property node in your init VI is not needed. Those properties are set in the Configure Serial Port VI.
2. There is no need to constantly set the file position to the end. You only need to do that once when you open/create the file, not before every write.
3. You should NOT have a wait in the file I/O loop. The queue data coming in will limit the loop rate. Otherwise, you need that loop to go as fast as possible.
What are you using for serial ports? If they are USB-Serial adapters, you need to check your device's power settings to make sure Windows doesn't just turn off the USB hub as a "power saving" feature.