DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Get a part of the data

Solved!
Go to solution

Hello,

 

I have a question about only getting a part of my data. In the picture below you can see two windows, the top is the position in percentage and the bottom is the corresponding pressure. What I want is only the last part (where the position is moving from 0 to 100 and back to 0), I've drawn lines in the corresponding color to show the parts.

My idea is to reverse the data, get the parts by searching for the first time the position is 0% after it has been 100%, cut that part in both the position and pressure data and reverse them back. As you can see it is not possible to do this without reversing because the start of the data is not the same for each measurement.

Can you help me out?

 

Regards,

Jeroen

 

get part of graph.PNG

 

 

0 Kudos
Message 1 of 2
(2,296 Views)
Solution
Accepted by topic author JeroenBK

Hi Jeroen,

 

It looks like you'd be best served to use the ChnEvent...() functions in a custom VBScript, although you could mock up an approach by hand with the Event Search function in the Channel Functions palette of the ANALYSIS panel.  The details of the VBScript and the manual steps in ANALYSIS will depend on exactly what is in your data files, though.  I'll be happy to look into this with you if you can post a representative data file.  You could always email it to me directly at brad.turpin@ni.com if you prefer.

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

Message 2 of 2
(2,266 Views)