Re 2-1 – National Instruments AutoCode NI MATRIX User Manual

Page 29

Advertising
background image

Chapter 2

C Language Reference

AutoCode Reference

2-12

ni.com

Figure 2-1. Example UserCode Function File (sa_user.c)

The

$ucb

directive is recognized and interpreted by the automatic linking

facility of the simulator in SystemBuild to distinguish between UCBs
written for simulation purposes using SystemBuild only and UCBs written
for linking with AutoCode applications. The exact name of the UCB
function must be specified in the

$ucb

directive if this UCB function is

used for simulation using SystemBuild.

The computations performed by UCBs can update both block states and
outputs. Execution of each section is controlled by flags set by the
simulator in the INFO structure. Refer to the

Implementing Handwritten

UCBs

section.

1

2

Advertising