Plecs {
Name "repeating_sequence_example"
Version "4.4"
CircuitModel "ContStateSpace"
StartTime "0.0"
StopTime "10"
Timeout ""
Solver "dopri"
MaxStep "1e-3"
InitStep "-1"
FixedStep "1e-3"
Refine "1"
ZCStepSize "1e-9"
RelTol "1e-3"
AbsTol "-1"
TurnOnThreshold "0"
SyncFixedStepTasks "2"
UseSingleCommonBaseRate "2"
LossVariableLimitExceededMsg "3"
NegativeSwitchLossMsg "3"
DivisionByZeroMsg "3"
StiffnessDetectionMsg "2"
MaxConsecutiveZCs "1000"
AlgebraicLoopWithStateMachineMsg "3"
AssertionAction "1"
InitializationCommands ""
InitialState "1"
SystemState ""
TaskingMode "1"
TaskConfigurations ""
CodeGenParameterInlining "2"
CodeGenFloatingPointFormat "2"
CodeGenAbsTimeUsageMsg "3"
CodeGenBaseName ""
CodeGenOutputDir ""
CodeGenExtraOpts ""
CodeGenTarget "Generic"
CodeGenTargetSettings ""
ExtendedMatrixPrecision "1"
MatrixSignificanceCheck "2"
EnableStateSpaceSplitting "2"
DisplayStateSpaceSplitting "1"
DiscretizationMethod "2"
ExternalModeSettings ""
AlgebraicLoopMethod "1"
AlgebraicLoopTolerance "1e-6"
ScriptsDialogGeometry ""
ScriptsDialogSplitterPos "0"
Schematic {
Location [326, 45; 726, 245]
ZoomFactor 1
SliderPosition [0, 0]
ShowBrowser off
BrowserWidth 100
Component {
Type Scope
Name "Scope"
Show on
Position [300, 110]
Direction up
Flipped off
Location [776, 45; 1164, 307]
State "AAAA/wAAAAD9AAAAAgAAAAEAAAAAAAAAAPwCAAAAA/sAAAAQAFoAbwBvA"
"G0AQQByAGUAYQAAAAAA/////wAAADQA////+wAAABQAUwBhAHYAZQBkAFYAaQBlAHcAcwAAAAAA//"
"///wAAAGYA////+wAAAAwAVAByAGEAYwBlAHMAAAAAAP////8AAABmAP///wAAAAMAAAAAAAAAAPw"
"BAAAAAfsAAAAUAEQAYQB0AGEAVwBpAGQAZwBlAHQAAAAAAP////8AAABCAP///wAAAYQAAADqAAAA"
"BAAAAAQAAAAIAAAACPwAAAABAAAAAgAAAAEAAAAOAFQAbwBvAGwAQgBhAHIBAAAAAP////8AAAAAA"
"AAAAA=="
SavedViews "AAAAAgAAAAA="
HeaderState "AAAA/wAAAAAAAAABAAAAAQAAAAAAAAAAAAAAAAAAAAAL/gMAAAAJAAAAA"
"QAAAGQAAAADAAAAZAAAAAIAAABkAAAABQAAAGQAAAAEAAAAZAAAAAcAAABkAAAABgAAAGQAAAAJAA"
"AAZAAAAAgAAABkAAABFAAAAAsBAAABAAAAAAAAAAAAAAAAZP////8AAACBAAAAAAAAAAsAAAD6AAA"
"AAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAA"
"AAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAQAAAAAAA"
"AAaAAAAAQAAAAAAAAPoAAAAABM="
PlotPalettes "AAAAAQAAAAEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
Axes "1"
TimeRange "0.0"
ScrollingMode "1"
SingleTimeAxis "1"
Open "1"
Ts "-1"
SampleLimit "0"
XAxisLabel ""
ShowLegend "1"
Axis {
Name ""
AutoScale 1
MinValue 0
MaxValue 1
Signals {}
SignalTypes [ ]
Untangle 0
KeepBaseline off
BaselineValue 0
}
Fourier {
SingleXAxis on
AxisLabel "Frequency"
Scaling 0
PhaseDisplay 0
ShowFourierLegend off
Axis {
Name ""
AutoScale 1
MinValue 0
MaxValue 1
Signals {}
Untangle 0
KeepBaseline off
BaselineValue 0
}
}
}
Component {
Type Subsystem
Name "Repeating\nSequence\n(behavioral)"
Show on
Position [185, 110]
Direction up
Flipped off
Frame [-20, -20; 20, 20]
LabelPosition [0, 23]
LabelAlign up
SampleTime "-1"
CodeGenDiscretizationMethod "2"
CodeGenTarget "Generic"
MaskType "Repeating Sequence (behavioral)"
MaskDescription "Output a repeating sequence of numbers specified in a t"
"able of time-value pairs. Values of time should be monotonically increasing."
MaskIconFrame on
MaskIconOpaque off
MaskIconRotates on
MaskInit "period = time(end) - time(1);"
Parameter {
Variable "time"
Prompt "Vector of input values (x) (time)"
Type FreeText
Value "[0 2]"
Show off
Tunable off
TabName ""
}
Parameter {
Variable "output"
Prompt "Vector of output values f(x)"
Type FreeText
Value "[0 2]"
Show off
Tunable off
TabName ""
}
Terminal {
Type Output
Position [24, 0]
Direction right
}
Schematic {
Location [400, 222; 677, 404]
ZoomFactor 1
SliderPosition [0, 0]
ShowBrowser off
BrowserWidth 100
Component {
Type Lookup1D
Name "1D-Table"
Show on
Position [205, 70]
Direction right
Flipped off
Parameter {
Variable "x"
Value "time"
Show off
}
Parameter {
Variable "f(x)"
Value "output"
Show off
}
Parameter {
Variable "ZeroCrossingSignals"
Value "2"
Show off
}
}
Component {
Type Clock
Name "Clock"
Show on
Position [75, 65]
Direction right
Flipped off
}
Component {
Type Math
Name "Math"
Show off
Position [140, 70]
Direction up
Flipped off
Parameter {
Variable "Operator"
Value "7"
Show off
}
}
Component {
Type Constant
Name "Constant"
Show off
Position [75, 120]
Direction right
Flipped off
Frame [-20, -10; 20, 10]
LabelPosition [0, 13]
LabelAlign up
Parameter {
Variable "Value"
Value "period"
Show off
}
Parameter {
Variable "DataType"
Value "10"
Show off
}
}
Component {
Type Output
Name "1"
Show off
Position [260, 70]
Direction right
Flipped off
Parameter {
Variable "Index"
Value "1"
Show on
}
Parameter {
Variable "Width"
Value "-1"
Show off
}
}
Connection {
Type Signal
SrcComponent "Math"
SrcTerminal 1
DstComponent "1D-Table"
DstTerminal 1
}
Connection {
Type Signal
SrcComponent "Clock"
SrcTerminal 1
DstComponent "Math"
DstTerminal 2
}
Connection {
Type Signal
SrcComponent "Constant"
SrcTerminal 1
Points [105, 120; 105, 75]
DstComponent "Math"
DstTerminal 3
}
Connection {
Type Signal
SrcComponent "1D-Table"
SrcTerminal 2
Points [230, 70]
DstComponent "1"
DstTerminal 1
}
}
}
Connection {
Type Signal
SrcComponent "Repeating\nSequence\n(behavioral)"
SrcTerminal 1
DstComponent "Scope"
DstTerminal 1
}
}
}
DemoSignature "LO5TvMFFM/VzPBab9OqoGh69WmSbdbcE5qgneOf7CrA="