Effacer les filtres
Effacer les filtres

How do I select different value of resistances depending on the control input.

1 vue (au cours des 30 derniers jours)
Ashwini
Ashwini le 31 Mai 2013
I wish to simulate a system with changing resistive loads. I want to select different value of resistance depending on the value of my control signal. How can I achieve this?
  1 commentaire
Iain
Iain le 31 Mai 2013
We need more details to be more helpful. Are you working in matlab, or simulink. What's your control signal? What kind of change to the load do you expect from your control signal?

Connectez-vous pour commenter.

Réponses (2)

David Sanchez
David Sanchez le 31 Mai 2013
An option is to create your own function with the switch-case statement
switch control
case 1
resistance = 100;
case 2
resistance = 1000;
case 3
resistance = 10000;
end

Muruganandham Subramanian
Muruganandham Subramanian le 31 Mai 2013
Modifié(e) : Muruganandham Subramanian le 31 Mai 2013
Use MultiportSwitch
  1 commentaire
Ashwini
Ashwini le 4 Juin 2013
I am now using a 'variable resistor' block from simscape and that has solved my problem.
I appreciate help from all of you. Thanks

Connectez-vous pour commenter.

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by