LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Auto I/O recognition

Solved!
Go to solution

I am wanting my labview program to automatically find a certain VISA resource over a RS-232 connection. I will have two VISA serial resources plugged into one program over a USB to 4x serial converter that I don't have yet.Is there a way for labview to automatically find each device and use it? I thought of setting a constant as the resource name but I do not know how that will interact with my new adapter and it will also have issues should any ever rearrage the connections. Any ideas?

 

Thanks,

 

Matt

0 Kudos
Message 1 of 2
(2,148 Views)
Solution
Accepted by topic author MattEntner
Sure it can be done. Old school is the VISA Find Resources. You can limit the search to only com ports. This returns an array. For each element, send a command/query that is unique to the instrument you want to find. New style is the system configuration functions. With context help turned on, get the description of the functions. I'm posting by phone and I don't recall the details.

Using constants would severely limit your options.
0 Kudos
Message 2 of 2
(2,142 Views)