User defined scripted source
Keywords
electrical, unidirectional
Ports
Name | Type |
---|---|
output | Electrical Signal |
Properties
General Properties
Name | Default value | Default unit | Range |
---|---|---|---|
name Defines the name of the element. |
Scripted Source | - | - |
annotate Defines whether or not to display annotations on the schematic editor. |
true | - | [true, false] |
enabled Defines whether or not the element is enabled. |
true | - | [true, false] |
type Defines the element unique type (read only). |
Scripted Source | - | - |
description A brief description of the elements functionality. |
User defined scripted source | - | - |
prefix Defines the element name prefix. |
SRC | - | - |
model Defines the element model name. |
- | - | - |
library Defines the element location or source in the library (custom or design kit). |
- | - | - |
local path Defines the local path or working folder $LOCAL for the element. |
- | - | - |
url An optional URL address pointing to the element online help. |
- | - | - |
Standard Properties
Name | Default value | Default unit | Range |
---|---|---|---|
script User defined script. |
OUTPUT=sin(2*pi*1e9*TIME); | - | - |
Simulation Properties
Name | Default value | Default unit | Range |
---|---|---|---|
output signal mode The output signal mode. |
%output signal mode% | - | [sample, block |
number of output signals The number of simulation runs, or the number of generated signals. |
%number of output signals% | - | [1, +∞) |
sample rate The sample rate of the generated signal. This is typically set by the global properties in the root (top-most) element. |
%sample rate% | Hz | [0, +∞) |
====================================
Implementation Details
The script source is a user defined electrical source, the definition is written by script language, please see the example file Scripted_Source.icp for more information.
In this example, two simple sinusoidal functions are used to define the optical source, following is the oscilloscope output waveforms.
Fig. 1 OSC output waveform |