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