LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

append array of samples from node

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

Download All
0 Kudos
Message 1 of 3
(3,176 Views)
Do you have data that you can send? I was looking through your pictures and I am not sure what you are looking for for a final product. Do you have an example of a graph that you have done by hand or anything? Do you only what one line that has all of the data built into an array?
Tim
GHSP
0 Kudos
Message 2 of 3
(3,105 Views)

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

0 Kudos
Message 3 of 3
(3,088 Views)