Python-Control Export¶
Export Lynx diagrams to python-control for analysis, simulation, and controller design.
Export Methods¶
Lynx provides two primary export methods:
# Transfer function representation
sys_tf = diagram.get_tf('from_signal', 'to_signal')
# State-space representation
sys_ss = diagram.get_ss('from_signal', 'to_signal')
Both methods:
Take two signal references (from and to)
Return python-control objects (
TransferFunctionorStateSpace)Perform validation before export (raises
ValidationErrorif invalid)
For more information see Subsystem Export.
See Also¶
Diagram Class - Building diagrams
Block Types - IOMarker block details
Validation - Error handling and validation
Cruise Control Example - Workflow including export