MATLAB XPC TARGET 4 - DEVICE DRIVERS Guide de l'utilisateur Page 83

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 111
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 82
Generating Custom Driver Templates
function argument that contains the size into the start, output and/or
terminate functions along with the port/parameter variable.
Start Select the check box if you want the parameter value to be
passed into the S-function
mdlStart callback method.
Output Se lect the check box if you want the parameter value to be
passed into the S-function
mdlOutputs callback method.
Terminate Select the check box if you want the parameter value to
be passed into the S-function
mdlTerminate callback method.
10 If you have work variables to be shared between the start, output, and
terminate routines for the block, click the Work Variables tab.
The Work Variables tab is displayed.
11 Click the Add button. Enter your work variables information in the
following fields. Repeat as necessary for your defined parameters.
Variable Enter the name of the work variable. For example,
speed.
Type From the list, s elect the data type for the work variable.
Size Enter the maximum size of the work variable.
Start Select the check box if you want the work variable value to be
passed into the S-function
mdlStart callback method.
Output Select the check box if you want the work variable value to be
passed into the S-function
mdlOutputs callback method.
Terminate Select the check box if you want the work variable value
to be passed into the S-function
mdlTerminate callback method.
Saving the Configuration
The xPC Target Driver Authoring T ool allows you to save your configuration
session as a MAT-file.
1 In the xPC Target Driver Authoring Tool, click the Main tab.
2 Click Save settings.
The tool saves the
testdriver.mat file in the current working directory.
7-7
Vue de la page 82
1 2 ... 78 79 80 81 82 83 84 85 86 87 88 ... 110 111

Commentaires sur ces manuels

Pas de commentaire