Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to get Physical Channel from DAQmx Task

Solved!
Go to solution
I configured a task using MAX and I am now referencing it in my application. I am trying to programmatically get the physical channels from the task. I used a property node to get all the channels within the task and then tried to use those channels (in a for-loop) as the reference to another property node, but I get error -200088 with the following possible reason: "Task specified is invalid or does not exist."

I am attaching a simple VI to demonstrate the problem.

Should this not work?


Thanks,
David R. Asher
Certified LabVIEW Architect since 2007
0 Kudos
Message 1 of 3
(3,203 Views)
Solution
Accepted by topic author David_R._Asher
David,

The channel property node takes a task handle as input, rather than a channel name. I have modified your VI to take a task as input, then loop through the list of channels in the task to get the physical channel name for each channel. Hopefully this will get you on your way.

Hope this helps,
Dan
Message 2 of 3
(3,198 Views)
Thank you. That is exactly what I needed to do.


David R. Asher
Certified LabVIEW Architect since 2007
0 Kudos
Message 3 of 3
(3,196 Views)