NI-DAQmx INI Files

NI IMAQ Measurement and Automation Explorer

NI-DAQmx INI Files

NI-DAQmx INI files are text files that can contain tasks, channels, and scales, but not device configuration. To import/export device configurations, use .nce files. Use .ini files if you want to import and export configurations using a text format that you can edit outside of MAX.

NI-DAQmx INI files must start with a heading that includes the major and minor version numbers for the version of NI-DAQmx you want to export from or import to.

The INI file consists of entries for tasks, channels, and scales. Each entry starts with the type of object and the name of the object, enclosed in brackets. The possible object types are DAQmxTask, DAQmxChannel, and DAQmxScale.

Each entry then consists of property/value pairs in the form property = value.

You can use any combination of English LabVIEW long and short property names, CVI property names, and C++/.NET class.property names.

To indicate that a channel is a local channel, include the task name and a forward slash before the channel name, both in the entry for the channel and in the Channels property for the task. The task name is required because two tasks can have a local channel with the same name.

To add comments to an NI-DAQmx INI file, start the line with a semicolon.

For more examples of specific configurations, create tasks, channels, and custom scales in the DAQ Assistant, then export the configuration to an NI-DAQmx INI file.