Navigation

Operators and Keywords

Function List:

C++ API

Function File: [a,b,c]= Mvoltagesources( string,parameters,parameternames,extvar,intvar,t)

SBN file implementing models for voltage sources.

string is used to select among models. Parameters are listed as inner items. Possible models are:

  1. string = "DC" (Static indipendent voltage source)
    • - V -> Current source value
  2. string = "sinwave" (Sinusoidal indipendent voltage source)
    • - shift -> mean value of sinusoidal input
    • - Ampl -> amplitude of sinusoidal wave
    • - f -> frequency of sinusoidal wave
    • - delay -> delay of sinusoidal wave
  3. string = "pwl" (Piecewise linear voltage source)
    • - takes as parameter times and values. For example 0 1 4 6 means at time instant 0 value 1, at time instant 4 value 6, etc.
  4. string = "squarewave" (Square wave)
    • - low -> low-state value
    • - high -> high-state value
    • - tlow -> duration of low-state
    • - thigh -> duration of high-state
    • - delay -> delay of square wave
    • - start -> starting voltage value
  5. string = "step" (Voltage step)
    • - low -> low-state value
    • - high -> high-state value
    • - tstep -> time instant of step transition
  6. string = "VCVS" (Voltage controlled voltage source)
    • - K -> Control parameter

See the IFF file format specifications for details about the output structures.

See also: prs_iff,asm_initialize_system,asm_build_system.

Package: ocs