MATLAB XPC TARGET 4 - API GUIDE Guide de l'utilisateur Page 84

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 372
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 83
3 Signals and Parameters
3-48
Parameters =
3 Change the gain. For example, to change the Gain1 block, type either
tg.setparam(5,800) or setparam(tg,5,800)
As soon as you change parameters, the changed parameters in the target
object are downloaded to the target application. The target PC displays the
following message:
ans =
parIndexVec: 5
OldValues: 100
NewValues: 800
If there is a scope, the plot frame then updates the signals after running the
simulation with the new parameters.
INDEX VALUE TYPE SIZE PARAMETER NAME BLOCK NAME
0 0 DOUBLE Scalar Initial Condition Integrator1
1 4 DOUBLE Scalar Amplitude Signal
Generator
2 20 DOUBLE Scalar Frequency Signal
Generator
3 1000000 DOUBLE Scalar Gain Gain
4 0 DOUBLE Scalar Initial Condition Integrator
5 400 DOUBLE Scalar Gain Gain1
6 1000000 DOUBLE Scalar Gain Gain2
Vue de la page 83
1 2 ... 79 80 81 82 83 84 85 86 87 88 89 ... 371 372

Commentaires sur ces manuels

Pas de commentaire