LTI Models and Responses
Describe LTI systems with transfer functions, poles and zeros, or state space. Examine discretization, responses, and validation examples.
Transfer Functions and State Space
A transfer function has a numerator and denominator. A ZPK model has zeros, poles, and gain. In a state-space model, the products of matrices A and C with the state, and of B and D with the input, must have compatible dimensions. The tested MIMO frequency response has shape [frequencies, outputs, inputs]. Discrete systems require a positive sample period and a compatible time grid.
Time Responses of Discrete Models in P011-bis
The test Job uses the proper transfer function 0.5/(z−0.5) and its state-space equivalent, with a period of 0.125 s and eight evenly spaced time points. In both cases, response.step, response.impulse, and response.input return lti: set: invalid sampling time. The expected step response is 1−0.5ᵏ. lti.inspect, lti.tf, and response.frequency remain available in the two cases tested. The operation reference also includes continuous-time response examples.

Operation Reference
Jump to an Operation
lti.inspect
- Access
- Registered in the Python Job
- Arguments
- Typed operands a, b, and c, with an optional typed options struct.
- Shape
- TF, ZPK, or SS struct
- Units
- Explicit sample period in seconds
- Result
- Numeric and diagnostic fields.
- Purpose
- Shows the LTI model characteristics.
gxtxt_api_call("SIGNAL_API_v1", "lti.inspect", args)Fields and Options
a- Purpose
- LTI model
- Type
- struct
- Required
- Yes (1)
- Units
- 1
- Shape
- kind accepts tf, zpk, or ss. domain accepts continuous or discrete. discrete requires a positive sample_period.
- Error
InvalidModel
b- Purpose
- Unused protocol operand
- Type
empty- Required
- No (0)
- Units
- 1
- Shape
- Unused
- Error
InvalidOperand
c- Purpose
- Unused protocol operand
- Type
empty- Required
- No (0)
- Units
- 1
- Shape
- Unused
- Error
InvalidOperand
Recorded Result · lti.inspect:ss
Download the example script (extract the ZIP first).
Example Operands Preview
[
{
"kind": "struct",
"fields": {
"kind": {
"kind": "text",
"value": "ss"
},
"domain": {
"kind": "text",
"value": "discrete"
},
"sample_period": {
"kind": "array",
"shape": [
1,
1
],
"real": [
0.125
]
},
"A": {
"kind": "array",
"shape": [
1,
1
],
"real": [
0.5
]
},
"B": {
"kind": "array",
"shape": [
1,
1
],
"real": [
0.5
]
},
"C": {
"kind": "array",
"shape": [
1,
1
],
"real": [
1
]
},
"D": {
"kind": "array",
"shape": [
1,
1
],
"real": [
0
]
}
}
},
{
"kind": "empty"
},
{
"kind": "empty"
}
]Result Preview
{
"poles_real": 0.5,
"poles_imaginary": 0.0,
"zeros_real": {
"dtype": "float64",
"shape": [
0,
1
],
"values": []
},
"zeros_imaginary": {
"dtype": "float64",
"shape": [
0,
1
],
"values": []
},
"stable": true,
"dc_gain_defined": true,
"dc_gain_real": 1.0,
"dc_gain_imaginary": 0.0
}lti.tf
- Access
- Registered in the Python Job
- Arguments
- Typed operands a, b, and c, with an optional typed options struct.
- Shape
- TF, ZPK, or SS struct
- Units
- Explicit sample period in seconds
- Result
- Numeric and diagnostic fields.
- Purpose
- Builds a transfer-function model.
gxtxt_api_call("SIGNAL_API_v1", "lti.tf", args)Fields and Options
a- Purpose
- LTI model
- Type
- struct
- Required
- Yes (1)
- Units
- 1
- Shape
- kind accepts tf, zpk, or ss. domain accepts continuous or discrete. discrete requires a positive sample_period.
- Error
InvalidModel
b- Purpose
- Unused protocol operand
- Type
empty- Required
- No (0)
- Units
- 1
- Shape
- Unused
- Error
InvalidOperand
c- Purpose
- Unused protocol operand
- Type
empty- Required
- No (0)
- Units
- 1
- Shape
- Unused
- Error
InvalidOperand
Recorded Result · lti.tf:ss
Download the example script (extract the ZIP first).
Example Operands Preview
[
{
"kind": "struct",
"fields": {
"kind": {
"kind": "text",
"value": "ss"
},
"domain": {
"kind": "text",
"value": "discrete"
},
"sample_period": {
"kind": "array",
"shape": [
1,
1
],
"real": [
0.125
]
},
"A": {
"kind": "array",
"shape": [
1,
1
],
"real": [
0.5
]
},
"B": {
"kind": "array",
"shape": [
1,
1
],
"real": [
0.5
]
},
"C": {
"kind": "array",
"shape": [
1,
1
],
"real": [
1
]
},
"D": {
"kind": "array",
"shape": [
1,
1
],
"real": [
0
]
}
}
},
{
"kind": "empty"
},
{
"kind": "empty"
}
]Result Preview
{
"numerator_real": {
"dtype": "float64",
"shape": [
1,
2
],
"values": [
0.0,
0.5
]
},
"numerator_imaginary": {
"dtype": "float64",
"shape": [
1,
2
],
"values": [
0.0,
0.0
]
},
"denominator_real": {
"dtype": "float64",
"shape": [
1,
2
],
"values": [
1.0,
-0.5
]
},
"denominator_imaginary": {
"dtype": "float64",
"shape": [
1,
2
],
"values": [
0.0,
0.0
]
}
}Negative Test or Attempt Result · lti.tf:non-SISO
Download the example script (extract the ZIP first).
Example Operands Preview
[
{
"kind": "struct",
"fields": {
"kind": {
"kind": "text",
"value": "ss"
},
"A": {
"kind": "array",
"shape": [
2,
2
],
"real": [
-3,
0,
0,
-6
]
},
"B": {
"kind": "array",
"shape": [
2,
2
],
"real": [
1,
0,
0,
1
]
},
"C": {
"kind": "array",
"shape": [
3,
2
],
"real": [
1,
0,
1,
0,
1,
1
]
},
"D": {
"kind": "array",
"shape": [
3,
2
],
"real": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
]
}
}
},
{
"kind": "empty"
},
{
"kind": "empty"
}
]Result Preview
"GXTXT:Signal:DimensionMismatch: MIMO state-space conversion to scalar TF/ZPK is undefined"
lti.zpk
- Access
- Registered in the Python Job
- Arguments
- Typed operands a, b, and c, with an optional typed options struct.
- Shape
- TF, ZPK, or SS struct
- Units
- Explicit sample period in seconds
- Result
- Numeric and diagnostic fields.
- Purpose
- Builds a zero-pole-gain model.
gxtxt_api_call("SIGNAL_API_v1", "lti.zpk", args)Fields and Options
a- Purpose
- LTI model
- Type
- struct
- Required
- Yes (1)
- Units
- 1
- Shape
- kind accepts tf, zpk, or ss. domain accepts continuous or discrete. discrete requires a positive sample_period.
- Error
InvalidModel
b- Purpose
- Unused protocol operand
- Type
empty- Required
- No (0)
- Units
- 1
- Shape
- Unused
- Error
InvalidOperand
c- Purpose
- Unused protocol operand
- Type
empty- Required
- No (0)
- Units
- 1
- Shape
- Unused
- Error
InvalidOperand
Recorded Result · lti.zpk
Download the example script (extract the ZIP first).
Example Operands Preview
[
{
"kind": "struct",
"fields": {
"kind": {
"kind": "text",
"value": "tf"
},
"domain": {
"kind": "text",
"value": "continuous"
},
"numerator": {
"kind": "array",
"shape": [
1,
1
],
"real": [
1
]
},
"denominator": {
"kind": "array",
"shape": [
2,
1
],
"real": [
1,
2
]
}
}
},
{
"kind": "empty"
},
{
"kind": "empty"
}
]Result Preview
{
"zeros_real": {
"dtype": "float64",
"shape": [
0,
1
],
"values": []
},
"zeros_imaginary": {
"dtype": "float64",
"shape": [
0,
1
],
"values": []
},
"poles_real": -2.0,
"poles_imaginary": 0.0,
"gain_real": 1.0,
"gain_imaginary": 0.0
}lti.ss
- Access
- Registered in the Python Job
- Arguments
- Typed operands a, b, and c, with an optional typed options struct.
- Shape
- TF, ZPK, or SS struct
- Units
- Explicit sample period in seconds
- Result
- Numeric and diagnostic fields.
- Purpose
- Builds a state-space model.
gxtxt_api_call("SIGNAL_API_v1", "lti.ss", args)Fields and Options
a- Purpose
- LTI model
- Type
- struct
- Required
- Yes (1)
- Units
- 1
- Shape
- kind accepts tf, zpk, or ss. domain accepts continuous or discrete. discrete requires a positive sample_period.
- Error
InvalidModel
b- Purpose
- Unused protocol operand
- Type
empty- Required
- No (0)
- Units
- 1
- Shape
- Unused
- Error
InvalidOperand
c- Purpose
- Unused protocol operand
- Type
empty- Required
- No (0)
- Units
- 1
- Shape
- Unused
- Error
InvalidOperand
Recorded Result · lti.ss
Download the example script (extract the ZIP first).
Example Operands Preview
[
{
"kind": "struct",
"fields": {
"kind": {
"kind": "text",
"value": "tf"
},
"domain": {
"kind": "text",
"value": "continuous"
},
"numerator": {
"kind": "array",
"shape": [
1,
1
],
"real": [
1
]
},
"denominator": {
"kind": "array",
"shape": [
2,
1
],
"real": [
1,
2
]
}
}
},
{
"kind": "empty"
},
{
"kind": "empty"
}
]Result Preview
{
"A_real": -2.0,
"A_imaginary": 0.0,
"B_real": 1.0,
"B_imaginary": 0.0,
"C_real": 1.0,
"C_imaginary": 0.0,
"D_real": 0.0,
"D_imaginary": 0.0
}lti.zoh
- Access
- Registered in the Python Job
- Arguments
- Typed operands a, b, and c, with an optional typed options struct.
- Shape
- TF, ZPK, or SS struct
- Units
- Explicit sample period in seconds
- Result
- Numeric and diagnostic fields.
- Purpose
- Discretizes with zero-order hold.
gxtxt_api_call("SIGNAL_API_v1", "lti.zoh", args)Fields and Options
a- Purpose
- LTI model
- Type
- struct
- Required
- Yes (1)
- Units
- 1
- Shape
- kind accepts tf, zpk, or ss. domain accepts continuous or discrete. discrete requires a positive sample_period.
- Error
InvalidModel
b- Purpose
- Unused protocol operand
- Type
empty- Required
- No (0)
- Units
- 1
- Shape
- Unused
- Error
InvalidOperand
c- Purpose
- Unused protocol operand
- Type
empty- Required
- No (0)
- Units
- 1
- Shape
- Unused
- Error
InvalidOperand
options.sample_period- Purpose
- Output sample period
- Type
- number
- Required
- Yes (1)
- Units
- s
- Minimum
>0- Error
InvalidSampleRate
Recorded Result · lti.zoh
Download the example script (extract the ZIP first).
Example Operands Preview
[
{
"kind": "struct",
"fields": {
"kind": {
"kind": "text",
"value": "tf"
},
"domain": {
"kind": "text",
"value": "continuous"
},
"numerator": {
"kind": "array",
"shape": [
1,
1
],
"real": [
1
]
},
"denominator": {
"kind": "array",
"shape": [
2,
1
],
"real": [
1,
2
]
}
}
},
{
"kind": "empty"
},
{
"kind": "empty"
},
{
"kind": "struct",
"fields": {
"sample_period": {
"kind": "array",
"shape": [
1,
1
],
"real": [
0.01
]
}
}
}
]Result Preview
{
"numerator_real": {
"dtype": "float64",
"shape": [
1,
2
],
"values": [
0.0,
0.009900663346622374
]
},
"numerator_imaginary": {
"dtype": "float64",
"shape": [
1,
2
],
"values": [
0.0,
0.0
]
},
"denominator_real": {
"dtype": "float64",
"shape": [
1,
2
],
"values": [
1.0,
-0.9801986733067554
]
},
"denominator_imaginary": {
"dtype": "float64",
"shape": [
1,
2
],
"values": [
0.0,
0.0
]
},
"sample_period": 0.01
}lti.tustin
- Access
- Registered in the Python Job
- Arguments
- Typed operands a, b, and c, with an optional typed options struct.
- Shape
- TF, ZPK, or SS struct
- Units
- Explicit sample period in seconds
- Result
- Numeric and diagnostic fields.
- Purpose
- Discretizes with the Tustin method.
gxtxt_api_call("SIGNAL_API_v1", "lti.tustin", args)Fields and Options
a- Purpose
- LTI model
- Type
- struct
- Required
- Yes (1)
- Units
- 1
- Shape
- kind accepts tf, zpk, or ss. domain accepts continuous or discrete. discrete requires a positive sample_period.
- Error
InvalidModel
b- Purpose
- Unused protocol operand
- Type
empty- Required
- No (0)
- Units
- 1
- Shape
- Unused
- Error
InvalidOperand
c- Purpose
- Unused protocol operand
- Type
empty- Required
- No (0)
- Units
- 1
- Shape
- Unused
- Error
InvalidOperand
options.sample_period- Purpose
- Output sample period
- Type
- number
- Required
- Yes (1)
- Units
- s
- Minimum
>0- Error
InvalidSampleRate
Recorded Result · lti.tustin
Download the example script (extract the ZIP first).
Example Operands Preview
[
{
"kind": "struct",
"fields": {
"kind": {
"kind": "text",
"value": "tf"
},
"domain": {
"kind": "text",
"value": "continuous"
},
"numerator": {
"kind": "array",
"shape": [
1,
1
],
"real": [
1
]
},
"denominator": {
"kind": "array",
"shape": [
2,
1
],
"real": [
1,
2
]
}
}
},
{
"kind": "empty"
},
{
"kind": "empty"
},
{
"kind": "struct",
"fields": {
"sample_period": {
"kind": "array",
"shape": [
1,
1
],
"real": [
0.01
]
}
}
}
]Result Preview
{
"numerator_real": {
"dtype": "float64",
"shape": [
1,
2
],
"values": [
0.0049504950495049506,
0.0049504950495049506
]
},
"numerator_imaginary": {
"dtype": "float64",
"shape": [
1,
2
],
"values": [
0.0,
0.0
]
},
"denominator_real": {
"dtype": "float64",
"shape": [
1,
2
],
"values": [
1.0,
-0.9801980198019802
]
},
"denominator_imaginary": {
"dtype": "float64",
"shape": [
1,
2
],
"values": [
0.0,
0.0
]
},
"sample_period": 0.01
}response.evaluate
- Access
- Registered in the Python Job
- Arguments
- Typed operands a, b, and c, with an optional typed options struct.
- Shape
- Model, vector, and optional vector or matrix
- Units
- Hz or seconds
- Result
- Numeric and diagnostic fields.
- Purpose
- Evaluates the response at the specified points.
gxtxt_api_call("SIGNAL_API_v1", "response.evaluate", args)Fields and Options
a- Purpose
- LTI model
- Type
- struct
- Required
- Yes (1)
- Units
- 1
- Shape
- TF/ZPK/SS model
- Error
InvalidModel
b- Purpose
- Evaluation axis
- Type
array- Required
- Yes (1)
- Units
- Complex evaluation coordinate
- Shape
- Vector. Time must be increasing and frequency non-negative.
- Error
InvalidGrid
c- Purpose
- Unused protocol operand
- Type
empty- Required
- No (0)
- Units
- 1
- Shape
- Unused
- Error
DimensionMismatch
Recorded Result · response.evaluate:discrete
Download the example script (extract the ZIP first).
Example Operands Preview
[
{
"kind": "struct",
"fields": {
"kind": {
"kind": "text",
"value": "tf"
},
"domain": {
"kind": "text",
"value": "discrete"
},
"sample_period": {
"kind": "array",
"shape": [
1,
1
],
"real": [
0.0078125
]
},
"numerator": {
"kind": "array",
"shape": [
2,
1
],
"real": [
0.5,
0.5
]
},
"denominator": {
"kind": "array",
"shape": [
1,
1
],
"real": [
1
]
}
}
},
{
"kind": "array",
"shape": [
2,
1
],
"real": [
1,
5
]
},
{
"kind": "empty"
}
]Result Preview
{
"value_real": {
"dtype": "float64",
"shape": [
2,
1
],
"values": [
1.0,
3.0
]
},
"value_imaginary": {
"dtype": "float64",
"shape": [
2,
1
],
"values": [
0.0,
0.0
]
}
}response.frequency
- Access
- Registered in the Python Job
- Arguments
- Typed operands a, b, and c, with an optional typed options struct.
- Shape
- Model, vector, and optional vector or matrix
- Units
- Hz or seconds
- Result
- Numeric and diagnostic fields.
- Purpose
- Computes the frequency response.
gxtxt_api_call("SIGNAL_API_v1", "response.frequency", args)Fields and Options
a- Purpose
- LTI model
- Type
- struct
- Required
- Yes (1)
- Units
- 1
- Shape
- TF/ZPK/SS model
- Error
InvalidModel
b- Purpose
- Evaluation axis
- Type
array- Required
- Yes (1)
- Units
- Hz
- Shape
- Vector. Time must be increasing and frequency non-negative.
- Error
InvalidGrid
c- Purpose
- Unused protocol operand
- Type
empty- Required
- No (0)
- Units
- 1
- Shape
- Unused
- Error
DimensionMismatch
Recorded Result · response.frequency:ss
Download the example script (extract the ZIP first).
Example Operands Preview
[
{
"kind": "struct",
"fields": {
"kind": {
"kind": "text",
"value": "ss"
},
"domain": {
"kind": "text",
"value": "discrete"
},
"sample_period": {
"kind": "array",
"shape": [
1,
1
],
"real": [
0.125
]
},
"A": {
"kind": "array",
"shape": [
1,
1
],
"real": [
0.5
]
},
"B": {
"kind": "array",
"shape": [
1,
1
],
"real": [
0.5
]
},
"C": {
"kind": "array",
"shape": [
1,
1
],
"real": [
1
]
},
"D": {
"kind": "array",
"shape": [
1,
1
],
"real": [
0
]
}
}
},
{
"kind": "array",
"shape": [
2,
1
],
"real": [
1.0,
2.0
]
},
{
"kind": "empty"
}
]Result Preview
{
"value_real": {
"dtype": "float64",
"shape": [
2,
1
],
"values": [
0.19074356983054627,
-0.19999999999999998
]
},
"value_imaginary": {
"dtype": "float64",
"shape": [
2,
1
],
"values": [
-0.6512392830509104,
-0.4
]
},
"magnitude": {
"dtype": "float64",
"shape": [
2,
1
],
"values": [
0.6785983445458471,
0.4472135954999579
]
},
"phase_rad": {
"dtype": "float64",
"shape": [
2,
1
],
"values": [
-1.2858722001728342,
-2.0344439357957027
]
},
"frequency_hz": {
"dtype": "float64",
"shape": [
2,
1
],
"values": [
1.0,
2.0
]
},
"group_delay_seconds": {
"dtype": "float64",
"shape": [
2,
1
],
"values": [
0.11913889198325896,
0.11913889198325894
]
}
}response.impulse
- Access
- Registered in the Python Job
- Arguments
- Typed operands a, b, and c, with an optional typed options struct.
- Shape
- Model, vector, and optional vector or matrix
- Units
- Hz or seconds
- Result
- Numeric and diagnostic fields.
- Purpose
- Computes the impulse response.
P011-bis limitation. The time response of the discrete TF and SS models tested ends with lti: set: invalid sampling time. For the tested discrete models, use the frequency response. Test Procedure and Results.
gxtxt_api_call("SIGNAL_API_v1", "response.impulse", args)Fields and Options
a- Purpose
- LTI model
- Type
- struct
- Required
- Yes (1)
- Units
- 1
- Shape
- TF/ZPK/SS model
- Error
InvalidModel
b- Purpose
- Evaluation axis
- Type
array- Required
- Yes (1)
- Units
- s
- Shape
- Vector. Time must be increasing and frequency non-negative.
- Error
InvalidGrid
c- Purpose
- Unused protocol operand
- Type
empty- Required
- No (0)
- Units
- 1
- Shape
- Unused
- Error
DimensionMismatch
Recorded Result · response.impulse
Download the example script (extract the ZIP first).
Example Operands Preview
[
{
"kind": "struct",
"fields": {
"kind": {
"kind": "text",
"value": "tf"
},
"domain": {
"kind": "text",
"value": "continuous"
},
"numerator": {
"kind": "array",
"shape": [
1,
1
],
"real": [
1
]
},
"denominator": {
"kind": "array",
"shape": [
2,
1
],
"real": [
1,
2
]
}
}
},
{
"kind": "array",
"shape": [
128,
1
],
"real": [
0.0,
0.0078125,
0.015625,
0.0234375,
0.03125,
0.0390625,
0.046875,
0.0546875,
0.0625,
0.0703125
]
},
{
"kind": "empty"
}
]Result Preview
{
"value_real": {
"dtype": "float64",
"shape": [
128,
1
],
"values": [
1.0,
0.9844964370054085,
0.9692332344763441,
0.9542066659691885,
0.9394130628134759,
0.924848813216205,
0.9105103613800344,
0.8963942066351507,
0.8824969025845957,
0.8688150562628435,
0.8553453273074229,
0.8420844271433827
]
},
"value_imaginary": {
"dtype": "float64",
"shape": [
128,
1
],
"values": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
]
},
"time": {
"dtype": "float64",
"shape": [
128,
1
],
"values": [
0.0,
0.0078125,
0.015625,
0.0234375,
0.03125,
0.0390625,
0.046875,
0.0546875,
0.0625,
0.0703125,
0.078125,
0.0859375
]
}
}Negative Test or Attempt Result · response.impulse:ss
Download the example script (extract the ZIP first).
Example Operands Preview
[
{
"kind": "struct",
"fields": {
"kind": {
"kind": "text",
"value": "ss"
},
"domain": {
"kind": "text",
"value": "discrete"
},
"sample_period": {
"kind": "array",
"shape": [
1,
1
],
"real": [
0.125
]
},
"A": {
"kind": "array",
"shape": [
1,
1
],
"real": [
0.5
]
},
"B": {
"kind": "array",
"shape": [
1,
1
],
"real": [
0.5
]
},
"C": {
"kind": "array",
"shape": [
1,
1
],
"real": [
1
]
},
"D": {
"kind": "array",
"shape": [
1,
1
],
"real": [
0
]
}
}
},
{
"kind": "array",
"shape": [
8,
1
],
"real": [
0.0,
0.125,
0.25,
0.375,
0.5,
0.625,
0.75,
0.875
]
},
{
"kind": "empty"
}
]Result Preview
"GXTXT:ScientificTransport:Remote: lti: set: invalid sampling time"
response.step
- Access
- Registered in the Python Job
- Arguments
- Typed operands a, b, and c, with an optional typed options struct.
- Shape
- Model, vector, and optional vector or matrix
- Units
- Hz or seconds
- Result
- Numeric and diagnostic fields.
- Purpose
- Computes the step response.
P011-bis limitation. The time response of the discrete TF and SS models tested ends with lti: set: invalid sampling time. For the tested discrete models, use the frequency response. Test Procedure and Results.
gxtxt_api_call("SIGNAL_API_v1", "response.step", args)Fields and Options
a- Purpose
- LTI model
- Type
- struct
- Required
- Yes (1)
- Units
- 1
- Shape
- TF/ZPK/SS model
- Error
InvalidModel
b- Purpose
- Evaluation axis
- Type
array- Required
- Yes (1)
- Units
- s
- Shape
- Vector. Time must be increasing and frequency non-negative.
- Error
InvalidGrid
c- Purpose
- Unused protocol operand
- Type
empty- Required
- No (0)
- Units
- 1
- Shape
- Unused
- Error
DimensionMismatch
Recorded Result · response.step
Download the example script (extract the ZIP first).
Example Operands Preview
[
{
"kind": "struct",
"fields": {
"kind": {
"kind": "text",
"value": "tf"
},
"domain": {
"kind": "text",
"value": "continuous"
},
"numerator": {
"kind": "array",
"shape": [
1,
1
],
"real": [
1
]
},
"denominator": {
"kind": "array",
"shape": [
2,
1
],
"real": [
1,
2
]
}
}
},
{
"kind": "array",
"shape": [
128,
1
],
"real": [
0.0,
0.0078125,
0.015625,
0.0234375,
0.03125,
0.0390625,
0.046875,
0.0546875,
0.0625,
0.0703125
]
},
{
"kind": "empty"
}
]Result Preview
{
"value_real": {
"dtype": "float64",
"shape": [
128,
1
],
"values": [
0.0,
0.007751781497295773,
0.015383382761827913,
0.022896667015405773,
0.030293468593262016,
0.03757559339189747,
0.0447448193099828,
0.05180289668242464,
0.05875154870770213,
0.06559247186857822,
0.07232733634628852,
0.0789577864283086
]
},
"value_imaginary": {
"dtype": "float64",
"shape": [
128,
1
],
"values": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
]
},
"time": {
"dtype": "float64",
"shape": [
128,
1
],
"values": [
0.0,
0.0078125,
0.015625,
0.0234375,
0.03125,
0.0390625,
0.046875,
0.0546875,
0.0625,
0.0703125,
0.078125,
0.0859375
]
}
}Negative Test or Attempt Result · response.step:ss
Download the example script (extract the ZIP first).
Example Operands Preview
[
{
"kind": "struct",
"fields": {
"kind": {
"kind": "text",
"value": "ss"
},
"domain": {
"kind": "text",
"value": "discrete"
},
"sample_period": {
"kind": "array",
"shape": [
1,
1
],
"real": [
0.125
]
},
"A": {
"kind": "array",
"shape": [
1,
1
],
"real": [
0.5
]
},
"B": {
"kind": "array",
"shape": [
1,
1
],
"real": [
0.5
]
},
"C": {
"kind": "array",
"shape": [
1,
1
],
"real": [
1
]
},
"D": {
"kind": "array",
"shape": [
1,
1
],
"real": [
0
]
}
}
},
{
"kind": "array",
"shape": [
8,
1
],
"real": [
0.0,
0.125,
0.25,
0.375,
0.5,
0.625,
0.75,
0.875
]
},
{
"kind": "empty"
}
]Result Preview
"GXTXT:ScientificTransport:Remote: lti: set: invalid sampling time"
response.input
- Access
- Registered in the Python Job
- Arguments
- Typed operands a, b, and c, with an optional typed options struct.
- Shape
- Model, vector, and optional vector or matrix
- Units
- Hz or seconds
- Result
- Numeric and diagnostic fields.
- Purpose
- Computes the response to the supplied input signal.
P011-bis limitation. The time response of the discrete TF and SS models tested ends with lti: set: invalid sampling time. For the tested discrete models, use the frequency response. Test Procedure and Results.
gxtxt_api_call("SIGNAL_API_v1", "response.input", args)Fields and Options
a- Purpose
- LTI model
- Type
- struct
- Required
- Yes (1)
- Units
- 1
- Shape
- TF/ZPK/SS model
- Error
InvalidModel
b- Purpose
- Evaluation axis
- Type
array- Required
- Yes (1)
- Units
- s
- Shape
- Vector. Time must be increasing and frequency non-negative.
- Error
InvalidGrid
c- Purpose
- Input signal
- Type
array- Required
- Yes (1)
- Units
- Signal unit
- Shape
- Matches the time axis or the MIMO input dimensions
- Error
DimensionMismatch
options.initial_state- Purpose
- Initial state
- Type
array- Required
- No (0)
- Units
- 1
- Shape
- Model state vector
- Error
InvalidArguments
Recorded Result · response.input
Download the example script (extract the ZIP first).
Example Operands Preview
[
{
"kind": "struct",
"fields": {
"kind": {
"kind": "text",
"value": "tf"
},
"domain": {
"kind": "text",
"value": "continuous"
},
"numerator": {
"kind": "array",
"shape": [
1,
1
],
"real": [
1
]
},
"denominator": {
"kind": "array",
"shape": [
2,
1
],
"real": [
1,
2
]
}
}
},
{
"kind": "array",
"shape": [
128,
1
],
"real": [
0.0,
0.0078125,
0.015625,
0.0234375,
0.03125,
0.0390625,
0.046875,
0.0546875,
0.0625,
0.0703125
]
},
{
"kind": "array",
"shape": [
128,
1
],
"real": [
0.0,
0.45339411048374456,
0.8071067811865474,
0.9945902106299415,
1.0,
0.853168854392632,
0.6071067811865476,
0.3119727542464351,
9.797174393178826e-17,
-0.31197275424643495
]
}
]Result Preview
{
"value_real": {
"dtype": "float64",
"shape": [
128,
1
],
"values": [
0.0,
0.0017618823375025253,
0.00662370080048983,
0.013506082890145682,
0.02102755883127253,
0.027882754737661396,
0.033107857910601786,
0.03615384110553008,
0.03679935119105157,
0.03501650894627062,
0.030908397512320114,
0.024766854789069908
]
},
"value_imaginary": {
"dtype": "float64",
"shape": [
128,
1
],
"values": [
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0,
0.0
]
},
"time": {
"dtype": "float64",
"shape": [
128,
1
],
"values": [
0.0,
0.0078125,
0.015625,
0.0234375,
0.03125,
0.0390625,
0.046875,
0.0546875,
0.0625,
0.0703125,
0.078125,
0.0859375
]
}
}Negative Test or Attempt Result · response.input:ss
Download the example script (extract the ZIP first).
Example Operands Preview
[
{
"kind": "struct",
"fields": {
"kind": {
"kind": "text",
"value": "ss"
},
"domain": {
"kind": "text",
"value": "discrete"
},
"sample_period": {
"kind": "array",
"shape": [
1,
1
],
"real": [
0.125
]
},
"A": {
"kind": "array",
"shape": [
1,
1
],
"real": [
0.5
]
},
"B": {
"kind": "array",
"shape": [
1,
1
],
"real": [
0.5
]
},
"C": {
"kind": "array",
"shape": [
1,
1
],
"real": [
1
]
},
"D": {
"kind": "array",
"shape": [
1,
1
],
"real": [
0
]
}
}
},
{
"kind": "array",
"shape": [
8,
1
],
"real": [
0.0,
0.125,
0.25,
0.375,
0.5,
0.625,
0.75,
0.875
]
},
{
"kind": "array",
"shape": [
8,
1
],
"real": [
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0,
1.0
]
}
]Result Preview
"GXTXT:ScientificTransport:Remote: lti: set: invalid sampling time"
lti.foh
- Access
- Registered in the Python Job
- Arguments
- Typed operands a, b, and c, with an optional typed options struct.
- Shape
- TF, ZPK, or SS struct
- Units
- Explicit sample period in seconds
- Result
- Numeric and diagnostic fields.
- Purpose
- Discretizes a continuous LTI system with first-order hold.
gxtxt_api_call("SIGNAL_API_v1", "lti.foh", args)Fields and Options
a- Purpose
- LTI model
- Type
- struct
- Required
- Yes (1)
- Units
- 1
- Shape
- kind accepts tf, zpk, or ss. domain accepts continuous or discrete. discrete requires a positive sample_period.
- Error
InvalidModel
b- Purpose
- Unused protocol operand
- Type
empty- Required
- No (0)
- Units
- 1
- Shape
- Unused
- Error
InvalidOperand
c- Purpose
- Unused protocol operand
- Type
empty- Required
- No (0)
- Units
- 1
- Shape
- Unused
- Error
InvalidOperand
options.sample_period- Purpose
- Output sample period
- Type
- number
- Required
- Yes (1)
- Units
- s
- Minimum
>0- Error
InvalidSampleRate
Recorded Result · lti.foh
Download the example script (extract the ZIP first).
Example Operands Preview
[
{
"kind": "struct",
"fields": {
"kind": {
"kind": "text",
"value": "tf"
},
"domain": {
"kind": "text",
"value": "continuous"
},
"numerator": {
"kind": "array",
"shape": [
1,
1
],
"real": [
1
]
},
"denominator": {
"kind": "array",
"shape": [
2,
1
],
"real": [
1,
2
]
}
}
},
{
"kind": "empty"
},
{
"kind": "empty"
},
{
"kind": "struct",
"fields": {
"sample_period": {
"kind": "array",
"shape": [
1,
1
],
"real": [
0.01
]
}
}
}
]Result Preview
{
"numerator_real": {
"dtype": "float64",
"shape": [
1,
2
],
"values": [
0.004966832668882555,
0.004933830677739793
]
},
"numerator_imaginary": {
"dtype": "float64",
"shape": [
1,
2
],
"values": [
0.0,
0.0
]
},
"denominator_real": {
"dtype": "float64",
"shape": [
1,
2
],
"values": [
1.0,
-0.9801986733067554
]
},
"denominator_imaginary": {
"dtype": "float64",
"shape": [
1,
2
],
"values": [
0.0,
0.0
]
},
"sample_period": 0.01
}lti.prewarp
- Access
- Registered in the Python Job
- Arguments
- Typed operands a, b, and c, with an optional typed options struct.
- Shape
- TF, ZPK, or SS struct
- Units
- Explicit sample period in seconds
- Result
- Numeric and diagnostic fields.
- Purpose
- Discretizes with the bilinear transform, prewarped at the specified frequency.
gxtxt_api_call("SIGNAL_API_v1", "lti.prewarp", args)Fields and Options
a- Purpose
- LTI model
- Type
- struct
- Required
- Yes (1)
- Units
- 1
- Shape
- kind accepts tf, zpk, or ss. domain accepts continuous or discrete. discrete requires a positive sample_period.
- Error
InvalidModel
b- Purpose
- Unused protocol operand
- Type
empty- Required
- No (0)
- Units
- 1
- Shape
- Unused
- Error
InvalidOperand
c- Purpose
- Unused protocol operand
- Type
empty- Required
- No (0)
- Units
- 1
- Shape
- Unused
- Error
InvalidOperand
options.sample_period- Purpose
- Output sample period
- Type
- number
- Required
- Yes (1)
- Units
- s
- Minimum
>0- Error
InvalidSampleRate
options.prewarp_hz- Purpose
- Prewarp frequency
- Type
- number
- Required
- Yes (1)
- Units
- Hz
- Minimum
>0- Error
InvalidFrequency
Recorded Result · lti.prewarp
Download the example script (extract the ZIP first).
Example Operands Preview
[
{
"kind": "struct",
"fields": {
"kind": {
"kind": "text",
"value": "tf"
},
"domain": {
"kind": "text",
"value": "continuous"
},
"numerator": {
"kind": "array",
"shape": [
1,
1
],
"real": [
1
]
},
"denominator": {
"kind": "array",
"shape": [
2,
1
],
"real": [
1,
2
]
}
}
},
{
"kind": "empty"
},
{
"kind": "empty"
},
{
"kind": "struct",
"fields": {
"sample_period": {
"kind": "array",
"shape": [
1,
1
],
"real": [
0.01
]
},
"prewarp_hz": {
"kind": "array",
"shape": [
1,
1
],
"real": [
5.0
]
}
}
}
]Result Preview
{
"numerator_real": {
"dtype": "float64",
"shape": [
1,
2
],
"values": [
0.004991206648079027,
0.0049912066480790294
]
},
"numerator_imaginary": {
"dtype": "float64",
"shape": [
1,
2
],
"values": [
0.0,
0.0
]
},
"denominator_real": {
"dtype": "float64",
"shape": [
1,
2
],
"values": [
1.0,
-0.9800351734076838
]
},
"denominator_imaginary": {
"dtype": "float64",
"shape": [
1,
2
],
"values": [
0.0,
0.0
]
},
"sample_period": 0.01
}lti.matched
- Access
- Registered in the Python Job
- Arguments
- Typed operands a, b, and c, with an optional typed options struct.
- Shape
- TF, ZPK, or SS struct
- Units
- Explicit sample period in seconds
- Result
- Numeric and diagnostic fields.
- Purpose
- Discretizes by pole-zero matching.
gxtxt_api_call("SIGNAL_API_v1", "lti.matched", args)Fields and Options
a- Purpose
- LTI model
- Type
- struct
- Required
- Yes (1)
- Units
- 1
- Shape
- kind accepts tf, zpk, or ss. domain accepts continuous or discrete. discrete requires a positive sample_period.
- Error
InvalidModel
b- Purpose
- Unused protocol operand
- Type
empty- Required
- No (0)
- Units
- 1
- Shape
- Unused
- Error
InvalidOperand
c- Purpose
- Unused protocol operand
- Type
empty- Required
- No (0)
- Units
- 1
- Shape
- Unused
- Error
InvalidOperand
options.sample_period- Purpose
- Output sample period
- Type
- number
- Required
- Yes (1)
- Units
- s
- Minimum
>0- Error
InvalidSampleRate
Recorded Result · lti.matched
Download the example script (extract the ZIP first).
Example Operands Preview
[
{
"kind": "struct",
"fields": {
"kind": {
"kind": "text",
"value": "tf"
},
"domain": {
"kind": "text",
"value": "continuous"
},
"numerator": {
"kind": "array",
"shape": [
1,
1
],
"real": [
1
]
},
"denominator": {
"kind": "array",
"shape": [
2,
1
],
"real": [
1,
2
]
}
}
},
{
"kind": "empty"
},
{
"kind": "empty"
},
{
"kind": "struct",
"fields": {
"sample_period": {
"kind": "array",
"shape": [
1,
1
],
"real": [
0.01
]
}
}
}
]Result Preview
{
"numerator_real": {
"dtype": "float64",
"shape": [
1,
2
],
"values": [
0.0,
0.009900663346622374
]
},
"numerator_imaginary": {
"dtype": "float64",
"shape": [
1,
2
],
"values": [
0.0,
0.0
]
},
"denominator_real": {
"dtype": "float64",
"shape": [
1,
2
],
"values": [
1.0,
-0.9801986733067553
]
},
"denominator_imaginary": {
"dtype": "float64",
"shape": [
1,
2
],
"values": [
0.0,
0.0
]
},
"sample_period": 0.01
}