Solution
The current camera file that shows up next to the Channel under Measurement & Automation Explorer (MAX) is actually set by lines in the interface file (
.iid
) for your specific interface. If your interface name is img0, then this file will be named
img0.iid
and will be located at
<Users>\Public\Documents\National Instruments\NI-IMAQdx\Data (for Windows XP and older, the directory is
<Documents and Settings>\All Users\Documents\National Instruments\NI-IMAQ\data)
In this file, there is a line for each channel followed by the name of the camera file (
.icd
) used by that channel. These camera files are contained in the same directory as the interface file (see path above).
You can parse the camera file as a text file and replace the portion of text in the quotation marks following the respective channel with the name and file extension of the new file to use. See the VI attached below for an example of how to programmatically change your camera file.