04-06-2010 03:52 PM
I have interfaced pressure and vacuum sensors to 30 AI channels on USB-6225. With the appropriate slope and offset I convert the voltage to PS as shown in the attached image. I have interface even number channels to pressure sensor and odd no channels to vacuum sensor. I used a one dimensional array inside my cluster to get all the voltage reading from 30 channels and inside the for loop I do the scaling to determine pressure or vacuum psi. I need to seperate this value into two array one for pressure data and one vacuum data and store it inside my cluster for processing down the line. I need some help.
Right now my Vi does this
array index voltage data pressure data vacuum data
0 1.17 1.3psi 0
1 1.18 0 -1.2psi
2 1.17 1.3psi 0
3 1.18 0 -1.2psi.
But I want it to do this
array index voltage data array index pressure data array index vacuum data
0 1.17 0 1.3psi
1 1.18 0 -1.2psi
2 1.17 1 1.3psi
3 1.18 1 -1.2psi.
Please need some help.
Solved! Go to Solution.
04-06-2010 03:57 PM - edited 04-06-2010 03:59 PM
If the data elements are nicely spaced, even and odd, in the initial array, you should be able to split the data out, before scaling, into the pressure and vacuum data with a "decimate array" function.
jpg doesn't seem to come through with any resolution, at least I wasn't able to see what you had done. That having been said, don't use .bmp (I know you didn't).
04-06-2010 04:03 PM