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

Reading from Binary Files

NI LabVIEW 8.6 Help
June 2008

NI Part Number:
371361E-01

»View Product Info

Complete the following steps to read a double-precision, floating-point number from a binary file.

  1. Write to a binary file to create the .bin file you need to complete the following steps.
  2. Place the Read from Binary File function on the block diagram.

     

  3. Wire the data type of the logged data to the Read from Binary File function.
    1. Place a numeric constant on the block diagram.

       
    2. Wire the numeric constant to the data type input of the Read from Binary File function.
    3. Enter 0.0 into the numeric constant to inform LabVIEW that the data type you want to read is a double-precision, floating-point number.
    You also can wire an array to the Read from Binary File function.
  4. Right-click the data output of the Read from Binary File function and select Create»Indicator from the shortcut menu.
  5. Run the VI. In the dialog box that appears, select a binary file with a single floating-point value.

Refer to the Read Binary File VI in the labview\examples\file\smplfile.llb for an example of how to open and read an existing file stored as a double-precision array in binary form.

 


Resources


 

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