LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

best way to read from 9 devices at the same time

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

Download All
0 Kudos
Message 1 of 2
(2,529 Views)

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.


GCentral
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 2
(2,516 Views)