Signal Conditioning

cancel
Showing results for 
Search instead for 
Did you mean: 

Daq Assistant channel name

Is there a fairly easy way to extract the channel names out of DAQ Assistant? Or will I have to go back to low level vi's to do this? Have tried using strings but to no luck. Seem the output graph displays the channel names it makes me feel it shouldn't be too hard. Thanks for your help
0 Kudos
Message 1 of 8
(7,135 Views)

Hey Peter,

I don't have LabVIEW installed on this machine, so I can't verify this, but I think you should be able to wire the task output terminal of the DAQ Assistant to a property node and get a list of the channels names.

Eric
DE For Life!
Message 2 of 8
(7,129 Views)
Eric,
 
You are absolutely right. You will need to wire the task output of the DAQ Assistant to a DAQmx Task Property node. From there,  make sure can select "channels" on the property node and create an indicator, which will display the channels in the task.
 
Regards,
Hal L.
Message 3 of 8
(7,114 Views)
Thanks both of you. I tried to create a property node for DAQ assistant but there wasn't an option. Tried doing things with the task name to extract using strings and clusters but with no luck. Didn't try to make a DAQmx task property node though, obvious now you've mentioned it. Will try tomorrow when I have the hardware connected. Sorry if I jumped in to soon with regards to creating forum topic.
0 Kudos
Message 4 of 8
(7,109 Views)

Hi Peter,

The DAQmx Task Property Node that I was referring to is located in Measurement I/O >> DAQmx >> Task Configuration/Control. Once you place the property node on the block diagram, select "channels" and wire the task output of the DAQ Assistant into the Task input of the property node and create and indicator out of "channels" and run the code. You should see the channels in the task in the indicator.

Regards,

Hal L.

Message 5 of 8
(7,099 Views)
Thanks again. I tried using channel property node in DAQnx - data Aquisition but this didn't work.

What "Hal L" says works correctly. Here are the exact steps with labview 7.0. NI Measurements >> DAQmx - Data Aquisition >> DAQmx Advanced Task Options >> DAQmx Task Property Node. Then change the property to "Channels" and wire as necessary or add indicator. This displays the channel names correctly and can now be wired to the build array function, Channel selection vi, etc.

Thanks again guys.
0 Kudos
Message 6 of 8
(7,091 Views)

Hi I'm a complete newb to making a VI.  I came across this post and what I want to do is combine the data from the daq assistant and the channel name in a single array.  I have my channels setup, data coming out, and used the above to extract the channel names.  Now I want to combine the 2 arrays in a single one.

 

thanks

0 Kudos
Message 7 of 8
(6,887 Views)

Hi,


You can't combine different data types into an array. You want to include the channel name (string) with the channel data (numeric). To do this, you can make an array of clusters, where each cluster contains a string (channel name) and an array (your channle data). To do this, use the array and cluster VI's located in the "Array and Cluster" palette. For examples with arrays and clusters, go to Help>>Find Examples>>Browse Tab>>Fundamentals>>Arrays and clusters.

Post to let us know if you have further questions.

Regards,
Hal L.
0 Kudos
Message 8 of 8
(6,862 Views)