Hi,
The NI-Scope driver installs several examples for using your device. The one that would be best to start with is "niScope EX Measurement Library.vi" and its default installation location is "C:\Program Files\National Instruments\LabVIEW 8.2\examples\instr\niScope". You can also find that folder in the Start menu: Start » Programs » National Instruments » NI-SCOPE » Examples.
A few important distinctions to make with a scope are the trigger types and the idea of a record. Scopes have two basic kinds of triggers: start and reference. A start trigger tells the scope to start listening to samples and write them to on-board memory, and a subsequent reference trigger tells the scope which of those samples to keep and return to you. You don't have to specify a start trigger, and the device will start immediately putting samples in its on-board memory. You must configure a reference trigger, and you can choose from several types of reference triggers. In your case, you would want to configure an analog edge reference trigger for a falling edge on channel zero. The example above allows you to do this without any modification. If you want more information about triggering, refer to the driver documentation in Start » Programs » National Instruments » NI-SCOPE » Documentation » NI High Speed Digitizers Help and navigate to Fundamentals » Triggering.
A record is a collection of samples recorded around the reference trigger. When you fetch a record from the scope, you ask for X samples. The reference trigger will allow you to specify how many samples in the record are before the trigger and how many are after. This is the "Reference Position". A reference position of 0 means that all of the samples in the record were recorded after the reference trigger (the first sample being taken at the same time as the reference trigger). A reference position of 100 means that all of the samples in the record were recorded before the reference (the last sample being the taken at the same time as the reference trigger).
For your measurements, I would set an analog edge reference trigger for your first event and then fetch all of the samples after that event. That means using a reference position of 0. Finally, when setting the record length and sample rate, I would take your device's on-board memory size into account: do not try to record and keep more samples than the scope can hold.
Joe Friedchicken| NI Configuration Based Software |
|---|
Get with your fellow OS users [ Linux ] [ macOS ] | Principal Software Engineer :: Configuration Based Software Senior Software Engineer :: Multifunction Instruments Applications Group (until May 2018) Software Engineer :: Measurements RLP Group (until Mar 2014) Applications Engineer :: High Speed Product Group (until Sep 2008) |