National Instruments AutoCode NI MATRIX Reference page 160

National instruments ni matrixx reference manual
Table of Contents

Advertisement

Chapter 5
Generated Code Architecture
void Enter_Local_Varblk_Section(RT_INTEGER index, RT_INTEGER caller_id);
procedure Enter_Local_Varblk_Section(index : RT_INTEGER;
void Leave_Local_Varblk_Section(RT_INTEGER index, RT_INTEGER caller_id);
procedure Leave_Local_Varblk_Section(index : RT_INTEGER;
AutoCode Reference
The formal argument represents the global reference number for which the
variable block is being accessed. The default implementation of those
simply calls the
Disable( )
Leaving Non-Shared (Local) Critical Section
The prototype of the callout for leaving a non-shared global variable block
critical section is:
void Leave_Local_Varblk_Section(RT_INTEGER index);
procedure Leave_Local_Varblk_Section(index :
RT_INTEGER);
The formal argument represents the global reference number for which the
variable block is being accessed. The default implementation of those
simply calls the
Enable( )
The following code uses the
non-shared global variable block generated code with callouts, using the
option.
-vbco
Enter_Local_Varblk_Section(4);
proc2_4_1 = block5[0];
proc2_4_2 = block5[1];
Leave_Local_Varblk_Section(4);
Entering with Extended Procedure Info Option Specified
The prototype of the callout for entering a non-shared global variable block
critical section with the extended procedure info option is:
The formal argument,
which the variable block is being accessed. The second formal argument,
, represents a unique identifier for the caller. The default
caller_id
implementation of those calls the
Leaving with Extended Procedure Info Option Specified
The prototype of the callout for leaving a non-shared global variable block
critical section with the extended procedure info option is:
function.
function.
Enter_Local_Varblk...
caller_id : RT_INTEGER);
, represents the global reference number for
index
Disable
caller_id : RT_INTEGER);
5-52
syntax to call
function.
ni.com

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the AutoCode NI MATRIX and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Autocode ni matrixx

Table of Contents