LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read from binary file

 

 Hi,

 

I am currently stuck. I need a  working code to read from a binary file. I have acquired data from an Eclipse Signal averager in the .FFT format. I actually new to LabVIEW and I need to open this file as soon as possible. I have been searching the 'example code' section all day. Please help me.

 

Thank you...

 

And I am using LabVIEW 8.6.  I found a few examples in LabVIEW 5.0.1 which would not open on LabVIEW 8.6.

 

Could you also recommend GOOD books for LabVIEW beginners. Thank you very much....xx

 

0 Kudos
Message 1 of 7
(3,194 Views)

Hi jayess,

 

Did you check the NI Example Finder?

 

You can do this by clicking on Help and selecting Find Examples. Click on the Search tab and enter binary.

On my 8.6 version, this returned 22 files including Write Binary File.vi and Read Binary File.vi.

 

Was the file written from a LabVIEW program? If not, you may need to know how it was formatted.

 

steve

----------------------------------------------------------------------------------------------------------------
Founding (and only) member of AUITA - the Anti UI Thread Association.
----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 2 of 7
(3,187 Views)

Thanks steve. I checked the NI example finder but it only returned 7 hits and I seem not to be able to open the file still.

 

The binary file I currently have is in the .FFT format ( fast fourier transform).  Are there any other recommendations you

 

have.

 

Thank God....xx

0 Kudos
Message 3 of 7
(3,172 Views)
It would seem that this file format is something that the vendor has designed and you are not all likely to be able tor read it with any of the LabVIEW examples. You need to find out from them how the file is structured.
0 Kudos
Message 4 of 7
(3,167 Views)

Hmm ...

 

I'm not sure from your post whether you: a) Can't open the examples or; b) Can't open the ".fft" file - in either case, what errors do you get?

 

If the problem is "a)" then you may have a problem in your LabVIEW installation. The LabVIEW function "Read from Binary File" is on the

File I/O palette. Place this on a block diagram. Right click and select examples.

 

If the problem is "b)" then the format of the file may not be something that LabVIEW expects (there are settings that you can adjust that may help - as shown in the "Read Binary File.vi" example). Can you find out how the data was put into the ".fft" file to begin with?

 

In the attached picture,  is the list of "binary" examples on my 8.61 installation (Professional Version).

 

steve 

 

 

----------------------------------------------------------------------------------------------------------------
Founding (and only) member of AUITA - the Anti UI Thread Association.
----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 5 of 7
(3,158 Views)

Hi

    In case the binary file is provided by your vendor, you have to clarify two information from him.

 

a) Data type, how he has written file either array, cluster, string or numeric

b) Whats the byte order little indian, big indian

 

And if has recorded the same file in multiple instants then the count value.

 

Regards

Visuman

 

0 Kudos
Message 6 of 7
(3,144 Views)

Why not take a look here

http://www.signalrecovery.com/LabViewDrivers.htm



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 7 of 7
(3,113 Views)