ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem with writing binary data

Hi
 
I am trying to write a binary data file in single precision format. Writing the data is not a problem, but when I read the binary file, the data seems to have one extra zero at the start of the data. the data seems to shift towards right. Labview is introducing a zero point s at the start of the file which is making that shift. How to get rid of that extra point when I am writing the data. I am attaching the program I made to write the binary data file
 
Thanks,
 
0 Kudos
Message 1 of 4
(2,906 Views)
Hi again,
 
This is the file for the previous program which I am trying to write in a binary format. I am also attaching the program which I made to read the binary file.
 
Thanks
 
Nitin
Download All
0 Kudos
Message 2 of 4
(2,904 Views)

Hi nPai

Here is an example i found in the discussion forum. meaby you have seen it, i dont know but try  to understand it meaby there's help to take!

Zamzam

 

HFZ
Download All
0 Kudos
Message 3 of 4
(2,874 Views)
Hello,
 
I have attached a VI which writes 10 sgl's to a file (all value 1), then reads them - there is no 0 being read.  Download and run the program, and you should see the same results - the data written and read are shown on separate waveform graphs.
 
Are you sure you're not writing a 0 there?
 
Study the attached VI, and hopefully everything will be consistent on your machine!
 
Best Regards,
 
JLS
Best,
JLS
Sixclear
0 Kudos
Message 4 of 4
(2,858 Views)