Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Task property node

I want to get a list of the channels in a task whether or not the device is present.  When the device isn't present, the property node errors and I get an empty array even though all the channels show up under the task in MAX.  Is there another way of getting the channel names even if the device isn't present?

 

Thanks,

 

Robert

Robert Mortensen
CLA, CLED, LabVIEW Champion, Principal Systems Engineer, Testeract
0 Kudos
Message 1 of 4
(2,957 Views)

Hi Robert,

 

As you know, MAX has the ability to save the Task of a device even if the device is disconnected. There is special code that makes it so that MAX tasks can be saved, even if they are invalid, which unfortunately isn't directly user available. LabVIEW cannot access these properties to list the channels of an invalid task. One workaround is to export that task to an ini or txt file.  You can then parse the file however you wish. You may be able to get the information you need that way.

 

 

Regards,
Daniel REDS
RF Systems Engineer

Help us grow.
If a post solves your question, mark it as The Solution.
If a post helps, give Kudos to it.
0 Kudos
Message 2 of 4
(2,914 Views)

So the official answer is that the error is expected behavior, and there's no way to get the channels in the task unless the device is connected?  Seems more like a bug to me.  Is there a CAR for the issue?

Robert Mortensen
CLA, CLED, LabVIEW Champion, Principal Systems Engineer, Testeract
0 Kudos
Message 3 of 4
(2,903 Views)

Hi Robert,

 

If you would like to have the channels of a disconnected device, you would have to run your VI and save it in a .ini or .txt file while it is connected so it remains when you disconnect the device. If you would like, you can post your request in our Product Suggestion Center

Regards,
Daniel REDS
RF Systems Engineer

Help us grow.
If a post solves your question, mark it as The Solution.
If a post helps, give Kudos to it.
0 Kudos
Message 4 of 4
(2,888 Views)