LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Visa resource name

How can I see in the dropdown of the visa resource name function the connected usb? I have an arduino plugged into the usb port. I use macos as labview's operating system. in vi MAX if the usb port appears. I have no visa installed.
0 Kudos
Message 1 of 7
(2,111 Views)

@MRC85 wrote:
How can I see in the dropdown of the visa resource name function the connected usb? I have an arduino plugged into the usb port. I use macos as labview's operating system. in vi MAX if the usb port appears. I have no visa installed.

So VISA isn't working and you didn't install it?

 

Hmm. Perhaps installing VISA will make VISA work.

0 Kudos
Message 2 of 7
(2,072 Views)
if I have visa installed and it does not appear even refreshing.
0 Kudos
Message 3 of 7
(2,063 Views)
  1. What are you expecting to see in NI-MAX as far as the Arduino?
  2. You are NOT going to see the actual Arduino.
  3. All that will show up in NI-MAX and the VISA resource in LabVIEW is the virtual Com port the Arduino is assigned unless you give it a VISA Alias in NI-MAX
  4. Open Windows Device Manager and look under Ports (COM & LPT) 
  5. Can you see the virtual com port that is assigned to the Arduino?
  6. Try unplugging and plugin it back in with the Device Manager open
  7. You should see a com port appear and disappear, that's the Arduino

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 4 of 7
(2,037 Views)

You can probably loop over all VISA resources (or just the serial resources) and get information like (the port's) manufacturer ID and serial nr from the VISA properties.

 

That's probably as good as it gets, as the physical serial connection doesn't know anything about the device that is connect.

 

You can try to get serial device information, for instance by sending a *IDN, but there's no standard for that, so you'd have to send all requests for ID for all devices you expect, and then hope that one request (like *IDN) doesn't ruin other devices that don't support *IDN.

0 Kudos
Message 5 of 7
(2,014 Views)
I have put an alias on the usb port and it works for me.
Message 6 of 7
(1,981 Views)

(Your first!) kudo, for posting the solution!

 

Please accept your solution as solution, so other can see this thread is solved, and find the answer easily.

0 Kudos
Message 7 of 7
(1,964 Views)