Global strings and variables, Global strings and variables -5 – Measurement Computing DASYLab User Manual User Manual
Page 53

DASYLab
© National Instruments Ireland Resources Limited
|
5-5
Global Strings and Variables
DASYLab provides 999 variables and strings in order to read, to change, and
to transfer individual values and text stings during a measurement. For
example, you can read the number of processed values in the Statistical
Values module, you can specify the number of classes in the Histogram
Classification module, or you can specify the file and path and change them
during a measurement in the Write Data module.
You can use a variable or a string for most module settings for which you
usually enter a value or a text. Right-click the input field and select Global
Variable or Global String. DASYLab opens the overview where you select
a variable or a string. When you select the first free variable, DASYLab
specifies the identifier
${VAR_1}
. When you select the first free string,
DASYLab specifies the identifier
${STR_1}
. In addition to the free
variables and strings you can use system variables such as the measurement
time
${ELAPSED_TIME}
, and system strings such as the current date
${DATE}
.
DASYLab offers a selection of variable numbers for module settings that
write a value into a variable. Select an index number for the variables to be
used.
Select Options»Global Variables and Strings»Global Variable/String
Overview for an overview of variables and strings. Folders with free and
used variables or strings are listed on the left side of the tree display. If you
click a variable, the table on the right lists the definition of this variable. If
you open the tree on the left further, you find the folder with the accessing
modules and the read and write data channels. If more than one data channel
writes into the same variable, a red folder symbol warns of write conflicts.
If you want to assign a value manually to a variable during a measurement,
open Options»Global Variables and Strings»Define Global Variables. To
assign a text to a string, open Options»Global Variables and Strings»
Define Global Strings. In these dialog boxes you also can edit the default
configuration of variables and strings before and after a measurement. For
example, you can assign names to variables and strings, which DASYLab
displays instead of the system names. You can select several variables and
strings to assign the same value to these variables and strings.
DASYLab saves the definitions of the variables and strings together with the
worksheet. For other worksheets to use these configurations, select Options»