Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Independent instruments through same USB port

Hello there,

 

I want to control two different instruments through Labview: one applies pressure to it's outputs, the other, independent from the first, measures the flow rate of the outputs. I want to implement the control for both in the same VI and I'll probably be using some form or other of producer/consumer architecture for this. But, through a USB hub, they're both connected to the same USB port on the computer. My idea was to use 2 separate producer/consumer structures to have independent control over both, but is this advisable in this configuration or should I rather use a single consumer for both?

 

(Also, I wasn't sure if this is the right section for this, excuse me if I'm wrong.)

 

Have a nice day.

 

Edit: I probably won't need a producer/consumer architecture for the measurement instrument, but I'd still like to know your opinion on this.

0 Kudos
Message 1 of 3
(4,550 Views)
If you are using an event atructure be sure that you have only one per vi. It is not forbiden to use more but be very careful in not having the same event appear in more than one structure.
Build independent vi's for each hardware and combine them in a higher level vi. This also makes testing easier.
Look at standard instrument drives and use the same ideas.
greetings from the Netherlands
Message 2 of 3
(4,534 Views)

Thanks a lot, that's pretty much what I was going to do, but I wanted to get the opinion of someone more professional than I am 😉

 

Have a nice day!

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