Create C Code
- Select Tools»Create C Code.
- Enter the file name under which you want to save the C code in the Implementation File Name control.
- If you would like the C Code Creation Wizard to generate a main function, which acquires an image from a source, enable the Create Main Function option. Enter the name of the main function file in the Main File Name control.
- Select the Image Source for the C Code creation. The following image source options are available:
- Image File—Creates the C code to open an image file from the hard drive.
- Acquisition from an NI Image Acquisition device—Creates the C code to acquire an image from a camera connected to an NI image acquisition device.
- Triggered Acquisition from an NI Image Acquisition device—Creates the C code that performs a triggered image acquisition with an NI image acquisition device.
- Acquisition from an IEEE 1394 Camera—Creates the C code to acquire an image with NI-IMAQ for IEEE 1394 Cameras.
Note You must have NI-IMAQ for IEEE 1394 Cameras installed to create the code to acquire images from IEEE 1394 cameras. - Browse to the location to which you want to save the generated files.
- If you would like to add the generated files to a LabWindows/CVI project, enable the Add Files to LabWindows/CVI project option. If you have a LabWindows/CVI Project open to which you want to add the generated files, enable the Use Currently Open Project option. Enable the Create New Project option to add the files to a new project.
Note This option is available only if LabWindows/CVI is installed on your computer.