06-06-2014 01:55 AM - edited 06-06-2014 01:59 AM
Hi
I want to measure and write data into my computer,So I can do it but It have a little problem about data that I export.I use NI 92222,cRIO-9024 which is have 4 chenals,but I use only 3 chanels.So,Data that I export is swap,when time is running the data from chanel 1 become chanel 3 ,chanel 2 become chanel 1,and chanel 3 become chanel 2
It's like a loop(see data at book1.xlsx)
So,How can I fix this problem.
Thanks you all
06-06-2014 08:21 AM
Nothing is swapped, and what you described isn't a bug -- it's what you programmed.
You are reading and saving three channels so the first one (regardless of channel number) will be in the first column, the second channel will be in the second channel - and so on.
Mike...
06-06-2014 08:35 AM
06-06-2014 08:45 AM
Ok, I see what you mean now, it rotates every 33 values. What does the data look like before the decimation. Is everything in correct order there?
Mike..
06-06-2014 09:05 AM
06-06-2014 09:14 AM
Yes, but when you have multiple channels, if you look at the data before the array decimation function, is the data all in the correct order?
Mike...
06-08-2014 08:53 PM
No,The Data before array decimation function is very messy . It combine with 2 chanels.
P.S. Sorry to reply you lately because my measurement system is in office ,So I can not access to my work place on weekend
06-08-2014 09:03 PM
Can you connect the data save to the array before the decimation and post that file?
Mike...
06-08-2014 11:16 PM
yes,Here it is but I change to use only 2 chanels.
06-09-2014 09:35 AM
Ok, if I understand the data, it looks like the first channel always has a positive value, while the second channel always has a negative value. If that it correct, the data does seem to be in the correct order -- at least through 100 samples. Does the data look correct on the output of the decimate function (one array of all positive value and one array of negative values)?
Also, I would like to see the data with three channels, but for now it looks like the decimation function could be to blame. You can perform the same basic operation using the reshape array function. Turn the 1D array into a 2D array with the same number of columns as there are channels in the data.
Mike...