MATLAB XPC TARGET RELEASE NOTES Guide de l'utilisateur Page 389

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 531
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 388
getsignalid
Purpose Signal index or signal property from signal list
Syntax MATLAB command line
getsignalid(target_object, 'signal_name')
tg.getsignalid('signal_name')
Arguments
target_object
Name of an existing target object.
signal_name
Enter the name of a signal from your Simulink
model. F or b locks with a single signal, the
signal_name is equal to the block_name.For
blocks with multiple signals, the xPC Target
software appends S1, S2 ... to the
block_name.
Description getsignalid returns the index or n ame of a signal from the signal list,
based on the path to the signal name. The block names must be entered
in full and are case sensitive. Note, enter for
block_name the mangled
name that Real-Time Workshop uses for code generation.
Examples Get the signal index for the single signal from the Simulink block Gain1.
getsignalid(tg, 'Gain1') or tg.getsignalid('Gain1')
ans = 6
See Also xPCTargettargetobjectmethodgetpara mid.
xPC Target demo scripts listed in “xPC Target Demos” on page 6-9.
Troubleshooting chapter question “Why Does the getparamid Function
Return Nothing?” on page 15-33.
18-65
Vue de la page 388
1 2 ... 384 385 386 387 388 389 390 391 392 393 394 ... 530 531

Commentaires sur ces manuels

Pas de commentaire