How to convert Fixed-in-Minor-Step to Continuous in Simulink?

13 Ansichten (letzte 30 Tage)
Jonathan
Jonathan am 5 Aug. 2014
Beantwortet: Archit Dhanani am 19 Jul. 2019
Hi
How do I convert a Fixed-in-Minor-Step sample time signal to a Continuous sample time signal without changing solvers?
  1 Kommentar
dzid_
dzid_ am 11 Jun. 2019
Yeah, how? What is the trick?
I have multiplied the FiM signal by a Continuous signal (equal=1) and it made it it continuous but that's dirty solution

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Archit Dhanani
Archit Dhanani am 19 Jul. 2019
There is a shipped SFunction 'sfun_d2c' which you could try using. It provides algorithms that essentially performs a linear extrapolation on the sampled data.
You can find an example using this S-Function at the following location in the MATLAB installation:
matlab\toolbox\simulink\simdemos\simfeatures\sfcndemo_d2c
You can use the command:
>>cd(matlabroot);
>>cd toolbox\simulink\simdemos\simfeatures
>>sfundemo_d2c
See if this helps avoiding the issue.

Kategorien

Mehr zu Simulink finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by