LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

bug: data changes chanel when I export

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 

Download All
0 Kudos
Message 1 of 16
(3,315 Views)

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...

 


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 16
(3,269 Views)
If you see time number 33 ,you can know what i mean
0 Kudos
Message 3 of 16
(3,262 Views)

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..


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 4 of 16
(3,257 Views)
At first I only used one chanel in FPGA ,the data is correct and then I use more chanel So that is
0 Kudos
Message 5 of 16
(3,249 Views)

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...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 6 of 16
(3,242 Views)

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 

0 Kudos
Message 7 of 16
(3,057 Views)

Can you connect the data save to the array before the decimation and post that file?

 

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 8 of 16
(3,049 Views)

yes,Here it is but I change to use only 2 chanels.

0 Kudos
Message 9 of 16
(3,037 Views)

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...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 10 of 16
(2,987 Views)