Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Why can't I access this channel name?

Solved!
Go to solution

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.

 

Create Task

0 Kudos
Message 1 of 4
(3,058 Views)

what exactly do you want to see for your output?

0 Kudos
Message 2 of 4
(3,050 Views)
Solution
Accepted by topic author Michael_78

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

Message 3 of 4
(3,036 Views)

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

0 Kudos
Message 4 of 4
(3,019 Views)