11-02-2011 05:02 PM
Hello,
Is it possible to pull-out the channel(s) configuration within a TaskID? I know it is just a number which I guess refers to an entry of a table of tasks holding the configuration details. Regardless to whether I am right or not, is it possible to decode the exact and detailed task ID down co channels-level?
Thanks in advance,
Solved! Go to Solution.
11-03-2011 09:11 AM
Are you trying to reverse engineer a task just from the task handle or do you have access to the task handle after it's been created?
If it's the first, there isn't much you can do from the raw string, becuase the task must exist on the machine to get any information from it. If it's a saved task, it will show up in MAX.
If the task was created dynamically and still exists on the machine, you can use DAQmx Stop Task to stop the task then investigate it's properties using the various DAQmx properties. You can use the NI-DAQmx Task property "Channels" to get an array of all the channels in the task. Then you can use the various DAQmx Channel properties on each channel to get more specific details about the channels. For timing and triggering, just use the associated properties.
11-03-2011 09:33 AM
Seth,
Thank you! The latter is the case - I create the task ID and I wanted to check the actual configuration, so you did provide the solution.
Best regards,