I am writing a sequence to measure the on/off thresholds for an over/under voltage protection circuit. I am using the Benchvue power supply control to sweep the voltage over the expected threshold range in 10mV steps. Within the sweep block I have a short delay followed by a get current measurement. I have a constant current load on the output so I know I can tell if it is on or off based on the Power Supply current. I can sift through the data in Excel to find the current step, but I would rather have it save the voltage level when the output changed, stop the sweep, and move on to the next threshold which is a separate sweep statement.
I tried using an "if then stop" within the sweep block, but that ended the whole sequence when it got to the first threshold instead of ending the sweep at the current setting and moving on with the sequence.
I guess what I need is a "break" command that will just exit the sweep loop, but I don't think Benchvue has one.
What is the best way to do this?