Writing 1D or 2D Data to Binary Files

Complete the following steps to write 1D or 2D data to a binary file.

  1. Select the Write To SGL File VI on the Functions»File I/O»Binary File VIs palette and place it on the block diagram.
  2. Right-click the 1D array input and select Create»Control from the shortcut menu. An array control appears on the front panel.
  3. Enter a number into the array control on the front panel.
  4. Run the VI. The Choose file to write dialog box appears.
  5. Name the file, specify a location for the file, and click Save. LabVIEW saves the value in the specified file location.
  6. After you write the 1D or 2D data to the file, read the file.