10-17-2012 06:06 AM
Hi All,
On this VI I am pragmatically creating a task and adding a channel. I then get the channels, index the first channel and try to access it. LabVIEW says it is an invalid channel! If I create the task in MAX, indexing the channel and reading its propertied works fine. I have read much documentation but I cannot see what is wrong here. Any ideas?
Thank you all,
Michael.
Solved! Go to Solution.
10-17-2012 09:05 AM
what exactly do you want to see for your output?
10-17-2012 10:43 AM
Michael,
You have wired a channel to the task input of the DAQmx Channel Property node. You need to wire the task wire to this. Then use the 'ActiveChans' property of the property node to distinguish between the channels in your task. I have attached an example of how to do this.
Hope that helps,
Dan
10-17-2012 03:10 PM
Dan,
Thank-you, its just that when the property node is labelled 'DAQmx Channel' it did not occur to me to wire in a task and select a channel. I understand now.
All the best,
Michael