Effacer les filtres
Effacer les filtres

Through and across variables in Simscape Custom Block

3 vues (au cours des 30 derniers jours)
Remo
Remo le 23 Juin 2014
Réponse apportée : Abe le 30 Sep 2014
I am trying to create a custom gear box block with the Simscape language. The documentation says, that in future releases the syntx für declaring component through and across variables will be changed. So after that new syntax somthing like through(t, IN.t, OUT.t) will be replaced through the branches section where you define t: IN.t -> OUT.t
What I do not understand is how I can use this branch to influence my output variable, in case of the gear my output-torque. If I want to define any gear ratio i=OUT.t/IN.t need access to the input- and output-torque seperatly (this definition above does not work, because of unknwon variable t!?)

Réponses (1)

Abe
Abe le 30 Sep 2014
I'm not sure that the branch does influence the output variable. Currently, I don't have access to Simscape but I think you need a seperate equation for the across variable.
Did you try taking a look at the source code for the gearbox in the foundation library? If I recall, source code is available for this block.

Catégories

En savoir plus sur Creating Custom Components and Libraries dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by