LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Analysing Graphics in Labview

Hello,
 
This is a mechanical engineering student, a beginner LabVIEW user,  from Istanbul, Turkey. I am trying to draw a graphicby LabVIEW with the data which i deliver from an acceleration  sensor and and do some calculations with this graphic. Since i have managed to deliver the data from the instrument and draw the graphic, i have been dealing to do the calculations but i have a small trouble out of it.
 
In this graph, acceleration goes the same 0 level by the time (which is the x axis of the graph) and acceleration goes up and down for a couple of seconds and keeps its 0 level same as it has at the beginning. I need to calculate some integrations of the area under this curve of the graphic.
 
For example, if the acceleration level starts to rise up at the time unit 't1' and falls back to its old 0 level at the time unit 't2', then, i need to divide this t1 - t2 distance to 100 pieces and start to calculate my integral from t1 to first piece, from t1 to second piece,..., from t1 to t2 and again from first peace to second piece, from first piece to third, to fourth,..., and to t2, and so on. at the and i need to have 100 + 99+ 98+ ...+ 1 calculations.
 
İ will appreciate it if any user can give an advise concerning with this problem.
 
Regards
 
Mehmet Emin Ekşi
0 Kudos
Message 1 of 2
(2,553 Views)
Hey Mehmet Emin Ekşi,
    Depending on what method you are using to acquire the data, the data should come out as an array of some data type.  If it happens to be an array of doubles, you should be able to extract certain values from that array and do your processing from there.  There are multiple tutorials available on ni.com that will teach you how to use LabVIEW to complete your architecture.  The NI community will be glad to help you here as well, if you can provide a more specific question and provide more information.  Specifically:
  • What version of LabVIEW are you using?
  • How are you reading the data into LabVIEW?
  • What is the data type you are using?
    If you could provide these answers, we'll be glad to help you out. 

Brian B
Account Manager
National Instruments
0 Kudos
Message 2 of 2
(2,526 Views)