LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

two diferent devices under the same VISA resource

Is the fist time I work with VISA, and I have a simple question... if I want to control two different devices, should I have two different VISA resources? Each VISA resorce would be related to each device (a given port) Is it ok? I have seen one example to control two devices, but there is only one VISA resource, so I am confused...

 

Thanks in advance!

0 Kudos
Message 1 of 4
(2,692 Views)
Yes, each resource would be unique. If you are going to mention an example, you need to provide a link.
0 Kudos
Message 2 of 4
(2,682 Views)

Hello,

I attach the  example I was talking before. In this example,  it is sent the same request for two devices (Ej linear stages) at the same time. I would like to control two stages at the same time but with different requests. Therefore, should I have two VISA resources?

My two devices are connected by means of RS-232 to USB converters, therefore, which VISA resource name should I use?

Thanks in advance for your help,

 

0 Kudos
Message 3 of 4
(2,659 Views)

That example is talking to a device with a single serial port connection and internally it uses a device number to differentiate. If you have two separate serial ports connected to two different instruments, then you must have two separate VISA resources.

0 Kudos
Message 4 of 4
(2,656 Views)