From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Multifunction DAQ

Showing results for 
Search instead for 
Did you mean: 

Trying to get Physical Channel from DAQmx Task

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?

David R. Asher
Certified LabVIEW Architect since 2007
0 Kudos
Message 1 of 3
Accepted by topic author David_R._Asher

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,
Message 2 of 3
Thank you. That is exactly what I needed to do.

David R. Asher
Certified LabVIEW Architect since 2007
0 Kudos
Message 3 of 3