To develop an NI-SCOPE application with Visual Basic, complete the following steps:

  1. Open an existing or new project (.vbp).
  2. Find shortcuts to the examples at Start»All Programs»National Instruments»NI-SCOPE»Examples.
  3. Go to Projects»References and select NI-SCOPE Library.
  4. Build your application using the appropriate programming flow steps.

Microsoft Visual Basic Examples

The Visual Basic examples use an evaluation version of the NI Measurement Studio ActiveX UI controls. The examples were built and tested using Microsoft Visual Basic 6.0. For each example, there is a project file (.vbp) that launches Developer Studio.

Note   The evaluation version of the Measurement Studio UI controls is limited to 5 minutes of continuous use.

If you have problems getting the examples to load or run, complete the following steps:

  1. Make sure the NI-SCOPE reference is loaded (go to Project»References, and load \bin\niscope_32.dll. You can find the installed location of this file in the NI-SCOPE Readme.
  2. Make sure the National Instruments Measurement Studio UI controls are loaded (go to Project»Components, and load cwui.ocx from the Windows system directory).
  3. Install Service Pack 5 for Microsoft Visual Studio.

The source code for these examples is heavily documented, and all input and output values are documented to facilitate changing the code to perform different acquisitions.