Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

diary (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: commands

Requires: MathScript RT Module

Syntax

diary

diary on

diary off

diary filename

diary 'filename'

diary('filename')

Description

Writes the current session to a text file. The diary function writes the input from the Command Window or the Script Editor and the output from the Output Window to a text file. LabVIEW does not include graphics in the text file. If you do not specify a filename, LabVIEW creates a file called diary.txt in the LabVIEW Data directory. diary on tells LabVIEW to start writing to the text file. diary off tells LabVIEW to stop writing to the text file. diary switches between the diary on and diary off modes.

Examples

Inputs

Name Description
filename Specifies the name of the file you want to write to. LabVIEW creates the text file in the LabVIEW Data directory. To specify a file path or file extension, use the 'filename' syntax.

Details

The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine No
Supported on RT targets Yes
Suitable for bounded execution times on RT Not characterized

Examples

In the following example, LabVIEW writes to diary.txt in the LabVIEW Data directory. Call the following commands one line at a time in the LabVIEW MathScript Window.

diary on
A = [1:1:15];
C = sum(A)
diary off

In the following example, LabVIEW writes to test.txt in the LabVIEW Data directory. Call the following commands one line at a time in the LabVIEW MathScript Window.

diary test
A = [1:1:15];
C = sum(A)
diary off

Related Topics

fprintf


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit