National Instruments AutoCode NI MATRIX Reference page 162

National instruments ni matrixx reference manual
Table of Contents

Advertisement

Chapter 5
Generated Code Architecture
void Enter_Shared_Varblk_Section(RT_INTEGER index, RT_INTEGER caller_id);
procedure Enter_Shared_Varblk_Section(index : RT_INTEGER;
Note
A default implementation is not provided for these callouts.
void Leave_Shared_Varblk_Section(RT_INTEGER index, RT_INTEGER caller_id);
procedure Leave_Shared_Varblk_Section(index : RT_INTEGER;
A default implementation is not provided for these callouts.
Note
AutoCode Reference
The first formal argument represents which processor the access is taking
place on. Processor numbers are 1-based. The second formal argument
represents the global reference number for which the variable block is
being accessed.
The following code uses the
shared variable block generated code with callouts, using the
Enter_Shared_Varblk_Section(1, 4);
proc2_4_1 = block5[0];
proc2_4_2 = block5[1];
Leave_Shared_Varblk_Section(1, 4);
Entering with Extended Procedure Info Option Specified
The prototype of the callout for entering a shared 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.
caller_id
Leaving with Extended Procedure Info Option Specified
The prototype of the callout for leaving a shared variable block critical
section with the extended procedure info option is:
The first formal argument represents the global reference number for which
the variable block is being accessed. The second formal argument,
, represents a unique identifier for the caller.
caller_id
Enter_Shared_Varblk...
caller_id : RT_INTEGER);
, represents the global reference number for
index
caller_id : RT_INTEGER);
5-54
syntax to call
option.
-vbco
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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Autocode ni matrixx

Table of Contents