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: 

To store ASCII into Binary

I just want to store a large set of numbers.when i did it..the file is too big to open.is about 100 MB.
its in ASCII ,now i have to convert it into binary files..can anyone help me.
0 Kudos
Message 1 of 6
(3,020 Views)
There are many ways to do this. Here is a method that I use.
0 Kudos
Message 2 of 6
(3,010 Views)
thx..but my version is 6.1..i cannot open
0 Kudos
Message 3 of 6
(3,004 Views)
Show us your VI (or a simplified version with much smaller data) where you currently write the file in ASCII.

Is the file structured in some way (header+data) or are all numbers of equal type and in one big array?
0 Kudos
Message 4 of 6
(2,997 Views)
Sorry about that. I can't save this one to version 6.1, so here is a picture.
Message 5 of 6
(2,990 Views)

@MK.K wrote:
I just want to store a large set of numbers.when i did it..the file is too big to open.is about 100 MB.
its in ASCII ,now i have to convert it into binary files..can anyone help me.

Well, if it is now too large to open you cannot convert the existing ASCII file ;), instead you should modify your application to write a new one in binary. Presumably, later you also need to have a way to read the binary file back into another LabVIEW application.

Open the example finder in LabVIEW 6.1 and look at the following two examples:

  • Write Binary File.vi
  • Read Binary File.vi

    They are both in section "Fundamentals ... File Input and Output". Let us know of you get stuck :).
  • 0 Kudos
    Message 6 of 6
    (2,981 Views)