08-03-2020 08:48 AM
Hi,
We will will be using a 4 ch osciloscope card PXIe-5172 for an application to record an analog waveform between an analog rising and falling edge.
I am trying to understand if I can use NI-SCOPE VIs.
As written here a reference trigger transitions the device to the post reference trigger sample state, aquiring a fixed number of samples.
What I need to set is the start trigger, but this may only be a digital edge.
I'm a bit puzzled, am I missing something? For me the idea of an horizontal window defned by two levels does not appear to be too complex.
What seems to be possile: Hardwar trigger on first level, detect second level on the PC and use a software-trigger. Don't know if it's reliable with high sampling rates.
Could I maybe combine multiple ADC-Channels, one for falling, one for rising edge ?
If I'm correct the only other option is to use the "NI LabVIEW Instrument Design Libraries for Reconfigurable Oscilloscopes" and develop a Host and FPGA application - which I'd want to avoid (looks rather complex).
Regards
Christoph
08-03-2020 11:53 AM - edited 08-03-2020 11:59 AM
Edit: never mind, ignore this post.
Look at the "Analog Window Ref Trigger" detailed here:
http://zone.ni.com/reference/en-XX/help/370592AB-01/scopeviref/niscope_configure_trigger__poly/
08-03-2020 11:58 AM
Sorry, I think that is still just a "start acquisition" trigger.
If you can, I would try to set it up for the worst case scenario (i.e. the most data you expect to need to collect), and collect both your data and analog trigger signal. Then you could trim off the end of your data by searching for the "stop taking data" transition in LabVIEW, as a post processing step.
I think it would not be efficient to tell the scope to keep collecting data until a transition happens, because it must need to set aside the buffer for the data before hand.
08-04-2020 01:36 AM - edited 08-04-2020 01:37 AM
@Gregory wrote:
Sorry, I think that is still just a "start acquisition" trigger.
Thanks anyway for the help!
If I'm not mistaking thats a reference trigger, which marks the end of an acquisition + a fixed number of post reference samples.
However the analog window is just another analog trigger type.
@Gregory wrote:
If you can, I would try to set it up for the worst case scenario (i.e. the most data you expect to need to collect), and collect both your data and analog trigger signal. Then you could trim off the end of your data by searching for the "stop taking data" transition in LabVIEW, as a post processing step.
I think it would not be efficient to tell the scope to keep collecting data until a transition happens, because it must need to set aside the buffer for the data before hand.
Side Info: The signal itself is contains the trigger (rising/faling edge with threshold).
I'll test using two channels. One triggering on a rising edge, the other one on a falling edge.
When a falling edge is detected (data availabe at host) a softwar trigger may work to stop acquisition.
Don't know if it does work with the PXIe-5172. And even if it does it's not a clean solution but suitable in my case.
I just feel like I'm just not seeing the obviously correct way to do this.
Christoph
08-05-2020 02:15 AM
@ChristophHS wrote:
I'll test using two channels. One triggering on a rising edge, the other one on a falling edge.