axlAddOutputExpr
axlAddOutputExpr(t_sessionName t_testName t_outputName[?exprt_expr] [?evalTypet_evalType] [?exprDPLsl_exprDPLs] [?plotg_plot] [?saveg_save] ) =>t/t_error
Description
Adds an output expression to a test setup.
Arguments
Value Returned
Examples
The following example code shows how to use the axlAddOutputExpr function to add outputs for a test:
session = axlGetWindowSession()
=>"session0"
; returns handle to the current session
axlAddOutputExpr(session "AC" "output1" )
=> t
; the above statement adds an expression output, but the expression to be evaluated
; is not specified. The evaluation type of this output is ’point’
axlAddOutputExpr(session, "AC" "SRp" ?expr "ymax(deriv(VT(\"/OUT\")))" ?evalType "corners" ?plot t ?save t)
; the above statement adds an expression output that evaluates the given expression
; across corners
The following example code shows how to use the axlAddOutputExpr function to add outputs in batch mode:
session = axlGetWindowSession()
; gets a handle to the session
;; define a DPL for the first output to be added
dpl='(nil)
putprop(dpl "BW" 'outputName)
putprop(dpl "bandwidth(VT(\"/out\") 3 \"low\")" 'expr)
putprop(dpl t 'plot)
; append it to exprs
exprs=append(nil list(dpl))
; define a DPL for the second output to be added
dpl1='(nil)
putprop(dpl1 "Gain" 'outputName)
putprop(dpl1 "value(dB20(mag(VF(\"/OUT\"))))" 'expr)
putprop(dpl1 t 'plot)
; append it to exprs
exprs=append(exprs list(dpl1))
; add the outputs
axlAddOutputExpr(session "opamp090:full_diff_opamp_AC:1" "" ?exprDPLs exprs)
;; this script adds two outputs, BW and Gain, to the setup
Return to top