LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview Matlab fread equal function for reading binary files

I want to program Matlab function fread using Labview to be able to read binary files.

 

I want to program this lines:

 

fread(fileID,1,'double')

fread(fileID,1,'uint32')

fread(fileID,1,'int32')

fread(fileID,1,'single')

 

Please help

0 Kudos
Message 1 of 2
(766 Views)

Use Read Binary File from the File I/O palette. Wire to "data type" a constant of the same type you want you read (i.e. a double, a U32 etc).

You can view and change a numeric constant type right clicking on the constant and selecting "Representation".

This is very basic LabVIEW code, so you may run through the tutorials and check some example vi (there is a Simple Binary File project file).

 

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 2 of 2
(756 Views)