HP (Hewlett-Packard) Drive Network Card User Manual


 
62
Chapter 6
Set the Trigger Delay
To set the trigger delay to 0.01 seconds, type
myDmm.Trigger.Delay = 0.01;
Set Reading Timeout
To take a reading with a timeout of 1 second, type
myDmm.Timeout = 0.01;
Display Reading
To display the reading, type
data = invoke(myDmm.Measurement,'Read',1000)
Disconnect from the Instrument
Similar to the Close() command in most ADEs, the Disconnect command in
MATLAB closes the instrument. To disconnect, type
disconnect(myDmm);
Remove the Driver from Memory
To remove any reference to the driver from memory, type
delete(myDmm);
Your final application should contain the code below:
>> myDmm = icdevice('dmm');
>> connect(myDmm)
>> myDmm.Range = 1.5;
>> myDmm.Resolution = 0.001;
>> myDmm.Trigger.Delay = 0.01;
>> myDmm.Timeout = 0.01;
>> data = invoke(myDmm.Measurement,'Read',1000)
data =
0.5116
>> disconnect(myDmm);
>> delete(myDmm);