National Instruments 374318A-01 Network Card User Manual


 
Chapter 4 Getting Started with Measurement Studio
Measurement Studio for MCC User Manual 4-12 ni.com
7. Select the Meter control and drag and drop it onto the form.
8. Right-click the meter and select Properties to display the Properties
window.
9. Set the
CoercionIntervalBase property for the meter to –10.
10. Set the Range property for the meter with the drop-down Range type
editor. Type
–10 for the minimum value. Leave the default of 10 for
the maximum value.
The following screenshot shows
Form1 with the user controls.
Generating and displaying the data
1. Double-click on Form1 to display the
Form1 code.
2. Add the following code to declare a new Measurement Computing
board object.
[VB.NET]
' Declare a new Measurement Computing board object that uses board 0
Public DaqBoard As MccDaq.MccBoard = New MccDaq.MccBoard(0)
[C#]
private System.Windows.Forms.Button button1;
private MccDaq.MccBoard daqBoard;
private NationalInstruments.UI.WindowsForms.Meter meter1;
/// <summary>
/// Required designer variable.
/// </summary>