Member of the commands class.
diary
diary on
diary off
diary filename
diary 'filename'
diary('filename')
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.
| 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. |
This function is not supported in the LabVIEW Run-Time Engine. Do not use this function in a stand-alone application or shared library.
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 onIn 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