OriginLab Corporation - Scientific Graphing and Data Analysis Software - 2D graphs, 3D graphs, Contour Plots, Statistical Charts, Data Exploration, Statistics, Curve Fitting, Signal Processing, and Peak Analysis

Inserting Variables Extracted from Imported ASCII Files into Text Labels


Variables extracted from ASCII file header lines can be inserted into a text label (which could be a graph legend) in the following way:

  1. Create a new text label using standard "in-place" text label creation methods.
  2. While in text entry mode, press CTRL + H, or right-click and select Insert Info Variable. This opens the Insert Info Variables dialog box.

The Insert Info Variables dialog box will list variables extracted during ASCII file import. You can choose and insert variables in three ways:

Literal Text

If you do not select either the Insert as Link or the Insert as "Property = Value" check boxes, the value of the variable will be inserted as literal text.

Image:Inserting Variables Extracted from Imported ASCII Files into Text Labels3.png
Insert as link Select this box to insert a string that is dynamically linked to the value of a variable. Any change in a string's value will produce a change in the label value when the file is next imported.

To learn more, see Linking Text Labels to Data and Variables.

Insert as "Property = Value"

Select this box to insert "variable name = value" into the text label .

Image:Inserting Variables Extracted from Imported ASCII Files into Text Labels4.png


Variables can be viewed from the Script window by typing the command:

Page.info.user.=