To whomever,
I am trying to write a labview script using the K2600 series driver for labview. The script is for producing an IV transfer curve (drain current vs gate voltage at a constant drain voltage) and IV output curve (drain current vs drain voltage at constant gate voltages) for an OFET. I have looked over the advance sweep example; however, I am having some issues and would like to get some clarification. Find attached my VI and a tsp that I am emulating into the script. My issue is how to incorporate the following Lua code using the driver triggers into the transfer_curve script:
-- overwrite some value setup in the configSweep() function
-- no current measurements on gate, but measure voltage for use in printData()
gatesmu.trigger.measure.v(gatesmu.nvbuffer1)
-- gate sources after drain sources the Vds bias
gatesmu.trigger.source.stimulus = drainsmu.trigger.SOURCE_COMPLETE_EVENT_ID
-- measure drain current after each gate voltage is sourced
drainsmu.trigger.measure.stimulus = gatesmu.trigger.SOURCE_COMPLETE_EVENT_ID
-- output on, run the sweep and then turn the output off.
drainsmu.source.output = drainsmu.OUTPUT_ON
gatesmu.source.output = gatesmu.OUTPUT_ON
-- start the gate first, so that is armed and can detect drain source complete event
gatesmu.trigger.initiate()
drainsmu.trigger.initiate()
waitcomplete()
drainsmu.source.output = drainsmu.OUTPUT_OFF
gatesmu.source.output = gatesmu.OUTPUT_OFF
and how to incorporate the following codes into the output_curves script:
smu.trigger.source.limiti = smu.LIMIT_AUTO
smu.trigger.source.action = smu.ENABLE
smu.trigger.endsweep.action = smu.SOURCE_IDLE
smu.trigger.endsweep.action = smu.SOURCE_HOLD
smu.trigger.source.set()
I do realize that SMU needs to refer to a specific SMU; however, in this case I am just generalizing the code.
I emphasize that I am not trying to upload a tsp script, but rather use all driver capabilities to do the same routine with labview. I have initiated the sweep on the gate channel; however, I do not know how to proceed afterwards. Any information would be greatly appreciated.