National-instruments AutoCode NI MATRIX User Manual Page 234

  • Download
  • Add to my manuals
  • Print
  • Page
    / 250
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 233
Chapter 9 Global Scope Signals and Parameterless Procedures
© National Instruments Corporation 9-7 AutoCode Reference
Condition Block Code Generation
The Condition Block supports the use of parameterless procedures. In the
nodefault and sequential modes, the Condition Block will not buffer the
global outputs of the procedure into the
R_P (real parameter) array. For
information about Condition Blocks, refer to the Condition Block section
of Chapter 5, Generated Code Architecture.
Reusing a Parameterless Procedure
A parameterless procedure is a procedure that uses a set of global variables
as its interface rather then a formal argument list. Therefore, you can
reuse—that is, use the procedure in more than one place—but you must
make sure that source blocks for the Global Scope inputs use the correct
global variable. When you reuse a parameterless procedure, there now are
multiple writers to the same global variable and, therefore, the sequencing
of the blocks can unexpectedly affect the value of the global variable.
Note If you intend to reuse a parameterless procedure, make sure that the sequencing of
the blocks that write into the global variables is correct. Also, keep in mind the same
problem with using the global outputs of the procedure as well.
Generating Code for Parameterless Procedures
The only difference between the code of a parameterless procedure and one
that does not use this feature is that not all of the inputs and outputs of the
procedure will be formal arguments of the procedure. Global variables are
generated when referring to a procedure’s inputs and/or outputs. As global
variables used for a parameterless procedure require visibility over all
subsystems and procedures, these variables are associated with the whole
model. The set of TPL tokens to access this information is therefore within
the SYSTEM scope. Refer to the Template Programming Language User
Guide for more information about these tokens.
The default template uses the following tokens to declare the variables.
sgtype_nmembers_i sgtype_b
sgtype_members_ls sgtype_members_size_li
sgtype_members_typ_pfix_ls sgtype_members_typ_li
sgtype_members_memaddr_ls sgtype_blk_channel_list_li
sgtype_blk_list_li sgtype_blk_list_idx_li
Page view 233
1 2 ... 229 230 231 232 233 234 235 236 237 238 239 ... 249 250

Comments to this Manuals

No comments

Whirlpool WSG5588 A+B manuali

Manuali dei proprietari e guide per l'utente per Frigoriferi Whirlpool WSG5588 A+B.
We fornisce 1 manuali pdf Whirlpool WSG5588 A+B per scaricare gratuitamente in base al tipo di documento: Manuale Utente


Whirlpool WSG5588 A+B Manuale Utente (1 pagine)


Marchio: Whirlpool | Categoria: Refrigerators | Dimensione: 0.59 MB |

 

Indice





Più prodotti e manuali per Frigoriferi Whirlpool

Modelli Tipo di Documento
WBA43282 NF IX Manuale Utente   Whirlpool WBA43282 NF IX Manuel d'utilisation, 1 pagine
WTE3113 W Manuale Utente   Whirlpool WTE3113 W Manuel d'utilisation, 1 pagine
WV1510 W Manuale Utente   Whirlpool WV1510 W Manuel d'utilisation, 1 pagine
WHE22333 Manuale Utente   Whirlpool WHE22333 Manuel d'utilisation, 4 pagine
WHE22333 Manuale Utente   Whirlpool WHE22333 Manuel d'utilisation, 1 pagine
WBA34272 DFC IX Manuale Utente   Whirlpool WBA34272 DFC IX Manuel d'utilisation, 1 pagine
WME36222 W Manuale Utente   Whirlpool WME36222 W Manuel d'utilisation, 8 pagine
WME1410 A+W Manuale Utente   Whirlpool WME1410 A+W Manuel d'utilisation, 1 pagine
WBA43983 NFC IX Manuale Utente   Whirlpool WBA43983 NFC IX Manuel d'utilisation, 1 pagine
WVE1640 W Manuale Utente   Whirlpool WVE1640 W Manuel d'utilisation, 1 pagine
WTE2511 A+X Manuale Utente   Whirlpool WTE2511 A+X Manuel d'utilisation, 11 pagine
WW1640 X Manuale Utente   Whirlpool WW1640 X Manuel d'utilisation, 1 pagine
WVE1660 NF W Manuale Utente   Whirlpool WVE1660 NF W Manuel d'utilisation, 1 pagine
WME36222 W Manuale Utente   Whirlpool WME36222 W Manuel d'utilisation, 1 pagine
WME36583 X Manuale Utente   Whirlpool WME36583 X Manuel d'utilisation, 1 pagine
WBA43282 NF IX Manuale Utente   Whirlpool WBA43282 NF IX Manuel d'utilisation, 21 pagine
WVN1863 NF N Manuale Utente   Whirlpool WVN1863 NF N Manuel d'utilisation, 1 pagine
WHE22333 Manuale Utente   Whirlpool WHE22333 Manuel d'utilisation, 5 pagine
WSG5588 A+ M Manuale Utente   Whirlpool WSG5588 A+ M Manuel d'utilisation, 1 pagine
WTV4125 NF W Manuale Utente   Whirlpool WTV4125 NF W Manuel d'utilisation, 1 pagine