Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Shared USB port execution

Solved!
Go to solution

Hi:

 

I use a USB to RS-232 (8x) hub and I created a SubVI to read data via a COM port using VISA. Everything works fine.

When I try to execute two instances of the same SubVI in parallel (by putting two instances of the same VI on the block diagram with different COM ports as inputs), the SubVIs do not execute at the same time but sequentially. Which settings will allow to execute the SubVis in parallel and share the USB port?

 

Thanks!

Dan

 

0 Kudos
Message 1 of 4
(3,256 Views)

Please remeber that USB is also a serial line so two ports on the same usb bus never can run simultaneously

greetings from the Netherlands
0 Kudos
Message 2 of 4
(3,236 Views)
Solution
Accepted by topic author Dan10

Hi Dan10

 

Have you tried

" VI>>Properties>> Excecution >> Reentrant Execution(Checked) " ?

 

You should be able to communicate with 

- different instances of the same program(VI) on the different ports...does not matter USB, serial, GPIB.

 

Does this work for you?

 

(On the other hand you want to access the same port, then you may have to isolate your 2 instances (as GUIs) talking to the same underneth driver resource.)

 

 

Message 3 of 4
(3,223 Views)

Great. It works.

Thanks!

0 Kudos
Message 4 of 4
(3,202 Views)