MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Guide de l'utilisateur Page 74

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 386
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 73
2 Getting Started with the Real-Time Workshop
2-24
Then look at the workspace variables:
who
Your variables are:
rt_Pilot_G_force rt_tout
rt_Angle_of_attack rt_xout
rt_Stick_input rt_yout
The variables rt_tout, rt_xout,andrt_yout were logged because the
appropriate time, states, and outputs buttons were clicked on the Workspace
I/O page. The variables
rt_Pilot_G_force, rt_Angle_of_attack,and
rt_Stick_input were saved using the Properties page of the Scope blocks in
the
f14 model. If you are unfamiliar with how to save variables using Scope
blocks, refer to the Simulink documentation. The variables are named
according to the Simulink block that produced them, with spaces changed to
underscores and an
rt_ prefix added to the variable names to identify them as
real-time data.
You can now use MATLAB to plot the three workspace variables as a function
of time:
plot(rt_tout,rt_Stick_input(:,2))
figure
plot(rt_tout,rt_Pilot_G_force(:,2))
figure
plot(rt_tout,rt_Angle_of_attack(:,2))
Vue de la page 73
1 2 ... 69 70 71 72 73 74 75 76 77 78 79 ... 385 386

Commentaires sur ces manuels

Pas de commentaire