Make the connections as per the schematic.
The program sets PV1 to values ranging from 0.1 Volts to 4.5 Volts in 0.1 volt steps.
Voltage across the diode is measured at each step and the current is calculated from the
voltage drop across the 1K resistor.
The results are shown graphically and also saved to a file.
---
]]>
setv
measured_voltage
setv
0
4
0.1
PV1
setv
measured_voltage
A1
measured_voltage
DIVIDE
1
MINUS
1
setv
1
measured_voltage
1000