Changing Camera Drivers Programatically in LabVIEW

Updated Jan 23, 2020

Reported In

Driver

  • NI-IMAQdx

Issue Details

I am using a camera that can be used with multiple drivers, including IMAQdx. I want to be able to switch between these camera drivers programatically in LabVIEW. How do I do this?

Solution

There is an inbuilt IMAQdx.llb library contained at the directory: 

C:\Program Files (x86)\National Instruments\LabVIEW 20XX\vi.lib\vision\driver

which contains the "IMAQdx Switch Camera Driver.vi". You can use this VI to switch the drivers associated with the camera programatically. Add this to your code as a usual subVI.

The VI has the following connections: 
Driver Name: This is the Device Key found in Windows Device Manager (Properties -> Details -> Driver Key). This should be the key associated with the driver you wish to change to.
Driver Description: This is the driver description - this can be left empty.
Error In/Out: A typical Error in/out in LabVIEW.