Two Channel Scope Acqusition And Processing Using Visual Basic 6 With Measurement Studio 6
Overview
This example can also be used with other SMC-based High Speed Digitizers from National Instruments. This example is not officially supported on non-SMC-based High Speed Digitizers such as the 5102 and 5112, though it may work correctly with them.
Downloads
Filename: 5105_vb_6.zip
Requirements: View
Two Channel Scope Acquisition and Processing
Recommended Input Signal: 100 kHz, 1 Vpp, sine wave
This example illustrates using some of the advanced measurement library
functions such as waveform processing. The example calls Auto Setup once
to configure the vertical and horizontal subsystems of the digitizer based
on the input to all the channels.
The SetAttribute function is used to set some of the common filter
parameters. For more information about measurement library parameters, see
the NI-SCOPE Function Reference help file. The NI High-Speed Digitizers Help
also offers an introduction to the analysis algorithms provided in NI-SCOPE.
When Add Waveform Processing function is called, all the waveform
measurement parameters are cached. Before any measurements are retrieved,
that set of parameters is used to perform the processing measurement on the
acquired waveform.
In this example, both the call to Fetch Measurement and Fetch Array
Measurement are computed using the result of the processing step. Use the
"None" array measurement function to retrieve only the processed waveform.
The Clear Waveform Processing function is called during each loop iteration.
This is necessary since we add a processing step every loop so you can
change the processing measurement while the program is executing.
Alternatively, if the processing measurement never changes we could add one
processing step outside the loop and never clear it.
Each NI-SCOPE example for Measurement Studio Tools for Visual Basic
includes a Visual Basic project (.vbp) and a form (.frm) file.
The GUI is implemented using the User Interface, ActiveX controls provided
by Measurement Studio to easily display numbers and graphs. If you don't
have Measurement Studio installed, these controls operate in evaluation mode
only and are limited to 5 minutes of continuous running time. The NI controls
used in this application are the CWGraph control and the CWNumEdit control.
Requirements
Filename: 5105_vb_6.zip
Software Requirements
Application Software: Measurement Studio Visual Basic Support 6.0
Language(s): Visual Basic
Additional Software: Visual Basic 6.0
Hardware Requirements
Hardware Group: High-Speed Digitizers (Scopes)
Hardware Model: PCI-5105, PCI-5114, PCI-5122, PCI-5124, PCI-5142, PXI-5152, PXI-5105, PXI-5114, PXI-5122, PXI-5124, PXI-5142, PCI-5152
Driver: NI-SCOPE 3.3.2
Reader Comments | Submit a comment »
Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).
