Required Components:
DC voltage Source (Vdc), Resistor (R), Inductor (L), normally open switch (sw_tclose), Ground (Gnd) and connecting wires.
Circuit Diagram
this circuit diagram is drawn in pspice software,you can download free software by clicking links below, to know more about pspice circuit software follow the links below
Procedure:
Open Schematics.
Go to get new parts, select and place the required components.
Click on draw wire and connect all the elements.
Configure the values of all the placed elements.
Go to analysis setup check transient.
Open transient set print step and step ceiling to 10us, final time to 5ms and print delay to 0s.
Saves the circuit.
Go to analysis and simulate the circuit.
Go to OrCad window Trace Add Trace I(L), V(L).
View the waveform.