How Does the niScope EX Fetch Forever VI Work? How Do I Program it for Continuous Triggering?Primary Software: Driver Software>>NI-SCOPEPrimary Software Version: 2.9 Primary Software Fixed Version: N/A Secondary Software: LabVIEW Development Systems Hardware: Modular Instruments>>High-Speed Digitizers (Scopes)
Problem: I like the continuous nature of the Fetch Forever example. However, when I add a hardware trigger or send a software trigger, the acquisition stops. The documentation for the example says that it sets up a single acquisition with a software trigger, but the software trigger is never given. How does this work? Solution: The niScope EX Fetch Forever VI takes advantage of how the hardware and driver are set up to acquire continuously. When the NI-SCOPE device is set up to acquire pre-triggered scans, the device onboard memory is used as a circular buffer. This way, no matter when the trigger is received, the driver can backtrack and retrieve all the pre-triggered scans requested. The Fetch Forever example takes advantage of this fact by setting up a triggered, single-record acquisition that never sends a trigger. Because the onboard buffer is continuously filling up and waiting for a trigger to determine its pre-trigger and post-trigger samples, the single acquisition never finishes. The example continuously fetches data directly from the onboard buffer. If a software or hardware trigger is received, the single acquisition takes just more than enough samples to fulfill the requested number of post-triggered scans. The next fetch returns the pre-triggered and post-triggered samples. The single acquisition then ends. This is why the example configures a trigger (sets up the device to acquire pre-triggered samples) and never sends the trigger. If your application requires a continuously pre-triggered acquisition, you have the following two options:
Related Links: Attachments:
Report Date: 01/30/2002 Last Updated: 08/06/2008 Document ID: 2HTAGCWZ |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
