From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
06-13-2013 02:12 PM
Hi,
When I get waveform data from my Tek scope it is an array of y values, the time of t0, and the dx.
How do I find out the trigger index? (i.e.. the index into the array where trigger occurred.
Regards,
Mac
06-13-2013 03:30 PM
What did you set your trigger position to? I like my trigger position to be at 10%. So the 10% time would be your trigger point. I want to say there is a querry to get the trigger index, but I would have to look it up.
06-14-2013 06:38 AM
So if I understand correctly:
1) I read the waveform data and (with the samples set to 5M) I get a 5M array of y values
2) If my horizontal position is set to 50% then index 2.5M is the y value at trigger.
Regards,
Mac
06-14-2013 07:54 PM
That is the understanding I had. I really need to find my programmer's guide and look up that command to get the trigger index.
06-15-2013 12:00 PM
Can't you get that from t0 and dt? I know on LeCroys t0 is set so that the trigger is time = 0 by definition. If you want the array index of that point, it's (idx = -t0 / dt). It's been a while since I've programmed a tek scope, but I'm pretty sure it worked the same way. Otherwise what is t0 telling you? Is it always set to 0?