Example Code

Change Camera File Programmatically

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.


  • LabVIEW


  • IMAQ Vision

Code and Documents



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 attached VI for an example of how to programmatically change your camera file.

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.