08-04-2009 01:29 AM
Hi all,
I'm using Labview 8.5, Crossbow WSN National Insrument provided drivers and i am wrote an application on the Micaz mote to sample 100 pieces of sound levels at an interval of 1msec using the microphone from the MTS300 Sensorboard and sending them back as one packet. The sending of the packet works fine and i can read each of the 16-bit data sample (2-bytes). My question is, how do i append the pieces of data starting from the first to the 100th data chronologically so that once appended, it can be viewed as a short waveform which can be used for further analysing?
I have included an example of what i'm trying to do but this one is just 4 samples of data. Of course i have to implement the rest of the samples. I just need to know where i have missed out. I have also included the result of the concatenated array. it seems like all the data are piled on top of one another instead of what i expect to be , a " more inclined slope. " The Microphone chart is 'Data samples Vs Relative Time' .
Thanks for looking through..
08-07-2009 12:08 PM
08-07-2009 02:01 PM
As AEASTET said, it is hard to know what you want without seeing real data. If you run the subVI with real data in the controls, Save Data as Default and save the VI and post that. Then we can run the SubVI just like you can.
Because of this, I don't understand why/how you are working with a 2-D array. Both For Loop are set for autoindexing. One of the loops (probably inner) should have a shift register and use a Build array function inside where you Concatenate (right click option on Build Array), the new data gets concatenated to the end of the 1-D array