LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to name channels

Hello,

 

I'm currently using DAQ assistant to record voltage from Channels 0, 1 and 2 and  display the values of each channel on a table, each column representing a channel. i.e first column is  channel 0, second column is channel 1 and so on.

 

The problem is that if I want to deactivate channel 0 or delete it from the DAQ assistant then all the other channels get renamed and move one place up. Thus instead of having the first column of my table blank (since I deleted channel 0) I have the last one where channel 2 was suppose to be displayed.

 

Is there any way to assign names to channels and those names to be fixed. i.e Channel 1 has to be always channel 1.

 

Thank you in advance

 

intra

0 Kudos
Message 1 of 4
(2,683 Views)

i think this is not a problem of activated / deactivated channels...you create by DAQ an 2D-array, one dimension the channels, one dimension the time. So if you have 3 channels, you get an array of 3 columns. Deactivating one channel leads to an array with 2 columns. By plotting, you get in the first column of your list the first channel in your array...the names of the channels should rest the same..


THINK G!! 😉
------------------------------------------------------------------------------------------------
Using LabView 2010 and 2011 on Mac and Win
Programming in Microsoft Visual C++ (Win), XCode (Mac)
0 Kudos
Message 2 of 4
(2,672 Views)

thank you for reply.

 

I believe you placed the problem in a better way. You are right if I deactivate a channel I don't get the values from that channel but when I display my recorded values  they all get shifted by a column.

 

For example if I deactivate Channel 1 then the values of channel 2 will be shifted a column to the left when I display the data. Is there any way for this not to happen?

 

thanks

0 Kudos
Message 3 of 4
(2,668 Views)

I'll ask you one question:

 

How should your table/listbox know that the 2 column array you give it, is actually a 3 column array, with first column missing ? ( or secound or 3. or ....)

0 Kudos
Message 4 of 4
(2,663 Views)