03-28-2025 07:27 AM
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
03-28-2025 08:45 AM
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.