

To use a constant after open a new Origin session, you will need to define the constant in the CONST.CNF file under User File Folder.Declare a new variable of type double: It means that the constant will be saved as "System Variable" and available whenever a new Origin session is conducting. From Origin 2016, constant is auto-saved to orgvar.ogs once declared. Once declared, the value of a constant cannot be changed. Constant: constants ( const) are a third numeric data type in LabTalk.Integer: integers ( int) are stored as double in LabTalk truncation is performed during assignment.Double: double-precision floating-point number this is the default variable type in Origin.LabTalk supports three numeric data types: double, int, and const. Objects like labels, arrows, lines, and other user-created graphic elements Refers to a specific region of Origin object (workbook, worksheet, etc.)Įmulates data with a set of branches and leaves Numeric data type that value cannot be changed once declared 3.4 Making Local Variables and Functions Available in the Session scope, forcing change of.2.3 Listing and Deleting Variables List Variables Delete Variable.2.2 Handling Variable Name Conflicts Variable Name Conflict.2.1 Variable Naming Rules Variable Naming Rule.1 LabTalk Data Types Data Type Variable.grouping all values of a specific type) you can change their order by using the arrow buttons at the end of the row. To improve readability of your variables (e.g. It must comply with the type-requirements as described above. However,Ī name must not be empty or be used by other variables you have already defined in the node

You can use any characters to define your name. You should keep in mind that you may loose some precisionįor big values or values that are very close to zero.Ī truth value that can be either “true” or “false”.Īny other value will be interpreted as “false”. If the number is too big or too small, it may be converted into one of the these special values. Numeric value you can also specify one of the following three (case-sensitive) special values: You can specify an exponent by appending “e” followed by the exponent. If the size of your value exceeds the limits above, you can try to use a DoubleĪ floating point decimal number with possible values from around 4.9♱0⁻³²⁴ to 1.8♱0³⁰⁸ If the size of your value exceeds the limits above, you can try to use a LongĪn integer number with possible values from 2⁶ª-1 to -2⁶ª. The value must be a valid number (consisting only of an optional sign


The node will inform about a string that is empty or does only contain spaces because thisĪn integer number with possible values from 2³¹-1 to -2³¹. This is the default if a new variable is created. The following five basic data types are supported:Ī string of characters. Depending on the type the requirements for the variable value may This is the type of the variable to create. This button can be used to define a new variable. When it is initailly created, even before you configure it. The node will automatically add a variable called “variable_1” Probably lead to unexpected behavior downstream and should thus be avoided. It is possible to define variables with the same names but different typesĪs already defined upstream variables. The node will notify you in the case this happens. Thus upstream variables will get overridden by defined variables with the same name and The variables defined by this node take precedence over upstream ones (on the Variable Inport). This node allows the creation of flow variables of different types and custom values.
