LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems write in I / O with VISA Serial (low speed of the program while recording)

Solved!
Go to solution

Hi! I being monitored voltage Serial port speed 230000Baud / s. It is fast and accurate, but when I want to record this data to a file tmds, xls, txt, this is reduced the speed of the program and buffer overflows series, which reduces the rate  voltage monitoring information. I have tried on 2 PCs with four core processors . I think that this is not due to the PC.

Because of what it might be?

0 Kudos
Message 1 of 3
(2,388 Views)
Solution
Accepted by topic author Pachik

File IO is SLOW.  So you need to offset that somewhere.  Look at the Producer/Consumer.  The idea here is to have a loop that just reads the serial port (as fast as it needs to) and use a queue to pass the data to another loop for processing and saving it to disk.


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 3
(2,382 Views)

Thank you! I like it helped.

0 Kudos
Message 3 of 3
(2,347 Views)