09-06-2010 01:29 PM
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
09-06-2010 02:16 PM
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..
09-06-2010 02:42 PM
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
09-06-2010 03:04 PM
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 ....)