Chapter 9 Global Scope Signals and Parameterless Procedures© National Instruments Corporation 9-7 AutoCode ReferenceCondition Block Code GenerationThe Condition Block supports the use of parameterless procedures. In thenodefault and sequential modes, the Condition Block will not buffer theglobal outputs of the procedure into the R_P (real parameter) array. Forinformation about Condition Blocks, refer to the Condition Block sectionof Chapter 5, Generated Code Architecture.Reusing a Parameterless ProcedureA parameterless procedure is a procedure that uses a set of global variablesas its interface rather then a formal argument list. Therefore, you canreuse—that is, use the procedure in more than one place—but you mustmake sure that source blocks for the Global Scope inputs use the correctglobal variable. When you reuse a parameterless procedure, there now aremultiple writers to the same global variable and, therefore, the sequencingof 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 ofthe blocks that write into the global variables is correct. Also, keep in mind the sameproblem with using the global outputs of the procedure as well.Generating Code for Parameterless ProceduresThe only difference between the code of a parameterless procedure and onethat does not use this feature is that not all of the inputs and outputs of theprocedure will be formal arguments of the procedure. Global variables aregenerated when referring to a procedure’s inputs and/or outputs. As globalvariables used for a parameterless procedure require visibility over allsubsystems and procedures, these variables are associated with the wholemodel. The set of TPL tokens to access this information is therefore withinthe SYSTEM scope. Refer to the Template Programming Language UserGuide for more information about these tokens.The default template uses the following tokens to declare the variables.sgtype_nmembers_i sgtype_bsgtype_members_ls sgtype_members_size_lisgtype_members_typ_pfix_ls sgtype_members_typ_lisgtype_members_memaddr_ls sgtype_blk_channel_list_lisgtype_blk_list_li sgtype_blk_list_idx_li