Product specifications
Instrumentation Laboratory Exercise 13
To calculate the difference in voltages you will need to read in 2
channels (101 and 102). Change all the lines in the Direct I/O box or
MultiInstrument Direct I/O box (left box) to (@101,102) instead of
(@101). Also add two additional lines:
1 "MEAS:VOLT:DC? (@102)"
2 READ:TEXT Y REAL64
On the Formula box right- click and ADD a DATA INPUT terminal. Link
the voltage from 101 into A, link channel 102 (Y output on the Direct
I/O box) into the new terminal B. Change the formula to “B- A” and
the result will be the difference. You can also add an alphanumeric
display of the raw voltages of 101 and 102 as well.
Figure 1-10 Program with two channels
Channel 1 (called X or 101) is reading the voltage divider V
div
, which
should be approximately 1/3 of the supply voltage, or about 1.6V.
Channel 2 (called Y or 102) is measuring the supply voltage which
should be approximately 5 V. The equation calculates the difference
which should be around 3.4 V. This is the voltage drop across the
upper resistor in the divider circuit.