Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Extracting AI configuration from DAQmx Task ID...?

Solved!
Go to solution

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,

0 Kudos
Message 1 of 3
(2,975 Views)
Solution
Accepted by topic author golubovski

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.

Seth B.
Principal Test Engineer | National Instruments
Certified LabVIEW Architect
Certified TestStand Architect
0 Kudos
Message 2 of 3
(2,969 Views)

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,

0 Kudos
Message 3 of 3
(2,967 Views)