beautypg.com

Global variables – BNC 725 User Manual

Page 23

background image

23

Global Variables

“Local Variables” are those that are used directly in logic assignments, such as “inA” or “out1.”
Logical assignments that are used repeatedly in your experiment can be stored as “global
variables.” With global variables, complex logic is easier to read and debug.

Several channels in your experiment may need to be triggered by the same event. For example,
Channels F, G and H must trigger when:

(in1 or in2) and (outC or outD).

Rather than typing that logic each time, you may define it as a variable:

event1 = (in1 or in2) and (outC or outD);

Now you can use “event1” in the logic for Channels F, G and H:

inF = event1;

To view the global variables, click the Globals button on the Logic tab. The Global Symbols
dialog box screen will open: