Collection of Tcl tools (v0.1)

Index

  • Type the index terms you want to search for in the text input field.
  • Matching terms will be shown incrementally as you type.
  • Press Enter to navigate to the target of the first displayed index entry.
  • Alternatively, Tab to move to the index entry of interest and then press Enter to navigate to that documentation page.
  • To jump to this page from any other documentation page, press browser-specific shortcut modifiers with i. For example, on IE and Edge this would be Alt-i while on Firefox and Chrome Alt-Shift-i. Other browsers and platforms may differ.
  • angle
    <span class='ruff_cmd'>angle</span> <span class='ruff_arg'>?args?</span>
    Calculates angle (phase) of complex number.
    ::rfutil
  • compLen
    <span class='ruff_cmd'>compLen</span> <span class='ruff_arg'>dict</span>
    Check the lengths of lists of each dictionary's list
    ::rfutil
  • cumtrapz
    <span class='ruff_cmd'>cumtrapz</span> <span class='ruff_arg'>?args?</span>
    Does trapezoidal integration with storing cumulative data at each point
    ::mathutil
  • cxxPEq
    <span class='ruff_cmd'>cxxPEq</span> <span class='ruff_arg'>?args?</span>
    Calculates capacitive part equivalent P circuit elements values.
    ::rfutil
  • cxxTEq
    <span class='ruff_cmd'>cxxTEq</span> <span class='ruff_arg'>?args?</span>
    Calculates capacitive part equivalent T circuit elements values.
    ::rfutil
  • deemb
    <span class='ruff_cmd'>deemb</span> <span class='ruff_arg'>?args?</span>
    Procedure for deembedding of DUT from test fixture.
    ::rfutil
  • deriv1
    <span class='ruff_cmd'>deriv1</span> <span class='ruff_arg'>?args?</span>
    Calculates first derivative of x-y lists
    ::mathutil
  • deriv2
    <span class='ruff_cmd'>deriv2</span> <span class='ruff_arg'>?args?</span>
    Calculates second derivative of x-y lists
    ::mathutil
  • divll
    <span class='ruff_cmd'>divll</span> <span class='ruff_arg'>list1 list2</span>
    Divides each element of the list1 to each element of list2
    ::tcl::mathfunc
  • divlsc
    <span class='ruff_cmd'>divlsc</span> <span class='ruff_arg'>list scalar</span>
    Divides each element of the list to scalar value
    ::tcl::mathfunc
  • exactone
    <span class='ruff_cmd'>exactone</span> <span class='ruff_arg'>?args?</span>
    Calculates boolean function that returns true if only exactly one element is true
    ::tcl::mathfunc
  • findApprox
    <span class='ruff_cmd'>findApprox</span> <span class='ruff_arg'>?args?</span>
    Finds index of first matched value in list with epsilon tolerance
    ::mathutil
  • initArgStr
    <span class='ruff_cmd'>initArgStr</span> <span class='ruff_arg'>optDict optName varName value</span>
    ::gnuplotutil
  • initRangeStr
    <span class='ruff_cmd'>initRangeStr</span> <span class='ruff_arg'>optDict optName varName</span>
    ::gnuplotutil
  • initTerminalStr
    <span class='ruff_cmd'>initTerminalStr</span> <span class='ruff_arg'>optDict varName</span>
    ::gnuplotutil
  • inv2x2
    <span class='ruff_cmd'>inv2x2</span> <span class='ruff_arg'>?args?</span>
    Calculates inverse matrix of input matrix with size 2x2.
    ::rfutil
  • li
    <span class='ruff_cmd'>li</span> <span class='ruff_arg'>list index ?args?</span>
    Wraps lindex command into expr function
    ::tcl::mathfunc
  • lindex
    <span class='ruff_cmd'>lindex</span> <span class='ruff_arg'>list index ?args?</span>
    Wraps lindex command into expr function
    ::tcl::mathfunc
  • llength
    <span class='ruff_cmd'>llength</span> <span class='ruff_arg'>list</span>
    Wraps llength command into expr function
    ::tcl::mathfunc
  • logb
    <span class='ruff_cmd'>logb</span> <span class='ruff_arg'>value base</span>
    Implements logarithm function with arbitary base
    ::tcl::mathfunc
  • lrange
    <span class='ruff_cmd'>lrange</span> <span class='ruff_arg'>list first last</span>
    Wraps lrange command into expr function
    ::tcl::mathfunc
  • lxxPEq
    <span class='ruff_cmd'>lxxPEq</span> <span class='ruff_arg'>?args?</span>
    Calculates inductive part equivalent P circuit elements values.
    ::rfutil
  • lxxTEq
    <span class='ruff_cmd'>lxxTEq</span> <span class='ruff_arg'>?args?</span>
    Calculates inductive part equivalent T circuit elements values.
    ::rfutil
  • mag
    <span class='ruff_cmd'>mag</span> <span class='ruff_arg'>?args?</span>
    Calculates magnitude of complex number.
    ::rfutil
  • matMul2x2
    <span class='ruff_cmd'>matMul2x2</span> <span class='ruff_arg'>?args?</span>
    Calculates multiply matrices with 2x2 size.
    ::rfutil
  • maxl
    <span class='ruff_cmd'>maxl</span> <span class='ruff_arg'>list</span>
    Wraps ::tcl::mathfunc::max command to accept single list instead of expanded one
    ::tcl::mathfunc
  • measure
    <span class='ruff_cmd'>measure</span> <span class='ruff_arg'>-xname value -data value -trig {-vec value -val value ?-td value? -cross|rise|fall value} -targ {-vec value -val value ?-td value? -cross|rise|fall value}</span>
    <span class='ruff_cmd'>measure</span> <span class='ruff_arg'>-xname value -data value -trig {-at value} -targ {-vec value -val value ?-td value? -cross|rise|fall value}</span>
    <span class='ruff_cmd'>measure</span> <span class='ruff_arg'>-xname value -data value -trig {-vec value -val value ?-td value? -cross|rise|fall value} -targ {-at value}</span>
    <span class='ruff_cmd'>measure</span> <span class='ruff_arg'>-xname value -data value ?-find|deriv value? -when {-vec value -val value ?-td value? ?-from value? ?-to value? -cross|rise|fall value}</span>
    <span class='ruff_cmd'>measure</span> <span class='ruff_arg'>-xname value -data value ?-find|deriv value? -when {-vec1 value -vec2 value ?-td value? ?-from value? ?-to value? -cross|rise|fall value}</span>
    <span class='ruff_cmd'>measure</span> <span class='ruff_arg'>-xname value -data value -find value -at value</span>
    <span class='ruff_cmd'>measure</span> <span class='ruff_arg'>-xname value -data value -deriv value -at value</span>
    <span class='ruff_cmd'>measure</span> <span class='ruff_arg'>-xname value -data value -avg|rms|pp|min|max|minat|maxat|between {-vec value ?-td value? ?-from value? ?-to value?}</span>
    <span class='ruff_cmd'>measure</span> <span class='ruff_arg'>-xname value -data value -integ {-vec value ?-td value? ?-from value? ?-to value? ?-cum?}</span>
    Does different measurements of input data lists.
    ::measure
  • minl
    <span class='ruff_cmd'>minl</span> <span class='ruff_arg'>list</span>
    Wraps ::tcl::mathfunc::min command to accept single list instead of expanded one
    ::tcl::mathfunc
  • movAvg
    <span class='ruff_cmd'>movAvg</span> <span class='ruff_arg'>?args?</span>
    Finds moving average of y with given window size.
    ::mathutil
  • mulll
    <span class='ruff_cmd'>mulll</span> <span class='ruff_arg'>list1 list2</span>
    Multiplies each element of the list1 to each element of list2
    ::tcl::mathfunc
  • mullsc
    <span class='ruff_cmd'>mullsc</span> <span class='ruff_arg'>list scalar</span>
    Multiplies each element of the list to scalar value
    ::tcl::mathfunc
  • multiplotXNYN
    <span class='ruff_cmd'>multiplotXNYN</span> <span class='ruff_arg'>layoutList ?-background? ?-nodelete? ?-optcmd string? ?-terminal? ?-darkmode? ?-size list? -columns plotList1 ?plotList2 ...?</span>
    Plots 2D graphs in Gnuplot with individual x-values and using multiplot to display.
    ::gnuplotutil
  • plotHist
    <span class='ruff_cmd'>plotHist</span> <span class='ruff_arg'>x -style ?-gap value? ?-boxwidth value? ?-fill value? ?-transparent? ?-density value? ?-border value? ?-background? ?-nodelete? ?-xlabel string? ?-ylabel string? ?-optcmd string? ?-terminal? ?-grid? ?-darkmode? ?-size list? ?-path string? ?-names list? -columns xList1 ?xList2 ...?</span>
    Plots 2D histograms in Gnuplot with the common x-values.
    ::gnuplotutil
  • plotXNYN
    <span class='ruff_cmd'>plotXNYN</span> <span class='ruff_arg'>?-xlog? ?-ylog? ?-background? ?-nodelete? ?-xlabel string? ?-ylabel string? ?-optcmd string? ?-terminal? ?-grid? ?-darkmode? ?-size list? ?-path string? ?-names list? ?-lstyles list? ?-output string? -columns xList1 yList1 ?xList2 yList2 ...?</span>
    Plots 2D graphs in Gnuplot with individual x-values.
    ::gnuplotutil
  • plotXNYNMp
    <span class='ruff_cmd'>plotXNYNMp</span> <span class='ruff_arg'>?-xlog? ?-ylog? ?-xlabel string? ?-ylabel string? ?-grid? ?-path string? ?-names list? -columns xList1 yList1 ?xList2 yList2 ...?</span>
    Auxilary function for gnuplotutil::multiplotXNYN, creates command strings and data files for individual plots
    ::gnuplotutil
  • plotXYN
    <span class='ruff_cmd'>plotXYN</span> <span class='ruff_arg'>x ?-xlog? ?-ylog? ?-background? ?-nodelete? ?-xlabel string? ?-ylabel string? ?-optcmd string? ?-terminal? ?-grid? ?-darkmode? ?-size list? ?-path string? ?-names list? ?-lstyles list? ?-output string? -columns yList1 ?yList2 ...?</span>
    Plots 2D graphs in Gnuplot with the common x-values.
    ::gnuplotutil
  • powll
    <span class='ruff_cmd'>powll</span> <span class='ruff_arg'>list1 list2</span>
    Exponentiates each element of the list1 in each element of list2
    ::tcl::mathfunc
  • powlsc
    <span class='ruff_cmd'>powlsc</span> <span class='ruff_arg'>list scalar</span>
    Exponentiates each element of the list in scalar value
    ::tcl::mathfunc
  • s2p_read
    <span class='ruff_cmd'>s2p_read</span> <span class='ruff_arg'>?args?</span>
    ::touchstoneutil
  • s2t
    <span class='ruff_cmd'>s2t</span> <span class='ruff_arg'>?args?</span>
    Converts 2-port s-parameters to transfer parameters.
    ::rfutil
  • s2y
    <span class='ruff_cmd'>s2y</span> <span class='ruff_arg'>?args?</span>
    Converts 2-port s-parameters to y-parameters.
    ::rfutil
  • s2z
    <span class='ruff_cmd'>s2z</span> <span class='ruff_arg'>?args?</span>
    Converts 2-port s-parameters to z-parameters.
    ::rfutil
  • subll
    <span class='ruff_cmd'>subll</span> <span class='ruff_arg'>list1 list2</span>
    Subtracts each element of the list2 from each element of list1
    ::tcl::mathfunc
  • sublsc
    <span class='ruff_cmd'>sublsc</span> <span class='ruff_arg'>list scalar</span>
    Subtracts scalar value from each element of the list
    ::tcl::mathfunc
  • sumll
    <span class='ruff_cmd'>sumll</span> <span class='ruff_arg'>list1 list2</span>
    Sums each element of the list1 with each element of list2
    ::tcl::mathfunc
  • sumlsc
    <span class='ruff_cmd'>sumlsc</span> <span class='ruff_arg'>list scalar</span>
    Adds scalar value to each element of the list
    ::tcl::mathfunc
  • t2s
    <span class='ruff_cmd'>t2s</span> <span class='ruff_arg'>?args?</span>
    Converts 2-port transfer parameters to s-parameters.
    ::rfutil
  • trapz
    <span class='ruff_cmd'>trapz</span> <span class='ruff_arg'>?args?</span>
    Does trapezoidal integration of x-y lists
    ::mathutil
  • y2s
    <span class='ruff_cmd'>y2s</span> <span class='ruff_arg'>?args?</span>
    Converts 2-port y-parameters to s-parameters.
    ::rfutil
  • y2z
    <span class='ruff_cmd'>y2z</span> <span class='ruff_arg'>?args?</span>
    Converts 2-port y-parameters to z-parameters.
    ::rfutil
  • yPEq
    <span class='ruff_cmd'>yPEq</span> <span class='ruff_arg'>?args?</span>
    Calculates equivalent P circuit elements values.
    ::rfutil
  • z2s
    <span class='ruff_cmd'>z2s</span> <span class='ruff_arg'>?args?</span>
    Converts 2-port z-parameters to s-parameters.
    ::rfutil
  • z2y
    <span class='ruff_cmd'>z2y</span> <span class='ruff_arg'>?args?</span>
    Converts 2-port z-parameters to y-parameters.
    ::rfutil
  • zTEq
    <span class='ruff_cmd'>zTEq</span> <span class='ruff_arg'>?args?</span>
    Calculates equivalent T circuit elements values.
    ::rfutil