01-09-2012 12:58 PM
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
01-18-2012 10:12 AM
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.
01-18-2012 12:18 PM
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?
01-19-2012 03:59 PM
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