Using Tokens in Reports

Use tokens with any parameter that accepts a string. Tokens are strings that generate information automatically and often are used in headers and footers of reports. Use tokens to number pages and place a timestamp on a report.

For example, if you are using the Easy Text Report VI, entering the token <page> in one of the footer strings causes a page number to appear in the footer of every page of the report.

The following list describes the tokens in LabVIEW.

Token Description
<tab> For standard reports, LabVIEW indents the text to the next tab location. For HTML reports, LabVIEW interprets this token as <br>.
<page> Current page number. LabVIEW ignores this token for HTML reports.
<pages> Total number of pages. LabVIEW ignores this token for HTML reports.
<pagenofm> Current page number with the total number of pages in the report. LabVIEW ignores this token for HTML reports.

Example: 7 of 30
<shortdate> Current date in the form xx/xx/xx.

Example: 10/5/98
<longdate> Current date in the form Day, Month and Date, Year.

The month, date, and year order defaults to the date settings of your operating system.

Example: Monday, October 05, 1998
<time> Current time in the form Hour:Minute:Second AM/PM.

Defaults to the clock settings of your computer.

Example: 1:58:22 PM