|Download Help (Windows Only)|
Owning Class: commands
Requires: MathScript RT Module
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.
|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.|
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|
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
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