Analyzer And Autocode Warnings; Changing Scope Class; Command Options - National Instruments AutoCode NI MATRIX Reference

National instruments ni matrixx reference manual
Table of Contents

Advertisement

Chapter 9
Global Scope Signals and Parameterless Procedures

Command Options

AutoCode Reference

Analyzer and AutoCode Warnings

The Analyzer reports questionable connectivities or situations regarding
usage of the Global Scope signals. Also, AutoCode might report additional
warnings during code generation. Evaluate these warnings and verify that
the generated code is what you expect. You might need to change your
model to fix the situation.

Changing Scope Class

To properly match Global Scope signals for parameterless procedures,
you might need to use an explicit copy to resolve the naming. This is
accomplished by using a unit-gain block—that is, a gain block with a gain
factor of 1. Using the gain block in this way will let you match any
connectivity that you require. You might want to use a custom icon for this
usage of the gain block to provide a better graphical representation of the
copy instead of a gain.
The following command options force the scope of block outputs:
—This option forces all Output Scopes to be Local for all
-nogscope
block outputs. Connection to a Input Scope that is Global results in a
copy into the global variable before the procedure call.
—This option forces all Output Scopes to be Global for
-allgscope
all block outputs while Input Scopes are forced to Local, thus disabling
parameterless procedures.
9-10
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