LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem to detect an USB device

Hello,

I'm facing an issue with detecting a device. Specifically, I'm trying to detect which USB port my oscilloscope is connected to, but depending on the order in which the device is connected and LabVIEW is launched, it becomes impossible.

If I connect the oscilloscope first and then launch LabVIEW, my VI correctly detects the USB port where the oscilloscope is connected. However, if I connect my oscilloscope after launching LabVIEW, my VI does not detect the port and generates an error (Error code: -1073807360, VISA Write in "Test USB device.vi").

I’ve attached my VI and a screenshot of my block diagram. Any help would be greatly appreciated.

 

Thank you.

Djamel

Download All
0 Kudos
Message 1 of 2
(87 Views)

If the USB scope has the same "alias" everytime you connect it, you can create a subvi to verify if the instrument is connected, and give  a message to the operator. 

 

You can also test while the labview vi is still running connect the scope and verifh that labview finds the instrument. 

0 Kudos
Message 2 of 2
(64 Views)