Search code examples
driverlabview

Adapting existing win usb driver for LabVIEW


I have a specific USB device that has it's own driver for Win7. It works fine in my .NET application, I'm using drivers functions (C++) to manipulate device.

Now I'm trying to get this device work in LabVIEW. Is there a way to somehow adapt existing driver for it? Or it is useless and I need to write completely new driver for LabVIEW?

For now I created a driver using "NI-VISA Driver Wizard" so that "NI MAX" and "NI-VISA Interactive Control" detect my device. But I don't know what to do next?


Solution

  • Compile the driver C source files as a dll.

    https://forums.ni.com/t5/Measurement-Studio-for-VC/How-to-create-a-DLL-file-from-a-C-file/td-p/866863

    Then import the dll into LabVIEW.

    http://digital.ni.com/public.nsf/allkb/DCB90714981A1F148625731E00797C33

    As highlighted by Prain, the following is an example describing how C/ dll can be used in LabVIEW

    https://forums.ni.com/t5/Example-Program-Drafts/Using-Existing-C-Code-or-a-DLL-in-LabVIEW/ta-p/3499233