09-19-2022 07:18 AM - edited 09-19-2022 07:57 AM
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
Solved! Go to Solution.
09-19-2022 07:40 AM
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
09-19-2022 07:53 AM
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.
09-19-2022 09:00 AM
Thanks all for the help. figured out. I missed this "The time results from t0 + (index*dt)". 😅