Effacer les filtres
Effacer les filtres

ressistors with small random offset in SIMULINK

1 vue (au cours des 30 derniers jours)
fima v
fima v le 27 Mai 2020
Commenté : Walter Roberson le 8 Juin 2020
Hello , I want to have 10 resistors with a littles offset in resistance by random number arounk 1kohm
i have itried to use matlab simuling VAriable ressistor.
But i dont see how i enter there some random offset in the value.
Thanks.
  11 commentaires
Walter Roberson
Walter Roberson le 28 Mai 2020
I am having difficulty finding resistors in pure simulink. I find resistors in
  • RF Blockset
  • Simscape Electrical
  • Specialized Power Systems
fima v
fima v le 28 Mai 2020
Hello Wolter , i am not sure regarding what exact simulink i am using, ithink i have here RF blockset.
could you please say on this platform how to define random argument in the resistor value?
Thanks.

Connectez-vous pour commenter.

Réponse acceptée

Walter Roberson
Walter Roberson le 29 Mai 2020
Modifié(e) : Walter Roberson le 29 Mai 2020
The attached model is adapted (solver parameters updated) from the File Exchange Contribution
SERIES AND PARALLEL CIRCUITS, version 1.0.0, by Chaitanya Jambotkar
It happens to have 11 resistors from Specialized Power Systems (part of Simscape Electrical)
The resistances can be randomized using
for K = 1 : 11
pn = sprintf('SERIES_PARALLEL_RESISTORS/R_%d', K);
set_param(pn, 'Resistance', sprintf('%.5g', 1000 + randn(1)));
end
Here, SERIES_PARALLEL_RESISTORS is the model name, and each of the resistors happened to be named R_ followed by a number. Resistance is the name of the parameter used in SPS for resistance (some of the other forms of resistor in Simulink use 'R' as the name for the resistance.)
It was saved with R2020a (you did not indicate which version you are using.)
  20 commentaires
fima v
fima v le 5 Juin 2020
Modifié(e) : fima v le 5 Juin 2020
Hello Walter, My comperator needs to have input noise 10nV/sqrt(Hz), bandwidth(100MHZ) ,amplitude(200) , the theshhold of the comperator is 0.6v.
VDD=1V VCC=0V .
so if for example (V_plus-V_minus)*Amplitude>0.6 the output is 1V else 0V.
I have tried to used the simscape bandlimited component to achieve those properties.
but then i couldnt connect with the other components as shown above.
If you could make N such comparators , it would be great.
Thanks you very much.
Walter Roberson
Walter Roberson le 8 Juin 2020
There does not appear to be any one block to implement what you describe. See however https://www.mathworks.com/help/physmod/sps/examples/op-amp-with-noise.html

Connectez-vous pour commenter.

Plus de réponses (1)

Fangjun Jiang
Fangjun Jiang le 27 Mai 2020
Modifié(e) : Fangjun Jiang le 28 Mai 2020
This "Variable Resistor" is not the right one to use. This "Variable Resistor" represents a physical variable resistor in the lab where you can move a handle or turn a knob to adjust the value of the resistor. The "PS" port of this block can be connect to a motor (for example) to move the handle or turn the knob thus change the resistor.
To implement what you want, you just need to set "R=10e3-10+20*rand(10,1)" in workspace and drop 10 regular resistor blocks in your model, set the parameter for the first resistor to be R(1), ... and the last one to be R(10).
  1 commentaire
fima v
fima v le 28 Mai 2020
could you please show a print screen of "R=10e3-10+20*rand(10,1) in workspace"?
and drop 10 resistors.i am having trouble visualise it.
Thabks.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Detect and Diagnose Faults dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by