<< Click to Display Table of Contents >> Navigation: »No topics above this level« Default button |
Set all parameters on the screen to their default values. Use it to fix typing errors or find out previous values for a parameter you already retyped.
The default values are the values as specified by the Explain script. All of the standard scripts perform an automatic restore of the last used values. These are the values first shown to the user. In order to get to the values specified by the script, use the Default button.
The example below shows a portion of the Explain script file for a CV experiment. Default parameters are highlighted in orange. Note that default setup values can be in number and text format. Selections between different settings with radio buttons or check buttons, use either direct name call-outs or integers and Boolean inputs.
function Main ()
; Create Objects which are used in the following Setup dialog
PstatSelect = PSTATSELECT.New ("PSTAT", "&Pstat")
Title = LABEL.New ("TITLE", 80, "Cyclic Voltammetry", "Test &Identifier")
Notes = NOTES.New ("NOTES", 400, NIL, "&Notes...")
Output = OUTPUT.New ("OUTPUT", "RCV.DTA", "Output &File")
VInit = POTEN.New ("VINIT", 0.0, FALSE, "Initial &E (V)")
VLimit1 = POTEN.New ("VLIMIT1", 0.5, FALSE, "Scan Limit &1 (V)")
VLimit2 = POTEN.New ("VLIMIT2", -0.5, FALSE, "Scan Limit &2 (V)")
VFinal = POTEN.New ("VFINAL", 0.0, FALSE, "Final &E (V)")
VertexDelay1 = QUANT.New ("VERTEXDELAY1", 0.0, "&Vertex 1 Delay (s)")
VertexDelay2 = QUANT.New ("VERTEXDELAY2", 0.0, "&Vertex 2 Delay (s)")
FinalDelay = QUANT.New ("FINALDELAY", 0.0, "&Final Delay (s)")
Scan = QUANT.New ("SCANRATE", 100.0, "&Scan Rate (mV/s)")
StepSize = QUANT.New ("STEPSIZE", 2.0, "St&ep Size (mV)")
Cycles = IQUANT.New ("CYCLES", 1, "C&ycles (#)")
IModeVector = VectorNew(2)
IModeVector[0] = "Auto"
IModeVector[1] = "Fixed"
IMode = SELECTOR.New("IMODE", IModeVector, 0, "I/E Range &Mode")
SamplingModeVector = VectorNew(3)
SamplingModeVector[SAMPLINGMODE_FAST] = "Fast"
SamplingModeVector[SAMPLINGMODE_NR] = "Noise Reject"
SamplingModeVector[SAMPLINGMODE_SURFACE] = "Surface"
SamplingMode = SELECTOR.New("SAMPLINGMODE", SamplingModeVector, SAMPLINGMODE_NR, "Sampling &Mode")
IRange = QUANT.New ("IRANGE", 0.3, "&Max Current (mA)")
Area = QUANT.New ("AREA", 1.0, "Electrode &Area (cm^2)")
ExpectedMaxV = QUANT.New ("EXPECTEDMAXV", 10.0, "Expected Max V (V)")
Condit = TWOPARAM.New ("CONDIT", FALSE, 15.0, 0.0,"Conditionin&g","Time(s)","E(V)")
Delay = TWOPARAM.New ("DELAY", FALSE, 30.0, 0.0,"Init. De&lay","Time(s)","Stab.(mV/s)")
EQDelay = QUANT.New ("EQDELAY", 0.0, "Equil. &Time (s)")
Advanced = TOGGLE.New ("ADVANCED", FALSE, "Advanced Pstat Setup")
ElectrodeSetup = TOGGLE.New ("ELECTRODE", FALSE, "Electrode Setup")
Electrode = ELECTRODE.New ("ELECTRODE")
IRCompVector = VectorNew(3)
IRCompVector[0] = "None"
IRCompVector[1] = "PF"
IRCompVector[2] = "CI"
IRComp = SELECTOR.New("IRCOMP", IRCompVector, 0, "IRCom&p")
PFCor = QUANT.New ("PFCOR", 50.0, "PF Corr. (ohm)")