LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Finding the Time Difference form the two different Triggers of different signals.

Solved!
Go to solution

 

Hi guys,

 

I have tried to find the delta Time in the attached picture. you can see the same scope when you can at 67u seconds.(in reference to the Vi)

 

I have to trigger at 1 on the green signal and trigger at 2 on the blue signal and find the time difference. (please see the attached picture)

 

.I try to reduce the wave till the rising edge I wanted but for some reason using the Time in Simple Trigger, the function doesn't give me the right time when it's triggered.

 

please help me with this. Thank you.

 

 

UPDATE: VI UPDATED

 

 

 

 

 

 

start_time.PNG

0 Kudos
Message 1 of 4
(1,022 Views)

Well first of all, any triggering condition for the green signal is being satisfied many times just within the chunk of data shown on your graph or chart.  How are you to determine which one to use as the starting point for delta t?   That's going to be at least *part* of the problem you're having.

 

I don't see that the code is doing anything to be careful about which rising edge to find.

 

Also, you shouldn't be reversing your array of blue VLIN data -- that'll make either a rising or falling edge search potentially ambiguous as well.  If left unreversed, you should be able to find the desired rising edge reliably.

 

 

-Kevin P

ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
0 Kudos
Message 2 of 4
(995 Views)

Thanks for the reply. This is the last chunk of data, which is useful for me, so I reverse the main data and find the first falling edge and delete the data before and then find the 2nd fall edge and delete..and so on till the 9th falling edge and get the trigger point. but my time goes to 0sec at the start when I delete and don't get the correct delta. But somehow I wanted to save the real-time and differentiate from vlin trigger to get delta time. 

lat_chunk.PNG

0 Kudos
Message 3 of 4
(990 Views)
Solution
Accepted by topic author tars364

Thanks all for the help. figured out. I missed this  "The time results from t0 + (index*dt)". 😅

0 Kudos
Message 4 of 4
(944 Views)