Version 6.2.0, August 27, 2004
Table of Contents
Scale-by Inverse Live Constant
Digital 1-Pole Low-Pass Filter
Digital 2-Pole Low-Pass Filter
Digital 2-Pole Low-Pass Filter (A)
Overview
Node types
|
Input |
|
Can be wired to any input or output node. There is no explicit limit to the number of inputs that can be connected together. If multiple input nodes are wired together, but without an output node, a warning is displayed and those wires are ignored. To change the value of an unwired input node, place cursor over node and double-click. Alternatively, the value can be changed by placing cursor anywhere in block, right clicking to display a pop-up menu, and selecting "Properties." The value of a wired input node cannot be changed, but it can be viewed with same procedures as above. |
|
Output |
|
Can be wired to any input node. Two output nodes cannot be wired together. The value of an output node cannot be changed. To view the value of an output node, place cursor over node and double-click. Alternatively, the value can be viewed by placing cursor anywhere in block, right clicking to display a pop-up menu, and selecting "Properties." |
|
No-connection |
|
Set values that are fixed at the time the model is compiled. To change, stop model and place cursor over node and double-click. Alternatively, the value can be changed by placing cursor anywhere in block, right clicking to display a pop-up menu, and selecting "Properties." Changing the value of a No-connection node will force a recompile to continue model execution. |
|
Documentation |
|
Store information about the use of the block for reference. |
Node Types
|
double |
Most Visual ModelQ nodes are of type double. |
|
Boolean |
Some Visual ModelQ nodes are Boolean. When viewing or changing values, these nodes show as "True" or "False." For the case where these nodes are input nodes, and so can be wired to non-Boolean nodes, any value less than 0.5 is translated as False while all other values are translated as True. |
|
String |
Some Visual ModelQ nodes are strings. When viewing or changing values, these nodes show as one of a list of strings. When these nodes are transmitted on wires (wires carry only double) the value of the node is translated as the integer value of the string’s placement in the string list. Actually, Boolean is a string variable where the string list consists of "True" and "False." |
|
Documentation |
Documentation nodes accept strings with no specific length limit. |
|
Graphic |
|
|
Function |
Provide 8-channel oscilloscope display. |
|
Tab |
Instruments |
|
Special behavior. |
After compile, oscilloscope display window is hidden. Double click on the Oscilloscope block to view the display window. All default settings can be changed using controls in the display. However, recompilation will restore the default values. |
|
Requirements |
At least one oscilloscope is required in every model. There is no explicit limit on the number of oscilloscopes one model can have. |
|
Node List
|
1 |
Time/Div |
|
2 |
Trigger Source |
|
|
3 |
Trigger Level |
|
|
4 |
Positive Trig? |
|
|
5 |
Trigger Position |
|
|
6 |
Trigger Mode |
|
|
7 |
AC Trigger |
|
|
8 |
Roll? |
|
|
9 |
Single Shot |
|
|
10 |
x vs y? |
|
|
11 |
H-Channel |
|
|
12 |
Documentation node |
|
|
See also: Live Scope, Two-Channel Live Scope |
||
Dynamic Signal Analyzer (DSA)
|
Graphic |
|
|
Function |
Provide Frequency-Response Function (FRF) or Bode plot of system. Provides temporary excitation signal. |
|
Tab |
Instruments |
|
Special behavior. |
After compile, DSA display window is hidden. Double click on the DSA block to view the display window. All default settings can be changed using controls in the display. However, recompilation will restore the default values. |
|
Requirements |
If a DSA is present, at least two variables must be present in model. There is no specific limit on the number of DSAs than can be present. |
|
Node List
|
1 |
Switched Input |
|
2 |
Unswitched Input |
|
|
3 |
Excitation |
|
|
4 |
DSA Inactive |
|
|
5 |
Excitation Amplitude |
|
|
6 |
Input Channel |
|
|
7 |
Output Channel |
|
|
8 |
TSample |
|
|
9 |
Start Zero Time |
|
|
10 |
End Zero Time |
|
|
11 |
Order |
|
|
12 |
Auto Frequency |
|
|
13 |
Minimum Frequency |
|
|
14 |
Maximum Frequency |
|
|
15 |
Gain Scale |
|
|
16 |
Gain Offset |
|
|
17 |
Phase Scale |
|
|
18 |
Phase Offset |
|
|
19 |
Button Setup |
|
|
20 |
Documentation node |
|
|
See also: Variable, Live Scope, Two-Channel Live Scope, Oscilloscope |
||
|
Graphic |
|
|
Function |
Non-display data channel for Oscilloscopes and DSAs. |
|
Tab |
Instruments |
|
Node List |
1 |
Input |
|
2 |
Scale |
|
|
3 |
Offset |
|
|
4 |
Show |
|
|
5 |
AC Couple |
|
|
6 |
Mult |
|
|
7 |
Documentation node |
|
|
See also: Live Scope, Two-Channel Live Oscilloscope, DSA |
||
|
Model graphic (during model execution) |
|
|
|
Select Graphic |
|
|
|
Function |
Displaying data on model screen; also provide data channel for Oscilloscopes and DSAs. |
|
|
Tab |
Instruments |
|
|
Special behavior. |
The Live Scope creates a variable of the same name as the block name that can be displayed on the Oscilloscope or measured with a DSA. After compile, double click on the Live Scope block to view the control panel. The control panel simplifies adjustment of standard scope variables such as scale, offset, and trigger settings. Single-shot operation is supported through the S-Shot checkbox. Single-shot causes the model to stop running after the scope screen fills; if you select “Must click OK” you must acknowledge the S-Shot announcement window; otherwise, the window will go out of view after 10 seconds. Click the Run button to continue model execution. Supports Hot Connect, which allows temporary connection Input to any node or wire while the model is running, and without forcing a recompile. All scope settings are restored to pre-hot connection values when normal (non-Hot- Connect) operation is restored. Supports Autoscale, where the scale is set to ±X where X is large enough to show all points of display. Supports Fill Screen, where the scale is set to just show the waveform minimum and maximum values. Supports copying scope display to a bitmap file. You can copy the complete scope display ("Copy Image") or just the plot ("Copy Graph"). If you click the escape key mid sequence, the bitmap is copied to the clipboard where it can be pasted to other applications, for example Microsoft Word documents. |
Live Scope Control Panel |
|
See also: Variable, Two-Channel Live Scope, Oscilloscope |
||
|
Node List |
1 |
Input |
|
2 |
Scale |
|
|
3 |
Offset |
|
|
4 |
AC Couple |
|
|
5 |
Mult |
|
|
6 |
Time/Div |
|
|
7 |
Show |
|
|
8 |
Ext |
|
|
9 |
Ext Mult |
|
|
10 |
Trigger Channel |
|
|
11 |
Trigger Level |
|
|
12 |
Positive Trig? |
|
|
13 |
Trigger Position |
|
|
14 |
Trigger Mode |
|
|
15 |
AC Trigger |
|
|
16 |
Single Shot |
|
|
17 |
Height |
|
|
18 |
Width |
|
|
19 |
Documentation node |
|
|
See also: Variable, Two-Channel Live Scope, Oscilloscope |
||
|
Model graphic (during model execution) |
|
|
|
Select Graphic |
|
|
|
Function |
Displaying two channels of data on model screen; also provide one data channel (Channel 1 only) for Oscilloscopes and DSAs. |
|
|
Tab |
Instruments |
|
|
Special behavior. |
The Two-Channel Live Scope creates a variable of the same name as the block name that can be displayed on the Oscilloscope or measured with a DSA. Channel 1 is used for data for the variable. See Live Scope for more details. |
Two-Channel Live Scope Control Panel |
|
See also: Variable, Live Scope |
||
|
Node List |
In addition to the Nodes for the Live Scope , the Two-channel Live Scope provides the following five nodes on the right side of the block. |
|
|
20 |
Input2 |
|
|
21 |
Scale2 |
|
|
22 |
Offset2 |
|
|
23 |
AC Couple2 |
|
|
24 |
Mult2 |
|
|
See also: Variable, Live Scope, Oscillocope |
||
|
Model graphic (during model execution) |
Four-Channel Scope with Scales turned off using Control Panel (shown below) |
|
|
Select Graphic |
|
|
|
Function |
Displaying four channels of data on model screen; also provide one data channel (Channel 1 only) for Oscilloscopes and DSAs. |
|
|
Tab |
Instruments |
|
|
Special behavior. |
The Four-Channel Live Scope creates a variable of the same name as the block name that can be displayed on the Oscilloscope or measured with a DSA. Channel 1 is used for data for the variable. See Live Scope for more details. |
Four-Channel Live Scope Control Panel |
|
See also: Variable, Live Scope |
||
|
Node List |
In addition to the Nodes for the Two-Channel Live Scope, the Four-Channel Live Scope provides the following ten nodes bottom of the block, where Channel 3 parameters are below Channel 1 parameters on the left and Channel 4 parameters are below Channel 2 parameters on the right. |
|
|
25 |
Input3 |
|
|
26 |
Scale3 |
|
|
27 |
Offset3 |
|
|
28 |
AC Couple3 |
|
|
29 |
Mult3 |
|
|
30 |
Input4 |
|
|
31 |
Scale4 |
|
|
32 |
Offset4 |
|
|
33 |
AC Couple4 |
|
|
34 |
Mult4 |
|
|
See also: Variable, Live Scope, Two-Channel Live Scope, Oscillocope |
||
|
Graphic |
|
|
Function |
Provide constant numerous waveforms with control of frequency, amplitude, offset, and other waveform parameters. |
|
Tab |
Instruments |
|
Special behavior |
After compile, double click on the Waveform Generator block to view the Waveform Generator control panel. Control panel allows easy adjustment of parameters such as waveform type, frequency, and amplitude while model is running. |
|
Node List |
1 |
Output |
|
2 |
Waveform |
|
|
3 |
Frequency
|
|
|
4 |
Amplitude |
|
|
5 |
Offset |
|
|
6 |
Phase |
|
|
7 |
Duty Cycle |
|
|
8 |
Mult |
|
|
9 |
Enable |
|
|
10 |
Documentation node |
|
Graphic |
|
|
Function |
Log 16 channels of data to a file in CSV (comma separated variable) format. |
|
Tab |
Instruments |
|
Node List |
1-16 |
Channel1-Channel16 |
|
17 |
Enable |
|
|
18 |
Reset
|
|
|
19 |
File Write Interval |
|
|
20 |
Ask before overwrite |
|
|
21-52 |
Name1-Name16 and Multipiler1 – Multiplier 16 (in pairs) |
|
|
53 |
Controller Data logger saves data on each cycle of controller except the following
conditions: |
|
|
54 |
Mult |
|
|
55 |
Documentation node |
|
Model graphic |
|
|
Select graphic |
|
|
Function |
Provide constant input with on-screen display. Value can be changed at any time by double clicking on the input node (left on icon). |
|
Tab |
Constants |
|
Node List |
1 |
Input |
|
2 |
Mult |
|
|
3 |
Output |
|
|
4 |
Documentation node |
|
|
See also: Live Constant, Scale-by Constant, Inspector |
||
|
Model graphic |
|
|
|
Select graphic |
|
|
|
Function |
Provide constant input with on-screen display. Value can be changed at any time by double clicking on the block after compile, which brings an adjustor box into view. Output is scaled from user units by Mult (node 4). |
|
|
Tab |
Constants |
|
|
Special behavior. |
After compile, double click on the Live Constant block to view the adjustor box. Adjustor box simplifies adjustment of constants through use of six logarithmic adjustments. For example, "<<" reduces the value by approximately 50% to an even value of 1, 2, or 5 x 10N. Value is copied into InitValue (node 1) after clicking "Save value as initial value " button immediately right of value. Value is restored to InitValue after each compile. Text color in edit box changes to red when keystrokes are entered. This indicates that the value in the model block is not equal to the value in the edit box. Actions that store the value (for example, striking the enter key) load the value and change the text back to the standard color. |
Adjustor Box
Model block, value and initial
value |
|
Node List |
1 |
InitValue |
|
2 |
Minimum |
|
|
3 |
Maximum |
|
|
4 |
Mult |
|
|
5 |
Output |
|
|
6 |
Documentation node |
|
|
See also: Simple Constant, Scale-by Constant, String Constant |
||
|
Model graphic |
|
|
|
Select graphic |
|
|
|
Function |
Provide inverted constant input with on-screen display (if value is zero, output is zero). Value can be changed at any time by double clicking on the block after compile, which brings an adjustor box into view. Output is scaled from user units by Mult (node 4), and then inverted. |
|
|
Tab |
Constants |
|
|
Special behavior. |
After compile, double click on the Live Constant block to view the adjustor box. Adjustor box simplifies adjustment of constants through use of six logarithmic adjustments. For example, "<<" reduces the value by approximately 50% to an even value of 1, 2, or 5 x 10N. Value is copied into InitValue (node 1) after clicking "Save value as initial value " button immediately right of value. Value is restored to InitValue after each compile. After model is compiled, model block is painted white when the value is equal to the initial value and silver when not equal. Text color in edit box changes to red when keystrokes are entered. This indicates that the value in the model block is not equal to the value in the edit box. Actions that store the value (for example, striking the enter key) load the value and change the text back to the standard color. |
Adjustor Box
Model block, value and initial
value |
|
Requirements |
None |
|
|
Node List |
1 |
InitValue |
|
2 |
Minimum |
|
|
3 |
Maximum |
|
|
4 |
Mult |
|
|
5 |
Output |
|
|
6 |
Documentation node |
|
|
See also: Live Constant, Scale-by Inverse Live Constant |
||
|
Model graphic |
|
|
Select graphic |
|
|
Function |
Provide constant input with on-screen display. Value can be changed at any time by double clicking on the scale node (top left). |
|
Tab |
Constants |
|
Node List |
1 |
Input |
|
2 |
Scale |
|
|
3 |
Mult |
|
|
4 |
Output |
|
|
5 |
Documentation node |
|
|
See also: Simple Constant, Scale-by Live Constant |
||
|
Model graphic |
|
|
|
Select graphic |
|
|
|
Tab |
Constants |
|
|
Function |
Provide scaling constant with on-screen display. Value can be changed at any time by double clicking on the block after compile, which brings an adjustor box into view. Output is scaled from user units by Mult (node 5). |
|
|
Special behavior. |
After compile, double click on the Live Constant block to view the adjustor box. Adjustor box simplifies adjustment of constants through use of six logarithmic adjustments. For example, "<<" reduces the value by approximately 50% to an even value of 1, 2, or 5 x 10N. Value is copied into InitValue (node 2) after clicking "Save value as initial value " button immediately right of value. Value is restored to InitValue after each compile. After model is compiled, model block is painted white when the value is equal to the initial value and silver when not equal. Text color in edit box changes to red when keystrokes are entered. This indicates that the value in the model block is not equal to the value in the edit box. Actions that store the value (for example, striking the enter key) load the value and change the text back to the standard color. |
Adjustor Box
Model block, value and initial
value |
|
Requirements |
None |
|
|
Node List |
1 |
Input |
|
2 |
InitValue |
|
|
3 |
Minimum |
|
|
4 |
Maximum |
|
|
5 |
Mult |
|
|
6 |
Output |
|
|
7 |
Documentation node |
|
|
See also: Live Constant, Scale-by Inverse Live Constant |
||
Scale-by
Inverse Live Constant
|
Model graphic |
|
|
|
Select graphic |
|
|
|
Tab |
Constants |
|
|
Function |
Provide scaling inverse constant with on-screen display (if value is zero, output is zero). Value can be changed at any time by double clicking on the block after compile, which brings an adjustor box into view. Output is scaled from user units to model units by Mult (node 5) and then inverted. |
|
|
Special behavior. |
After compile, double click on the Live Constant block to view the adjustor box. Adjustor box simplifies adjustment of constants through use of six logarithmic adjustments. For example, "<<" reduces the value by approximately 50% to an even value of 1, 2, or 5 x 10N. Value is copied into InitValue (node 2) after clicking "Save value as initial value " button immediately right of value. Value is restored to InitValue after each compile. After model is compiled, model block is painted white when the value is equal to the initial value and silver when not equal. Text color in edit box changes to red when keystrokes are entered. This indicates that the value in the model block is not equal to the value in the edit box. Actions that store the value (for example, striking the enter key) load the value and change the text back to the standard color. |
Adjustor Box
Model block, value and initial
value |
|
Requirements |
None |
|
|
Node List |
1 |
Input |
|
2 |
InitValue |
|
|
3 |
Minimum |
|
|
4 |
Maximum |
|
|
5 |
Mult |
|
|
6 |
Output |
|
|
7 |
Documentation node |
|
|
See also: Inverse Live Constant, Scale-by Live Constant |
||
|
Model graphic |
|
|
|
Select graphic |
|
|
|
Tab |
Constants |
|
|
Function |
Provide selection from user-defined list of strings. String can be changed at any time by double clicking on the block after compile, which brings a string adjustor box into view. |
|
|
Special behavior. |
After compile, double click on the Live Constant block to view the string adjustor box. Adjustor provides list box to allow string selection. Value is copied into InitValue (node 2) after clicking "Save value as initial value" button right of "OK" button. String is restored to InitValue (node 2) after each compile. After model is compiled, model block is painted white when the value is equal to the initial value and silver when not equal. |
String Adjustor Box
Model block, value and initial
value |
|
Requirements |
None |
|
|
Node List |
1 |
Strings Hint: for boolean output, make string list False, True. This will output 0 when False is selected and 1 for True. |
|
2 |
InitValue |
|
|
3 |
Output |
|
|
4 |
Documentation node |
|
|
See also: Live Constant, Scale-by Constant |
||
|
Graphic |
(Note these graphics represent the Push Button in its two states) |
|
Tab |
Meter |
|
Function |
Provides push-button function on model diagram. Double-click on button to change value from true to false (or false to true). |
|
Special behavior |
Color of button changes to indicate output: Green for true output and red for false output. |
|
Node List |
1 |
Initial Value |
|
2 |
Output |
|
|
3 |
Documentation node |
|
Graphic |
(Note these graphics represent the Live Switch in its two states) |
|
Tab |
Constants |
|
Function |
Provides analog switch that can be reconfigured while model runs. Double-click on button to change switch state from OFF to ON (or ON to OFF). To extend a Live Switch to control multiple signal paths, connect the State, the Boolean output state, to a 2-position mux as shown below:
|
|
Special behavior |
Schematic of switch, which is plotted on block, changes according to switch state; also, color changes (between red and green) and state is displayed. |
|
See also |
|
Node List |
1 |
Initial Value |
|
2 |
Input1 |
|
|
3 |
Input2 |
|
|
4 |
State |
|
|
5 |
Output1 |
|
|
6 |
Output2 |
|
|
7 |
Documentation node |
|
Graphic |
|
|
Tab |
Misc |
|
Function |
Define time step for differential equation solver. Solver is limited to 500 state variables (for example, integrators and single-pole s-domain filters take require one state variable, two-pole s-domain filters require two). |
|
Requirements |
Each model must contain one and only one Solver. |
|
Node List |
1 |
h |
|
2 |
Time Increment
|
|
|
3 |
Documentation node |
|
Graphic |
|
|
Tab |
Misc |
|
Function |
Provides access to model time. |
|
Node List |
1 |
Time |
|
2 |
Documentation node |
|
Graphic |
|
|
Tab |
Misc |
|
Function |
Stop model execution. |
|
Special behavior |
Stop forces down the Stop button on control panel. For example, this model section stops execution after 0.5 seconds of simulation time. The enable pushbutton allows the user to disable the stop.
|
|
See also |
Stop() function in Program blocks. |
|
Node List |
1 |
Stop |
|
2 |
Enable |
|
|
3 |
Documentation node |
|
Graphics |
|
|
Tab |
Misc |
|
Function |
Allows extension of wires to other pages, or to other parts of the same page that are not convenient to connect with wires. Input (left graphic) and Output (right graphic) extenders are identical; the two types are provided as a convenience for users who want to document clearly which extenders originate signals (outputs) and which accept them (inputs). Visual ModelQ does not attempt to validate this function. |
|
Special Behavior |
Extenders with the same name are treated as connected wires. The presence of Extenders to increase or decrease model execution time. Extenders can be reversed (i.e., Extenders can be converted to and from Extender Outputs) while remaining on screen and wired in the model. This can be done by placing the mouse over the Extender (or Extender Output) and right clicking; choose "Reverse Extender" from the pop-up menu. |
|
Requirements |
Extenders that have no mates generate a warning. The assumption is that there should be at least one mate for every extender. |
|
Node List |
1 |
Connect |
|
Graphic |
|
|
Tab |
Misc |
|
Function |
Provides extra points in wire path to allow complex wiring routes. |
|
Node List |
1 |
Anchor |
|
Graphic |
|
|
Tab |
Misc |
|
Function |
Provide block to write notes and other documentation. |
|
Node List |
1 |
Documentation |
Add, Subtract, Multiply,
Divide
|
Graphic |
|
|
Tab |
Math |
|
Function |
Algebraic Math (2 input) |
|
Node List |
1 |
Input1 |
|
2 |
Input2
|
|
|
3 |
Output |
Add (3 input), Multiply (3 input)
|
Graphic |
|
|
Tab |
Math |
|
Function |
Algebraic Math (3 input) |
|
Node List |
1 |
Input1 |
|
2 |
Input2
|
|
|
3 |
Input3
|
|
|
4 |
Output |
|
Graphic |
|
|
Tab |
Math |
|
Function |
Multiply the input by a scale factor or one over a scale factor |
|
Node List |
1 |
Input |
|
2 |
Scale by
|
|
|
3 |
Output
|
|
|
4 |
Documentation |
Square Root, One Over x, Absolute Value, Minus x
|
Graphic |
|
|
Tab |
Math |
|
Function |
Various math functions |
|
Node List |
1 |
Input |
|
2 |
Output
|
|
|
3 |
Documentation |
Sqrt of Sum of Squares
|
Graphic |
|
|
Tab |
Math |
|
Function |
Square root of sum of squares |
|
Node List |
1 |
x |
|
2 |
y
|
|
|
3 |
z
|
|
|
4 |
Output
|
|
|
5 |
Documentation |
|
Graphic |
|
|
Tab |
Math |
|
Function |
1/x with Magnitude Limit |
|
Node List |
1 |
Input |
|
2 |
Epsilon
|
|
|
3 |
Output
|
|
|
4 |
Documentation |
|
Graphic |
|
|
Tab |
Math |
|
Function |
Modulo |
|
Node List |
1 |
Input |
|
2 |
Modulo |
|
|
3 |
Mult
|
|
|
4 |
Output |
|
|
5 |
Type
|
|
|
6 |
Documentation |
|
Graphic |
|
|
Tab |
Math |
|
Function |
Quantize |
|
Node List |
1 |
Input |
|
2 |
Type
|
|
|
3 |
Resolution
|
|
|
4 |
Output |
|
|
5 |
Documentation |
Linear Interp, Linear Interp
(Odd), Linear Interp (Even)
|
Graphic |
|
|
Tab |
Math |
|
Function |
Linear Interp, Linear Interp (Odd), Linear Interp (Even) |
|
Node List |
1 |
Input |
|
2 |
x Vector (CSV)
|
|
|
3 |
y Vector (CSV)
|
|
|
4 |
Output
|
|
|
5 |
Number of Points
|
|
|
6 |
Documentation |
|
Graphic |
|
|
Tab |
Trans |
|
Function |
Sine, Cosine, and Tangent |
|
Node List |
1 |
Input |
|
2 |
Output |
arc Sine, arc Cosine, arc Tangent
|
Graphic |
|
|
Tab |
Trans |
|
Function |
arc Sin, arc Cosine, and arc Tangent |
|
Node List |
1 |
Input |
|
2 |
Output |
|
Graphic |
|
|
Tab |
Trans |
|
Function |
arc Tangent(y, x), or ATAN2(y, x) |
|
Node List |
1 |
Input1 |
|
2 |
Input2 |
|
|
3 |
Output |
|
|
4 |
Documentation |
|
Graphic |
|
|
Tab |
Trans |
|
Function |
Rotational Coordinate Transformation |
|
Node List |
1 |
x |
|
2 |
y |
|
|
3 |
Theta |
|
|
4 |
x' |
|
|
5 |
y' |
|
|
6 |
Documentation |
|
Graphic |
|
|
Tab |
Trans |
|
Function |
Provide exponential function. |
|
Node List |
1 |
Input |
|
2 |
Output |
|
|
3 |
Documentation node |
|
Graphic |
|
|
Tab |
Trans |
|
Function |
Provide natural logarithm. |
|
Node List |
1 |
Input |
|
2 |
Output |
|
|
3 |
Documentation node |
|
Graphic |
|
|
Tab |
Trans |
|
Function |
Provide base-10 logarithm. |
|
Node List |
1 |
Input |
|
2 |
Output |
|
|
3 |
Documentation node |
|
Graphic |
|
|
Tab |
Trans |
|
Function |
Y^x, raise any positive floating-point number to any floating-point power. |
|
See also Y^N, for raising negative numbers to integer powers. |
|
|
Node List |
1 |
Y |
|
2 |
x |
|
|
3 |
Output |
|
|
4 |
Documentation node |
|
Graphic |
|
|
Tab |
Trans |
|
Function |
Y^N, raise any floating-point number to any integer power. |
|
See also Y^x, for raising positive number to non-integer powers. |
|
|
Node List |
1 |
Y |
|
2 |
N (if N is not an integer, it will be rounded to
the nearest integer value). |
|
|
3 |
Output |
|
|
4 |
Documentation node |
|
Graphic |
|
|
Tab |
Meter |
|
Function |
Measure RMS of waveform. Display value on model diagram. |
|
Node List |
1 |
Input |
|
2 |
Filter |
|
|
3 |
Mult |
|
|
4 |
TSample |
|
|
5 |
Output |
|
|
6 |
Documentation node |
|
Graphic |
|
|
Tab |
Meter |
|
Function |
Measure DC (average) of waveform. Display value on model diagram. |
|
Node List |
1 |
Input |
|
2 |
Filter |
|
|
3 |
TSample |
|
|
4 |
Mult |
|
|
5 |
Output |
|
|
6 |
Documentation node |
|
Graphic |
|
|
Tab |
Meter |
|
Function |
Measure peaks of waveform. Holds peak for 1/Filter frequency, then value declines to input like a filter with a bandwidth of Filter Hz. Display value on model diagram. |
|
Node List |
1 |
Input |
|
2 |
Filter |
|
|
3 |
TSample |
|
|
4 |
Mult |
|
|
5 |
Output+ |
|
|
6 |
Output- |
|
|
7 |
Documentation node |
Example of Peak meterThe following model fragment shows one
use of a peak meter. The meter Frequency is set to 10.
Here a triangle wave with a
frequency of 5 Hz is fed to a peak meter; this signal is shown in the
attached four-channel scope in blue.
The positive peak is shown in black; notice that it holds the peak 0.1
seconds (1/Frequency) and then
declines like a 10 Hz filter to the triangle wave. The negative peak, shown in green, is similar. Note that the positive and negative peaks
occasionally coincide with the input so that the input triangle wave is
obscured. Note also that if the
triangle wave frequency had been 10 Hz (equal to Frequency) or higher, the peaks would have been DC waves
because of the guaranteed hold time of 1/Frequency seconds.
|
|
Graphic |
|
|
Tab |
Meter |
|
Function |
Measure individual harmonics of an input; displays the magnitude of the harmonic on the block. |
|
Node List |
1 |
Input |
|
2 |
Reference |
|
|
3 |
Harmonic |
|
|
4 |
Hold |
|
|
5 |
Number Cycles |
|
|
6 |
Mult |
|
|
7 |
TSample |
|
|
8 |
Magnitude |
|
|
9 |
Angle |
|
|
10 |
Documentation node |
Example of Harmonic meterThe following example shows the measurement of a one-Hertz square-wave. Time drives the square wave at on Hz (the scale of 6.2832 converts the Square wave output to 1 Hz as the unscaled output is in radians. The 1 Hz signal is also the reference signal. The harmonic is 3, as shown by the simple constant at bottom center. The magnitude is 0.424 (approximately 4/p) and the phase is zero degrees (the phase of this square wave is equal to a cosine wave).
|
|
Graphic |
|
|
Tab |
Meter |
|
Function |
Measure time between events. |
|
Node List |
1 |
Begin |
|
2 |
/Stop |
|
|
3 |
Mult |
|
|
4 |
Output |
|
|
5 |
Documentation node |
Counter
|
Graphic |
|
|
Tab |
Meter |
|
Function |
Count events. Displays value of counter on block during simulation. |
|
Node List |
1 |
Up |
|
2 |
Down |
|
|
3 |
Mult |
|
|
4 |
Clear |
|
|
5 |
Set |
|
|
6 |
Set Value |
|
|
7 |
Minimum Value |
|
|
8 |
Maximum Value |
|
|
9 |
Roll? |
|
|
10 |
Counter |
|
|
11 |
Positive Roll |
|
|
12 |
Negative Roll |
|
|
13 |
Documentation node |
Example of Counter:Multiple counters can be chained for multiple digit counters:
Note that Roll? Node on less significant digit must be true; also, Minimum Value must be 0 and Maximum Value must be 9 on the less significant digit for a base-10 counter. |
|
Graphic |
|
|
Tab |
Meter |
|
Function |
Measure the instantaneous value of waveform. Display value on model diagram. |
|
Node List |
1 |
Input |
|
2 |
Mult |
|
|
3 |
Output |
|
|
4 |
Documentation node |
|
Graphic |
|
|
Tab |
Meter |
|
Function |
Measure and hold the instantaneous value of waveform upon a trigger signal. Display value on model diagram. Pass trigger through to be used with other blocks |
|
Special behavior |
The following example shows how to use the trigger to capture the output of "Signal" using "Trigger" to trigger the capture. A stop is issued immediately after the value is captured.
|
|
Node List |
1 |
Input |
|
2 |
Mult |
|
|
3 |
Trigger Input |
|
|
4 |
Output |
|
|
5 |
Trigger Output |
|
|
6 |
Documentation node |
|
Graphic |
|
|
Tab |
Meter |
|
Function |
Display red is input is logical false and green if true. |
|
Node List |
1 |
Input |
|
2 |
Documentation node |
|
Graphic |
|
|
Tab |
Meter |
|
Function |
Display input as a bar and as text. |
|
Node List |
1 |
Input |
|
2 |
Mult |
|
|
3 |
Minimum |
|
|
4 |
Maximum |
|
|
5 |
Orientation |
|
|
6 |
Justification |
|
|
7 |
Width |
|
|
8 |
Height |
|
|
9 |
Primary Color
|
|
|
10 |
Secondary Color |
|
|
10 |
Documentation node |
|
Graphic |
|
|
Tab |
Meter |
|
Function |
Display input as a dial meter and as text. |
|
Node List |
1 |
Input |
|
2 |
Mult |
|
|
3 |
Minimum |
|
|
4 |
Maximum |
|
|
5 |
Label Font |
|
|
6 |
Display Font |
|
|
7 |
Number Labels |
|
|
8 |
Number Ticks |
|
|
9 |
Width |
|
|
10 |
Needle Color
|
|
|
11 |
Label Color |
|
|
12 |
Gauge Color |
|
|
13 |
Documentation node |
|
Graphic |
|
|
Tab |
Meter |
|
Function |
Display one of a number of user-specified messages on model diagram. |
|
Node List |
1 |
Input |
|
2 |
Messages |
|
|
3 |
Trigger Output |
|
|
4 |
Documentation node |
|
Graphic |
|
|
Tab |
Meter |
|
Function |
Display a message after a trigger event. Message is displayed in a Windows "modal" box, which pauses model execution. |
|
Special behavior |
Display of message halts program execution. To clear message and continue execution, click "OK." To clear message and halt model execution, click "Cancel." If the model triggers the message so rapidly (for example, every 1/4 second) that the model almost immmediately triggers a new message as soon as the "OK" button is clicked, it may be required to click "Cancel" to stop model execution.
|
|
Node List |
1 |
Trigger Input |
|
2 |
Message |
|
|
3 |
Width |
|
|
4 |
Height |
|
|
5 |
Documentation node |
|
Graphic |
|
|
Tab |
Logic |
|
Function |
Perform various logic functions. |
|
Node List |
1 |
Input1 |
|
2 |
Input2 |
|
|
3 |
Output |
|
|
4 |
Documentation node |
|
Graphic |
|
|
Tab |
Logic |
|
Function |
Perform various logic functions. |
|
Node List |
1 |
Input |
|
2 |
Output |
|
|
3 |
Documentation node |
|
Graphic |
|
|
Tab |
Logic |
|
Function |
Delay a digital signal a specified period of time. |
|
Node List |
1 |
Input |
|
2 |
Delay |
|
|
3 |
Output |
|
|
4 |
Documentation node |
|
Graphic |
|
|
Tab |
Logic |
|
Function |
J-K Flip-Flop |
|
Node List |
1 |
J |
|
2 |
K |
|
|
3 |
Controller |
|
|
4 |
\Clear |
|
|
5 |
\Set |
|
|
6 |
Q |
|
|
7 |
\Q |
|
|
8 |
Documentation node |
Equal To, Not Equal To, Greater Than, Greater
Than or Equal To
Less Than, Less Than or Equal
To
|
Graphic |
|
|
Tab |
Compare |
|
Function |
Perform various compare functions. |
|
Node List |
1 |
Input1 |
|
2 |
Input2 |
|
|
3 |
Output |
|
|
4 |
Documentation node |
|
Graphic |
|
|
Tab |
Compare |
|
Function |
Minimum and Maximum. |
|
Node List |
1 |
Input1 |
|
2 |
Input2 |
|
|
3 |
Output |
|
|
4 |
Documentation node |
Cosine Wave, Sine Wave, Square Wave, Triangle Wave, Sawtooth Wave
|
Graphic |
|
|
Tab |
Waveforms |
|
Function |
Provide various waveforms. Note that the square and triangle waves have the same phase as a cosine wave. The vertical edge of the sawtooth occurs at zero time. Note that the input is assumed to be in radians so that each wave has a period of 2 p. When using the Time block, scale the time to increase the frequency. For example, the following model scales the input by 2p to give a frequency of 1 Hz:
|
|
Node List |
1 |
Input |
|
2 |
Output |
|
|
3 |
Documentation node |
|
Graphic |
|
|
Tab |
Waveform |
|
Function |
Provide Pulse (PWM) waveform. Similar to Square Wave (see above) except Duty Cycle Node sets duty cycle in percentage.. Note that the input is assumed to be in radians so that the wave has a period of 2 p. When using the Time block, scale the time to increase the frequency. For example, the following model scales the input by 2p to give a frequency of 1 Hz:
|
|
Node List |
1 |
Input |
|
2 |
Duty Cycle |
|
|
3 |
Output |
|
|
4 |
Documentation node |
|
Graphic |
|
|
Tab |
Analog |
|
Function |
Provide integration |
|
Node List |
1 |
Input |
|
2 |
Gain |
|
|
3 |
Reset Value |
|
|
4 |
Reset |
|
|
5 |
Initial Value |
|
|
6 |
Output |
|
|
7 |
Documentation node |
|
Graphic |
|
|
Tab |
Analog |
|
Function |
Provide integration with maximum and minimum limits |
|
Node List |
1 |
Input |
|
2 |
Gain |
|
|
3 |
Maximum |
|
|
4 |
Minimum |
|
|
5 |
Initial Value |
|
|
6 |
Output |
|
|
7 |
Documentation node |
|
Graphic |
|
|
Tab |
Analog |
|
Function |
Model a two-input, two-output analog switch |
|
Node List |
1 |
Control |
|
2 |
Input0 |
|
|
3 |
Input1 |
|
|
4 |
Output0 |
|
|
5 |
Output1 |
|
|
6 |
Documentation node |
|
Graphic |
|
|
Tab |
Analog |
|
Function |
Model a four-input, one-output analog switch |
|
Node List |
1 |
Control |
|
2 |
Input0 |
|
|
3 |
Input1 |
|
|
4 |
Input2 |
|
|
5 |
Input3 |
|
|
6 |
Documentation node |
|
Graphic |
|
|
Tab |
Analog |
|
Function |
Model an analog comparator (equivalent to Greater-Than or Equal-To) |
|
Node List |
1 |
Input1 |
|
2 |
Input2 |
|
|
3 |
Output |
|
|
4 |
Documentation node |
|
Graphic |
|
|
Tab |
Analog |
|
Function |
Model a hysteresis circuit |
|
Node List |
1 |
Input |
|
2 |
Low Limit |
|
|
3 |
High Limit When input value rises above High Limit, the output turns on. |
|
|
4 |
Initial State (Bool) |
|
|
5 |
Output (Bool) |
|
|
6 |
Documentation node |
|
Graphic |
|
|
Tab |
Analog |
|
Function |
Model an analog comparator (equivalent to Greater-Than or Equal-To) |
|
Node List |
1 |
Input |
|
2 |
Minimum |
|
|
3 |
Maximum |
|
|
4 |
Clamped |
|
|
5 |
Output |
|
|
6 |
Documentation node |
|
Graphic |
|
|
Tab |
Analog |
|
Function |
Ramp limit |
|
Node List |
1 |
Input |
|
2 |
Positive Rate |
|
|
3 |
Negative Rate |
|
|
4 |
Output |
|
|
5 |
Documentation node |
|
Graphic |
|
|
Tab |
Analog |
|
Function |
Provide gain that shifts with the sign of the input |
|
See also |
Program blocks to implement more complex gain-variation. |
|
Node List |
1 |
Input |
|
2 |
Positive Gain |
|
|
3 |
Negative Rate |
|
|
4 |
Output |
|
|
5 |
Documentation node |
|
Graphic |
|
|
Tab |
Analog |
|
Function |
Deadband |
|
See also |
Program blocks to implement more complex deadband functions. |
|
Node List |
1 |
Input |
|
2 |
Positive Band |
|
|
3 |
Negative Band |
|
|
4 |
Output |
|
|
5 |
Documentation node |
|
Graphic |
|
|
Tab |
Analog |
|
Function |
Deadband compensation algorithm |
|
See also |
Program blocks to implement more complex deadband compensation. |
|
Node List |
1 |
Input |
|
2 |
Positive Band |
|
|
3 |
Negative Band |
|
|
4 |
Output |
|
|
5 |
Documentation node |
|
Graphic |
|
|
Tab |
Analog |
|
Function |
Asynchronous Hold |
|
Node List |
1 |
Input |
|
2 |
Hold |
|
|
3 |
Output |
|
|
4 |
Documentation node |
|
Graphic |
|
|
Tab |
Analog |
|
Function |
Random number generator. |
|
Node List |
1 |
Amplitude |
|
2 |
Offset |
|
|
3 |
Output |
|
|
4 |
Documentation node |
|
Graphic |
|
|
Tab |
Analog Filters |
|
Function |
Provide an analog proportional-integral control law with wind-up control. Output = KP x (KI/s + 1), subject to wind-up control. |
|
Node List |
1 |
Input |
|
2 |
KP |
|
|
3 |
KI |
|
|
4 |
Saturation |
|
|
5 |
Wind-up |
|
|
6 |
Output |
|
|
7 |
Documentation node |
|
Graphic |
|
|
Tab |
Analog Filters |
|
Function |
Provide an analog proportional-integral-plus (PI+) control law with wind-up control. |
|
Node List |
1 |
Command |
|
2 |
KP |
|
|
3 |
KI |
|
|
4 |
KFR |
|
|
5 |
Saturation |
|
|
6 |
Wind-up |
|
|
7 |
Output |
|
|
8 |
Error Monitor |
|
|
9 |
Feedback |
|
|
9 |
Documentation node |
|
Graphic |
|
|
Tab |
Analog Filters |
|
Function |
Provide an analog proportional-integral control law with wind-up control. Output = KP x (KI/s + 1 + KDs), subject to wind-up control. |
|
Node List |
1 |
Input |
|
2 |
KP |
|
|
3 |
KI |
|
|
4 |
KD Derivative gain |
|
|
5 |
Low-pass Frequency Break (-3dB) frequency of low-pass filter applied to derivative term. |
|
|
6 |
Saturation |
|
|
7 |
Wind-up |
|
|
8 |
Output |
|
|
9 |
Documentation node |
|
Graphic |
|
|
Tab |
Analog Filters |
|
Function |
Provide a single-pole low-pass filter in the form of |
|
Node List |
1 |
Input |
|
2 |
Frequency |
|
|
3 |
Output |
|
|
4 |
Documentation node |
|
Graphic |
|
|
Tab |
Analog Filters |
|
Function |
Provide a lead-lag filter in the form of |
|
Node List |
1 |
Input |
|
2 |
Numerator Frequency |
|
|
3 |
Denominator Frequency |
|
|
4 |
Output |
|
|
5 |
Documentation node |
|
Graphic |
|
|
Tab |
Analog Filters |
|
Function |
Provide a two-pole low-pass filter in the form of |
|
Node List |
1 |
Input |
|
2 |
Frequency |
|
|
3 |
Damping |
|
|
4 |
Output |
|
|
5 |
Documentation node |
|
Graphic |
|
|
Tab |
Analog Filters |
|
Function |
Provide a two-pole low-pass filter in the form of |
|
Node List |
1 |
Input |
|
2 |
Frequency |
|
|
3 |
Damping |
|
|
4 |
Output |
|
|
5 |
Documentation node |
|
Graphic |
|
|
Tab |
Analog Filters |
|
Function |
Provide a two-pole low-pass filter in the form of |
|
Node List |
1 |
Input |
|
2 |
Numerator Frequency |
|
|
3 |
Numerator Damping |
|
|
4 |
Denominator Frequency |
|
|
5 |
Denominator Damping |
|
|
6 |
Output |
|
|
7 |
Documentation node |
1st – 6th order
s-domain filters
|
Graphics |
|
|
Tab |
F(s) |
|
Function |
Provide 1st-6th order filters set by z-domain coefficients. Transfer function is C(z)/R(z) = (A(N)s^N + … + A(0))/s^N + B(N-1)s^(N-1)… + B(0)) |
|
Node List |
1 |
Input Node |
|
2 |
Output Node |
|
|
Top side, left set (2-7 nodes) |
Numerator coefficients, from left to right, with A(N) – A(0). |
|
|
Top side, right set (1-6 nodes) |
Denominator coefficients, from left to right, with B(N-1) through B0. B(N) is assumed = 1. |
|
|
Bottom |
Documentation node |
|
Graphic |
|
|
Tab |
Digital |
|
Function |
Provide regular sampling for digital blocks |
|
Special behavior |
Each digital controller must be named uniquely. Controllers are automatically given unique (Controller1, Controller2, …) names upon placement in model. At least one digital controller must be present in any model that has one or more digital (yellow) blocks. |
|
Node List |
1 |
Sample Time |
|
2 |
Sample Frequency |
|
|
3 |
Documentation node |
|
Graphic |
|
|
Tab |
Digital |
|
Function |
Sample and hold |
|
Notes |
Most digital blocks have the sample/hold function built in so that analog signals can be fed directly into digital blocks. |
|
Node List |
1 |
Input |
|
2 |
Controller |
|
|
3 |
Output |
|
|
4 |
Documentation node |
|
Graphic |
|
|
Tab |
Digital |
|
Function |
Delay a signal one sample time. |
|
Node List |
1 |
Input |
|
2 |
Controller |
|
|
3 |
Output |
|
|
4 |
Documentation node |
|
Graphic |
|
|
Tab |
Digital |
|
Function |
Delay a signal a fraction of one sample time to simulate delay to execute digital calculation algorithms |
|
Node List |
1 |
Input |
|
2 |
Controller |
|
|
3 |
Delay |
|
|
4 |
Output |
|
|
5 |
Documentation node |
|
Graphic |
|
|
Tab |
Digital |
|
Function |
Calculate simple difference (difference of two most recent samples) divided by sample time; this is a common approximation to a derivative. |
|
Node List |
1 |
Input |
|
2 |
Controller |
|
|
3 |
Output |
|
|
4 |
Documentation node |
|
Graphic |
|
|
Tab |
Digital |
|
Function |
Calculate difference based on the inverse trapezoidal method. This method can provide the derivative with less phase lag than simple differences, but has a penalty of increasing noise sensitivity. |
|
Node List |
1 |
Input |
|
2 |
Controller |
|
|
3 |
a |
|
|
3 |
Output |
|
|
4 |
Documentation node |
|
Graphic |
|
|
Tab |
Digital |
|
Function |
Calculate the sum of the input samples divided by the sample time. This is a common approximation to analog integration. |
|
Node List |
1 |
Input |
|
2 |
Controller |
|
|
3 |
Initial Value |
|
|
4 |
Output |
|
|
5 |
Documentation node |
|
Graphic |
|
|
Tab |
Digital |
|
Function |
Calculate the sum of the input samples divided by the sample time; clamp output between Minimum and Maximum. This is a common approximation to clamped analog integration. |
|
Node List |
1 |
Input |
|
2 |
Controller |
|
|
3 |
Initial Value |
|
|
4 |
Minimum |
|
|
5 |
Maximum |
|
|
6 |
Output |
|
|
7 |
Documentation node |
Digital Random Number Generator
|
Graphic |
|
|
Tab |
Digital |
|
Function |
Digital random number generator. |
|
Node List |
1 |
Controller |
|
2 |
Amplitude |
|
|
3 |
Offset |
|
|
4 |
Output |
|
|
5 |
Documentation node |
|
Graphic |
|
|
Tab |
Digital |
|
Function |
Generate dither, the periodic square waves used to break up limit cycles in digital control loops. |
|
Node List |
1 |
Controller |
|
2 |
Amplitude |
|
|
3 |
Cycles |
|
|
4 |
Output |
|
|
5 |
Documentation node |
|
Graphic |
|
|
Tab |
Digital Filters |
|
Function |
Provide a digital proportional-integral control law with wind-up control. Output = KP x (KI/s + 1), subject to wind-up control. |
|
Node List |
1 |
Input |
|
2 |
Controller |
|
|
3 |
KP |
|
|
4 |
KI |
|
|
5 |
Saturation |
|
|
6 |
Wind-up |
|
|
7 |
Output |
|
|
8 |
Error Monitor |
|
|
8 |
Documentation node |
|
Graphic |
|
|
Tab |
Digital Filters |
|
Function |
Provide a digital proportional-integral-plus (PI+) control law with wind-up control. |
|
Node List |
1 |
Command |
|
2 |
Controller |
|
|
3 |
KP |
|
|
4 |
KI |
|
|
5 |
KFR |
|
|
6 |
Saturation |
|
|
7 |
Wind-up |
|
|
8 |
Output |
|
|
9 |
Error Monitor |
|
|
10 |
Feedback |
|
|
11 |
Documentation node |
|
Graphic |
|
|
Tab |
Digital Filters |
|
Function |
Provide a digital proportional-integral control law with wind-up control. Output = KP x (KI/s + 1 + KD x s), subject to wind-up control. Commonly used for single-integrating plants. |
|
Node List |
1 |
Input |
|
2 |
Controller |
|
|
3 |
KP |
|
|
4 |
KI |
|
|
5 |
KD |
|
|
6 |
Saturation |
|
|
7 |
Wind-up |
|
|
8 |
Output |
|
|
9 |
Documentation node |
|
Graphic |
|
|
Tab |
Digital Filters |
|
Function |
Provide a digital proportional-integral control law with wind-up control. Output = KI/s + KP + KD x s, subject to integral saturation. Commonly used for double-integrating plants such for position loops (without velocity loops). |
|
Node List |
1 |
Input |
|
2 |
Controller |
|
|
3 |
KP |
|
|
4 |
KI |
|
|
5 |
KD |
|
|
6 |
Saturation |
|
|
7 |
Integral Saturation |
|
|
8 |
Zero Integrator |
|
|
9 |
Clegg Integrator |
|
|
10 |
Output |
|
|
11 |
Documentation node |
Digital 1-Pole Low-Pass Filter
|
Graphic |
|
|
Tab |
Digital Filters |
|
Function |
Provide the digital equivalent to a single-pole low-pass
filter in the form of |
|
Node List |
1 |
Input |
|
2 |
Controller |
|
|
3 |
Frequency |
|
|
4 |
Output |
|
|
5 |
Documentation node |
|
Graphic |
|
|
Tab |
Digital Filters |
|
Function |
Provide a z-Domain equivalent to the s-Domain lead-lag
filter in the form of |
|
Node List |
1 |
Input |
|
2 |
Controller |
|
|
3 |
Numerator Frequency |
|
|
4 |
Denominator Frequency |
|
|
5 |
Output |
|
|
6 |
Documentation node |
Digital 2-Pole Low-Pass Filter
|
Graphic |
|
|
Tab |
Digital Filters |
|
Function |
Provide the digital equivalent of a two-pole low-pass
filter in the form of |
|
Node List |
1 |
Input |
|
2 |
Controller |
|
|
3 |
Frequency |
|
|
4 |
Damping |
|
|
5 |
Output |
|
|
5 |
Documentation node |
|
Graphic |
|
|
Tab |
Digital Filters |
|
Function |
Provide the digital equivalent of a two-pole low-pass
filter in the form of |
|
Node List |
1 |
Input |
|
2 |
Controller |
|
|
3 |
Frequency |
|
|
4 |
Damping |
|
|
5 |
Output |
|
|
6 |
Documentation node |
|
Graphic |
|
|
Tab |
Digital Filters |
|
Function |
Provide the digital equivalent of a notch filter in the
form of |
|
Node List |
1 |
Input |
|
2 |
Controller |
|
|
3 |
Frequency |
|
|
4 |
Damping |
|
|
5 |
Output |
|
|
5 |
Documentation node |
|
Graphic |
|
|
Tab |
Digital Filters |
|
Function |
Provide the digital equivalent of a two-pole low-pass
filter in the form of |
|
Node List |
1 |
Input |
|
2 |
Controller |
|
|
3 |
Numerator Frequency |
|
|
4 |
Numerator Damping |
|
|
5 |
Denominator Frequency |
|
|
6 |
Denominator Damping |
|
|
7 |
Output |
|
|
8 |
Documentation node |
|
Graphic |
|
|
Tab |
Digital Filters |
|
Function |
Provide a moving average (box car) filter. For example, a fourth-order moving average filter produces: Out(i) = [Input(i) + Input(i-1) + Input(i-2) + Input(i-3)]/4 |
|
Node List |
1 |
Input |
|
2 |
Controller |
|
|
3 |
Maximum Order |
|
|
4 |
Order |
|
|
5 |
Output |
|
|
6 |
Documentation node |
1st – 6th order z-domain
filters
|
Graphics |
|
|
Tab |
F(z) |
|
Function |
Provide 1st-6th order filters set by z-domain coefficients. Transfer function is C(z)/R(z) = (A(N)z^N + … + A(0))/(B(N)z^N + … + B(0)) |
|
Node List |
1 |
Input Node |
|
2 |
Output Node |
|
|
Top side, left set (2-7 nodes) |
Numerator coefficients, from left to right, with A(N) – A(0). |
|
|
Top side, right set (2-7 nodes) |
Denominator coefficients, from left to right, with B(N) through B(0). |
|
|
Bottom |
Documentation node |
Note: This block is currently in beta release.
|
Graphic |
|
|
Tab |
Custom |
|
Function |
Allow user to build custom modules. Custom modules are disabled in default screen. |
|
How to build a custom module. |
|
|
Node List |
|
Node list is set by the user when building custom modules. |
Note: This block is currently in beta release.
|
Graphic |
|
|
Tab |
Custom |
|
Function |
Connect inputs from the model that calls the module. |
|
Notes |
After the custom module is built and saved, it is placed in the calling model. (see Custom Module, above). When viewed from the calling model, one input node will be created for each Custom Module Input block. The input nodes will be named according to the user strings of the Custom Module Input block; for example, if the block picture above were used in a custom module, the node would appear as an "Input1" as viewed from the calling model. |
|
Node List |
1 |
Edge |
|
2 |
Position |
|
|
3 |
Initial Value |
|
|
4 |
Input |
|
|
5 |
Documentation node |
Note: This block is currently in beta release.
|
Graphic |
|
|
Tab |
Custom |
|
Function |
Connect outputs to the model that calls the module. |
|
Notes |
After the custom module is built and saved, it is placed in the calling model. (see Custom Module, above). When viewed from the calling model, one output node will be created for each Custom Module Output block. The output nodes will be named according to the user strings of Custom Module Output block; for example, if the block picture above were used in a custom module, the node would appear as an "Output1" as viewed from the calling model. |
|
Node List |
1 |
Edge |
|
2 |
Position |
|
|
3 |
Output |
|
|
4 |
Documentation node |
Note: This block is currently in beta release.
|
Graphic |
|
|
Tab |
Custom |
|
Function |
Provides documentation nodes on custom module to the model that calls the module. |
|
Notes |
After the custom module is built and saved, it is placed in the calling model. (see Custom Module, above). When viewed from the calling model, one documentation node will be created for each Custom Documentation block. The output nodes will be named according to the user strings of Custom Documentation block; for example, if the block picture above were used in a custom module, the node would appear as an "Documentation" as viewed from the calling model. |
|
Node List |
1 |
Edge |
|
2 |
Position |
|
|
3 |
Documentation node |
2x2
Program, 4x4
Program, 8x8 Program
|
Graphics |
|
|
Tab |
Program |
|
Function |
Supports text-based programming language that is executed at the same rate as the analog model components. Program length is limited to 5000 characters for each program block. The following example sets Output1 to the square root of Input1.
See Visual ModelQ User’s Manual for detail on language. |
|
Node List |
Left |
Input1, Input2, … |
|
Right |
Output1, Output2, … |
|
|
Top |
Program |
|
|
Bottom |
Documentation node |
2x2 Digital Program, 4x4 Digital Program, 8x8 Digital Program
|
Graphics |
|
|
Tab |
Program |
|
Function |
Supports text-based programming language that is executed at a rate equal to a digital controller. Program length is limited to 5000 characters for each program block. The following example sets Output1 to the square root of Input1.
See Visual ModelQ User’s Manual for detail on language. |
|
Node List |
Left |
Input1, Input2, … |
|
Left (Bottom) |
Controller (bottom left) |
|
|
Right |
Output1, Output2, … |
|
|
Top |
Program |
|
|
Bottom |
Documentation node |
|
Graphic |
|
|
Tab |
Motion |
|
Function |
Quantizes output of motor feedback |
|
Node List |
1 |
InputPosition |
|
2 |
Resolution |
|
|
3 |
ResolutionType |
|
|
4 |
Enable |
|
|
5 |
OutputPosition |
|
|
17 |
Documentation node |
|
Graphic |
|
|
Tab |
Motion |
|
Function |
Provides model for motor and load with compliant coupling. |
|
Node List |
1 |
tAppl |
|
2 |
tMDist |
|
|
3 |
TLDist |
|
|
4 |
Vmax |
|
|
5 |
Jm |
|
|
6 |
Jl |
|
|
7 |
Ks |
|
|
8 |
Kcv |
|
|
9 |
Kmv |
|
|
10 |
Klv |
|
|
11 |
Am |
|
|
12 |
Vm |
|
|
13 |
Pm |
|
|
14 |
Al |
|
|
15 |
Vl |
|
|
16 |
Pl |
|
|
17 |
Documentation node |
|
Graphic |
|
||||
|
Tab |
Motion |
||||
|
Function |
Convert from stationary to three-phase rotating reference frame. |
||||
|
Sample use |
The following fragment shows how to connect voltages from a phase-based current controller to DQ motor voltages, and then convert the DQ currents output by the motor to phase currents using the DQ-to-ABC block.
|
||||
|
Node List |
1 |
Direct |
||
|
2 |
Quadrature |
|||
|
3 |
Theta |
|||
|
4 |
PhaseA |
|||
|
5 |
PhaseB |
|||
|
6 |
PhaseC |
|||
|
7 |
Documentation node |
|||
|
Graphic |
|
||
|
Tab |
Motion |
||
|
Function |
Convert from stationary to three-phase rotating reference frame, clamping the output. Intended for voltage conversion where the clamp is the bus voltage |
||
|
Node List |
1 |
Direct |
|
|
2 |
Quadrature |
|
|
|
3 |
Theta |
|
|
|
4 |
Clamp Bipolar limit on output; applied after Phases A-C are calculated. In a simple voltage converter, this is commonly set to VBUS/2. |
|
|
|
5 |
PhaseA |
|
|
|
6 |
PhaseB |
|
|
|
7 |
PhaseC |
|
|
|
8 |
Documentation node |
|
|
|
Graphic |
|
||
|
Tab |
Motion |
||
|
Function |
Convert from 3-phase rotating to stationary reference frame. |
||
|
Sample use |
The following fragment shows how to connect voltages from a phase-based current controller to DQ motor voltages, and then convert the DQ currents output by the motor to phase currents using the DQ-to-ABC block.
|
||
|
Node List |
1 |
PhaseA |
|
|
2 |
PhaseB |
|
|
|
3 |
PhaseC |
|
|
|
4 |
Theta |
|
|
|
5 |
Direct |
|
|
|
6 |
Quadrature |
|
|
|
7 |
Documentation node |
|
|
|
Graphic |
|
|||
|
Tab |
Motion |
|||
|
Function |
Convert from 3-phase rotating to stationary reference frame including deducing angle. For example, if you know IA, IB, and IC, use this block to determine the magnitude, angle, and offset of the three phases. |
|||
|
Node List |
1 |
PhaseA |
|
|
2 |
PhaseB |
||
|
3 |
PhaseC |
||
|
4 |
Magnitude |
||
|
5 |
Theta |
||
|
6 |
Offset |
||
|
7 |
Documentation node |
||
|
Graphic |
|
|||
|
Tab |
Motion |
|||
|
Function |
Provide DQ current and torque given DQ voltages. |
|||
|
Sample use |
The following fragment shows how to connect voltages from a phase-based current controller to DQ motor voltages using an ABC-to-DQ block, and then convert the DQ currents output by the motor to phase currents using the DQ-to-ABC block.
|
|||
|
Node List |
1 |
VQ |
|
|
2 |
VD |
||
|
3 |
KT |
||
|
4 |
LQ |
||
|
5 |
LD |
||
|
6 |
R |
||
|
7 |
Pole Pairs |
||
|
8 |
Velocity |
||
|
9 |
Documentation node |
||
|
Graphic |
|
|
Tab |
Motion |
|
Function |
Provides general profile where A-V-D (acceleration, velocity, and distance) can be specified independently. |
|
Node List |
1 |
Move |
|
2 |
Continuous |
|
|
3 |
Pf |
|
|
4 |
PDistance |
|
|
5 |
VTraverse |
|
|
6 |
AMax |
|
|
7 |
DMax |
|
|
8 |
SCurve |
|
|
9 |
TDwell |
|
|
10 |
Pc |
|
|
11 |
Vc |
|
|
12 |
Ac |
|
|
13< |