LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

analyze signal from accelerometer


kbx wrote:

1. In yaw graph - I couldn´t load the data properly. It is necesarry to load it from not calibrated file (MT_00323272_zada.txt). I tryed to load 14th column (YAW), but all values are zero.


In almost all programming languages arrays use zero-based indices. Thus the first column is index=0. Therefore, the 14th column would be index=13. 

 


2. How could I calculate and screen results of time?

t1=(x2-x1)/120

t2=(x3-x2)/120

t3=(x4-x3)/120

t4=(x5-x4)/120

t5=(x6-x5)/120

t6=(x7-x6)/120


I'm not sure I understand the question. You have the individual values, so you're just doing simple subtraction.

 


3.I still don´t completely understand blocks,which are on the picture. Why there is subset array with Lenght (10), why mean and why mean is initial condition and also final condition  


That little bit of code is getting the initial and final conditions for the derivative functions. That was based on the accX, accY, and accZ waveform that had the same initial and final values. All that does is simply take the first 10 values and average them. I did not look at the other waveforms, so I don't know if the initial and final conditions would be the same.

 

Given your revised code:

 

  • I think having a lot of graphs on a front panel makes things a bit unwieldy. My example was for demonstration. I wasn't really intended to be copied verbatim multiple times. You may want to consider using a tab control so you can place the graphs on different pages, and perhaps either not showing the original waveform graph, or perhaps simply showing the original waveform and its derivative on the same graph.
  • Since you are using LV 8.6 you should replace the derivate function with the new one in 8.6. You'll notice that the icon for it has "old" in it, indicating that LabVIEW is telling you that the function has been changed in 8.6. 

 

0 Kudos
Message 11 of 11
(444 Views)