Skip to content

Commit

Permalink
mention further reading
Browse files Browse the repository at this point in the history
  • Loading branch information
baggepinnen committed Jul 3, 2024
1 parent a1ed3be commit 13c3f36
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion docs/src/SampledData.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,11 @@ In this component, we use two structural parameters, one for the sample time and

In order to make components maximally generic, it is often advisable to avoid including operators like `Sample` and `Hold` at the inputs and outputs of a component, and instead let the user manually insert these operators where required. Larger components that model complete sampled-data systems may of course contain such operators internally.

## Linearization of sampled-data systems
Linearization of discrete-time and sampled-data systems using the tools described at [Linearization of ModelingToolkit models](https://docs.sciml.ai/ModelingToolkit/dev/basics/Linearization/) is __not__ supported at the moment. 😦

Linearization through [frequency-response analysis (FRA) is provided in JuliaSimControl](https://help.juliahub.com/juliasimcontrol/dev/linear_analysis/#Frequency-response-analysis). FRA amounts to simulating a system with wide-spectrum inputs and computing the linear small-signal transfer function using techniques from the field of system-identification.


## A complete example

Expand Down Expand Up @@ -238,4 +243,8 @@ catch err
return err
end
```
The error message indicates that the -1 shift for `f.x` is not provided. The number `0.5` appearing in the error message is the period of the clock associated the variable for which an initial condition is missing `f.x`.
The error message indicates that the -1 shift for `f.x` is not provided. The number `0.5` appearing in the error message is the period of the clock associated the variable for which an initial condition is missing `f.x`.


## Further reading
- [Analysis of linear sampled-data systems using ControlSystems.jl](https://juliacontrol.github.io/ControlSystems.jl/stable/examples/zoh/)

0 comments on commit 13c3f36

Please sign in to comment.