Opens an existing datalog file, creates a new datalog file, or replaces an existing datalog file, programmatically or interactively using a file dialog box. This function does not work for files inside an LLB.
You can optionally specify a dialog prompt or default file name. Use this function with the intermediate Write Datalog or Read Datalog functions. Use the Close File function to close the reference to the file.

![]() |
record type can be any data type. Wire a cluster matching the record data type and cluster order to this input when creating datalog files. | ||||||||||||
![]() |
prompt is the message that appears above the list of files and directories or folder in the file dialog box. | ||||||||||||
![]() |
datalog path (use dialog) is the absolute path to the file. If you do not wire datalog path (use dialog), the function displays a dialog box from which you can select a file. If you specify an empty or relative path, this function returns an error. | ||||||||||||
![]() |
operation is the operation to perform. Error 43 occurs if you cancel the dialog box.
|
||||||||||||
![]() |
access specifies how you plan to access the file.
The default is read/write.
|
||||||||||||
![]() |
error in describes error conditions that occur before this VI or function runs.
The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurred before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
| ||||||||||||
![]() |
refnum out is the reference number of the open file. The value is Not A Refnum if the file cannot be opened. | ||||||||||||
![]() |
cancelled is TRUE if you cancel the file dialog box or if you do not select the replacement in an advisory dialog box. | ||||||||||||
![]() |
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces.
Right-click the error out front panel indicator and select Explain Error from the shortcut menu for more information about the error.
|