The following example is configured to acquire data in producer-consumer architecture and stream acquired data to disk.
How can I change this program to work around a trigger event. I want to acquire data only between 2 trigger - start and stop (reference) trigger. And then write the acquired data to the disk. The following is a scenario.
- using a pulse train running at 1 Hz (1 sec time domain) from a pulse generator with trigger
- At this point I assume that there is a trigger pulse generated before every actual pulse
- spec says delay between trigger and actual pulse is 4.0ps
- How can I change the example to add in a reference trigger that detects the next trigger pulse and stops acquisition. So the total acquisition time = 1.0 s
Any advise is appreciated. Thanks!
The following are the references I followed to understand how to add a stop trigger but was unable to complete:
- https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019MiHSAU
- http://www.ni.com/tutorial/4329/en/
- Use of start and reference (stop) trigger together with niScope
NI System Configuration:
- NI PXIe-1071, 4-Slot 3U PXI Express Chassis , 1 GB/Slot throughput, Part Number: 781368-01
- NI PXIe-PCIe8381,x8 Gen2 MXI-Express for PXI Express Interface,3m, Part Number: 782522-01
- PXIe-5160 PXI Oscilloscope, 500 MHz, 10 bits, 2.5 GS/s, 2 Channels, 64 MB, Part Number: 782621-01
- Astronics PXIe-1209 2-Channel, 100 MHz PXI Pulse Generator, Part Number: 785033-01