Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

serial read from multiple ports

I am hoping someone can point me in the right direction. I need to develop a program that will continuously from 4 serial ports at the same time. I tryed just using the serial read VI and copied it 4 times but when I run the program the data bits at the read ports just keep backing up, they don't get read.

Thanks, Aaron
0 Kudos
Message 1 of 2
(3,186 Views)
Hey Arod,

I would like to help you out, but you are going to have to give us more information. There isn't a serial read.vi. There are VISA Read.vi and Serial Port Read.vi, so I will need to know which one you are using. Also what version of VISA and LabVIEW are you using.

You should be able to run multiple VISA Read operations in parallel when they are using different VISA resources. This should work fine with LabVIEW 6.0.2 and higher, and NI-VISA 2.6 and higher. We have seen them work fine in parallel, as long as you ensure each VISA Read icon is set to be run asynchronously (you can right-click the icon and specify synchronous or asynchronous behavior). If they are synchronous, then that is the reason you are not seeing the parallel behavior you de
sire.

I hope this helps out.

-Josh
0 Kudos
Message 2 of 2
(3,186 Views)