National Instruments AutoCode NI MATRIX User Manual

Page 163

Advertising
background image

Chapter 5

Generated Code Architecture

© National Instruments Corporation

5-55

AutoCode Reference

The following code uses the

Enter_Shared_Varblk...

syntax for

shared variable block generated code with callouts, using the

-vbco

and

-epi

options.

Enter_Shared_Varblk_Section(4, 1);

proc2_4_1 = isi_varblk[0]->block5[0];

proc2_4_2 = isi_varblk[0]->block5[1];

Leave_Shared_Varblk_Section(4, 1);

Caution

It is not possible to mix code with shared variable blocks generated with the

-epi

option and code with shared variable blocks generation without

-epi

because the

prototypes of the shared variable block callouts are the same.

Advertising