01-23-2018 06:50 PM
I would like to stop the voltage sweep(either abort or staying at constant voltage) if current reaches certain threshold. Device manually it works,however remote control with lab view drivers does not work as intended and voltage keeps rising while the current is set to compliance current value of the configure output vi, anyone has any idea what is wrong with the setup?
Using the drivers from the link below:
Solved! Go to Solution.
01-24-2018 01:06 AM
01-24-2018 09:59 AM
Hello sez,
Have you tried the examples that come with the driver? I assume you downloaded the LabVIEW driver and installed in your instr.lib folder.
Try going to Help > Find Examples... > Hardware Input and Output > Instrument Drivers > LabVIEW Plug and Play > Keithley 24XX... .vi
I'd suggest you running these, to check that the driver is controlling the instrument correctly. Once we know it does, we can perhaps take a look at your code and suggest why it might not be working as expected.
Let us know your results.
01-24-2018 01:02 PM
Yes I am trying to protect the DUT so stopping voltage rise during the sweeping is critical if I hit the threshold current. I tried the example VIs,communication and device control works fine. Checked the device user manual and still could not find the feature to stop voltage sweeping configuration if I hit compliance level current I specify configure output.vi .
Using Keithley 24XX Sweep and Acquire Measurements.vi under Keithley 24XX.lvproj
Anyone have any idea?
01-24-2018 01:31 PM
You need to set the compliance abort condition for the sweep. By default it is set to NEVER and your sweep continues for the remaining points even though the output current is at compliance (your device is protected!) The SCPI command to set abort during a sweep is..
:SOURCE:SWEEP:CABORT (NEVER,EARLY or LATE).
You want to use ":SOUR:SWE:CAB EARL;" to stop ASAP.
NEVer = hold at compliance for remaining sweep steps.
EARLy = stop sweep at the start of SDM cycle
LATE = stop at the end of SDM cycle.
If you are not using the K24xx sweep option, but just setting a single output voltage, then you could also use the compliance trip querry.
:SENSE:CURRENT:PROTECTION:TRIPPED?
This would return a yes(1) or no(0) when addressed to talk.
Attached are my own VIs for setting and checking these states. I created these years ago since they weren't in the K24xx driver. They might be now, I haven't gone back to inspect.
01-24-2018 02:14 PM - edited 01-24-2018 02:16 PM
Oops, I replaced the ErrorQuery in that Cabort VI with another VI somehow. Fixed in this version.