Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Open Data Storage (Windows)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Opens a binary measurement file (.tdm) for reading or writing. You also can use this VI to create a new file or replace an existing file. Use the Close Data Storage VI to close the reference to the file.

Dialog Box Options
Block Diagram Inputs
Block Diagram Outputs

Dialog Box Options

ParameterDescription
Data storage formatSpecifies the format of the file you want to access. Contains the following option:
  • TDM (Binary Measurement File)—Opens or replaces an existing .tdm file or creates a new .tdm file.
Data storage parameters (if not wired)Contains the following option:
  • File location—Specifies the location of the file you want to open.
Overwrite options (if not wired)Specifies the operation to perform. Error 43 occurs if you cancel the dialog box. Contains the following options:
  • open—Opens an existing file. Error 7 occurs if the file cannot be found.
  • open or create—Opens an existing file or creates a new file if one does not exist.
  • create or replace—Creates a new file or replaces a file if it exists and you give permission. This VI replaces a file by opening the file and setting its end of file to 0.
  • create—Creates a new file. Error 8 occurs if the file already exists.
  • open (read only)—Opens an existing file for read only. Error 7 occurs if the file cannot be found.

Block Diagram Inputs

ParameterDescription
file pathSpecifies the full path of the file you want to open.
function (open:0)Specifies the operation to perform.
error inDescribes 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.

Block Diagram Outputs

ParameterDescription
FileGenerates a refnum to the file that the Open Data Storage VI opened.
error outContains 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.

Resources


 

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