04-01-2011 04:22 PM
Hi,
I am working on an application that will be embedded in a RT desktop target. To make the system easier to maintain in the future, I would like to be able to generate a DAQmx task programatically from the *.ini file exported from MAX. This way, users don't have to know what my code is doing in order to recalibrate sensors or manage new hardware; they only have to know how to use MAX and where to store the config files on the target.
Where are daqmx task, channel, and scale information stored on a RT target? I've been through the files on the target looking for something that contains my task data but have found nothing, though dropping a system property node into a VI running on the target will give a correct list of the tasks that I have configured. (The project that contains the aforementioned VI does not have the tasks in it ie: I did not import them to the project.)
Is there a utility that will run on the RT target that can generate a task at run time from the exported *.ini files?
Thanks
Solved! Go to Solution.
04-04-2011 05:11 PM
Exahustive keyword searching brought me to an answer on the forums. I'll post a brief summary here in case anyone else uses the same keywords as I have.
1. Export config file from MAX
2. Write a VI that uses the tools in the System Management pallette to upload the configuration to the real-time target.
3. Profit.
In my case, the VI I wrote to upload the DAQmx config also generates the config files for the VIs on the host and target side, so everybody knows what the tasks are called.