07-17-2008 10:58 AM
07-18-2008 06:50 PM
Hi tkmn,
Unfortunately there is no way to directly access the TDC on your PXI-5152 to make finer time measurements between your two triggers and therefore, the best time resolution you can achieve with this device is 1 ns. Is there any particular reason why such a time resolution would be required in your application?
07-20-2008 06:42 PM
07-21-2008 06:24 PM
Hi tkmn,
Unfortunately, according to the NI-SCOPE Help file, the relative initialX value only gives you the time between the first point in your waveform (determined by your reference clock) and the trigger. Therefore, you will not be able to use this to get the time difference between two triggers. However, I think that you may be able achieve your task by using two PXI digitizers and synchronizing their clocks. You can use the first digitizer for the first trigger and the second, for the second trigger. And since the relative initialX value should be based off the same reference clock, you may be able to take the difference of the two to find your final time difference.
I hope this helps,
07-21-2008 06:56 PM
07-22-2008 10:09 PM
absolute trigger time = absolute initial x – relative initial x
where "absolute initial x" is the time of the first point in the waveform in units of seconds (this has a resolution of the maximum real-time sampling period of the digitizer) and "relative initial x" is the time between the first point in your waveform and the reference trigger (this has the time resolution of the TDC).
Although this will allow you to get sub-nanosecond resolution for one reference trigger, since you can you only trigger off of one source in any given session, you will be unable to get the absolute trigger time from a second trigger source. However, if the time between triggers is long enough, you may be able to trigger your data acquisition to sample one record containing a single data point and reinitiate a new data acquisition to receive your second trigger. In the event that this is not possible you can use two scopes on the same chassis and synchronize their clocks and each have a different trigger source to obtain their respective absolute trigger times and find the time difference.
I would also like to point that depending on the type of trigger ou are receiving, there may be a way of using interpolation to give you sub-clock period resolution.