Transfer Function in Simulink
Afficher commentaires plus anciens
I have created a model for muscle stimulus in Simulink which takes a stimulus (S) and inputs it through a transfer function block, 1/(tau*s + 1) and outputs muscle activation (A).
S --> 1/(tau*s+1) --> A
I am trying to implement a model where tau = 0.030s when A is rising and tau = 0.08s when A is falling.
How can I vary tau within the Simulink model of the transfer function with my two parameters?
Réponses (3)
Orion
le 20 Oct 2014
Actually, the simple model I made just takes care of the detect increase. it computes :
if U>U/Z % if current value > precedent value
A = fcn(0.03)
else % all other case : decrease OR S is constant
A = fcn(0.08)
end
So, as you see if S becomes constant, instantly, the function with 0.08 is used.
it depends on what you need to compute, but you may have to implement
if U>U/Z % if current value > precedent value
A = fcn(0.03)
elseif U<U/Z % if current value < precedent value
A = fcn(0.08)
else % all other case : S is constant
A = last_value_of_A;
end
and in simulink, you need 2 switch to do that.
1 commentaire
Samson
le 21 Oct 2014
Orion
le 21 Oct 2014
0 votes
here is a model which computes with 2 swicth. Note : i made a change using S instead of A to detect increase and decrease (I don't think it can really work using the ouput A)

Catégories
En savoir plus sur General Applications dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
