Hi Syed,
You can define an external circuit for excitation and use a resistor in series with the switch shown in below reference image.
You can also define voltage as the if statement as shown below.
Regards
Navya
Please Login to Report Topic
Please Login to Share Feed