![]() |
|
|
The following examples illustrate how to programmatically save NI-DAQmx Tasks, Channels, and Scales. This allows the creation of an application which can be deployed to an end user and when run will configure their system with the tasks, channels, and scales you defined.
Example Descriptions:
Create and Save Task--Shows how to programmatically create and save an NI-DAQmx task.
Create and Save Global Channel--Shows how to programmatically create and save an NI-DAQmx Global Virtual Channel.
Create and Save Scale--Shows how to programmatically create and save an NI-DAQmx linear scale.
Create and Save Task, Channel, and Scale--This is the most complicated of the four examples, so it is encourage you understand the first three examples before running this example. What this example does is create and save a linear scale. Then a DAQmx Global Virtual Channel is created which references the linear scale. The Global Virtual Channel is then saved. Finally, a DAQmx Task is created which references the DAQmx Global Virtual Channel which was just saved. The Task is then saved. So in the end you have a Task which references a Global Virtual Channel which references a Scale.
There are no comments on this document