Shared Memory Fixed-Point Callouts In Autocode/C - National Instruments AutoCode NI MATRIX Reference

National instruments ni matrixx reference manual
Table of Contents

Advertisement

Chapter 5
Generated Code Architecture
AutoCode Reference
stands for signed long.
SLONG
stands for unsigned long.
ULONG
The naming convention of the callouts uses the terms listed above and
associates from right to left. The following is an example of a callout.
UPDATE_MBUFSBYTE_WITH_LOCSBYTE(x, y)
The value of the local variable
shared memory variable
assume that the data type of

Shared Memory Fixed-Point Callouts in AutoCode/C

AutoCode/C generates the callout when needed. You must provide the
implementation of the callouts. You can choose to use macros or procedure
calls and whether or not the implementation is generated from within the
template. You can update shared memory as follows.
From Local Memory
UPDATE_MBUFSBYTE_WITH_LOCSBYTE(x, y)
UPDATE_MBUFUBYTE_WITH_LOCUBYTE(x, y)
UPDATE_MBUFSSHORT_WITH_LOCSSHORT(x, y)
UPDATE_MBUFUSHORT_WITH_LOCUSHORT(x, y)
UPDATE_MBUFSLONG_WITH_LOCSLONG(x, y)
UPDATE_MBUFULONG_WITH_LOCULONG(x, y)
From Shared Memory
UPDATE_MBUFSBYTE_WITH_MBUFSBYTE(x, y)
UPDATE_MBUFUBYTE_WITH_MBUFUBYTE(x, y)
UPDATE_MBUFSSHORT_WITH_MBUFSSHORT(x, y)
UPDATE_MBUFUSHORT_WITH_MBUFUSHORT(x, y)
UPDATE_MBUFSLONG_WITH_MBUFSLONG(x, y)
UPDATE_MBUFULONG_WITH_MBUFULONG(x, y)
From Shared Memory (mixed data types)
UPDATE_MBUFSBYTE_WITH_MBUFF(x, y, convert_macro_name )
UPDATE_MBUFF_WITH_MBUFSBYTE(x, y, convert_macro_name )
UPDATE_MBUFUBYTE_WITH_MBUFF(x, y, convert_macro_name )
UPDATE_MBUFF_WITH_MBUFUBYTE(x, y, convert_macro_name )
UPDATE_MBUFSSHORT_WITH_MBUFF(x, y, convert_macro_name )
UPDATE_MBUFF_WITH_MBUFSSHORT(x, y, convert_macro_name )
UPDATE_MBUFUSHORT_WITH_MBUFF(x, y, convert_macro_name )
of type
x
signed byte
of type
y
signed byte
and
are identical except when noted.
x
y
5-46
is assigned to a
. All of these callouts
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?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Autocode ni matrixx

Table of Contents