HP (Hewlett-Packard) Drive Network Card User Manual


 
Using IVI with Visual C# and Visual Basic
33
Configure the Instrument
To set the range to 1.5 volts and the resolution to 1 millivolt, type
dmm.DCVoltage.Configure(1.5, 0.001);
Set the Trigger Delay
To set the trigger delay to 0.01 seconds, type
dmm.Trigger.Delay = 0.01;
Set the Reading Timeout/Display the Reading
Create a variable to represent the reading and display the reading:
1 Type double reading;
2 To trigger the multimeter and take a reading with a timeout of 1 second, type
reading = dmm.Measurement.Read(1000);
3 Type Console.WriteLine("The measurement is {0}", reading);
4 Type Console.ReadLine();
Close the Session
To close out the instance of the driver to free resources, type
dmm.Close();