LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to invoke VI application upon attaching a USB device without LabVIEW running?

Hi
I have a VI to communicate with an instrument with USB interface.
Now i have to run the VI application after attaching a device.
Is it possible to have an arrangement, such that, the VI application will automatically opens upon attachment of device ??
 
Thanks
 
Ishant
0 Kudos
Message 1 of 2
(2,769 Views)

Ishant,


I hope you are doing well today! What you are asking for is to enable the Autorun feature for that USB instrument. You can then call a LabVIEW executable using the .inf file. You will need to tinker around with the driver file for that instrument or the file storage system within that instrument; and it might not be trivial to do so. From USB Storage - FAQ for Driver and Hardware Developers:

The Autorun capabilities are restricted to CD-ROM drives and fixed disk drives. If you need to make a USB storage device perform Autorun, the device must not be marked as a removable media device and the device must contain an Autorun.inf file and a startup application.”


You may find this link useful, Creating an AutoRun-enabled Application

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 2 of 2
(2,752 Views)