LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

factors affecting the speed of serial transmission using labview

We are facing this problem.. We use pc com port for serial transmission (9600 baud) to read from our serial device we write 2 characters( 10 bits each) and we get back 23 bytes from the interface).. Our speed is limited to 235msec otherwise the vi wouldn't operate correctly.. We don't know why is this i think we can reach at least 8 times faster can't we?
0 Kudos
Message 1 of 3
(2,720 Views)
Yma,

Is the response-time of the serial device documented?
Typical small serial devices lack the necessary processing-power.
And what is actually going wrong when you write at a higher rate? Have you checked for error-codes coming from the serial read/write vi's?
Maybe this was helpful,

Patrick de Boevere
0 Kudos
Message 2 of 3
(2,720 Views)
Are you doing a read with time out?

Is PC doing anything else at the time?

Are you reading correct number of gytes?

FYI

Your 40 ms target loop time will not be deterministic in Windows.

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 3 of 3
(2,720 Views)