Specifications
10
Setting the ID query to false prevents the driver from verifying that the
connected instrument is the one the driver was written for. Finally,
setting simulate to true tells the driver that it should not attempt to
connect to a physical instrument, but use a simulation of the
instrument.
•
Configure the instrument – We set a range of
1.5 volts
and a resolution of
0.001 volts (1 millivolt)
.
•
Access an instrument property – We set the trigger delay to
0.01
seconds
.
•
Set the reading timeout – We set the reading timeout to
1000
milliseconds (1 second).
•
Take a reading
•
Close the instrument – This step is required when using any IVI driver,
unless the ADE explicitly does not require it. We close the session to free
resources.
Important! Close may be the most commonly missed step when using an
IVI driver. Failing to do this could mean that system resources are not
freed up and your program may behave unexpectedly on subsequent
executions.
•
Check the driver for any errors.
•
Display the reading.
Note:
Examples that use a console application do not show the display.
Now that you understand the logic behind IVI drivers, let’s see how to get started.