11-01-2009 01:01 PM
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
11-01-2009 01:33 PM
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
11-01-2009 04:43 PM
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
11-01-2009 05:20 PM
11-01-2009 05:56 PM
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
11-02-2009 12:40 AM
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
11-02-2009 06:37 AM
Why not take a look here
http://www.signalrecovery.com/LabViewDrivers.htm