LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

binary file conversion

see this

0 Kudos
Message 21 of 34
(1,295 Views)

Why do you have inputs on the right with your write file?  Diagrams should read left to right as much as possible.

 

All you need to read the data is to use the Read Binary File.  Give your cluster as the data type and use -1 for the count (reall all).  You will need to know how many rows and/or colums in order to reshape the array.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 22 of 34
(1,263 Views)

We have to read the file to display it as said in this vi. please see it and tell me how to make the outputs go in the custom made thing.

Download All
0 Kudos
Message 23 of 34
(1,260 Views)

All you show above is an VI without code. Does this have anything to do with binary file conversions as is the topic of this thread?

 

You need a subVI that translates strings into a 2D boolean array. Do you have something like that? Do you have a file that provides the pattern templates for each character (e.g. fontbit.bin)?

Message 24 of 34
(1,210 Views)

If I'm understanding the goal correctly, the OP only needs to read as a 1D array and run through the array with a FOR loop.

 

As I have already stated, use a Read Binary File function with a constant of the cluster  wired to the type and -1 wired to the count and you will have a 1D array of clusters that will contain all of your saved data.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 25 of 34
(1,203 Views)

Well, the VI he attached has controls for a string and for a "font" (from what looks like a file name). I assume that this *.bin file needs to be read in order to be able to translate an arbitrary string to the LED dot matrix display.

 

We definitely need to know how the file is organized. Can you attach the "font" file (fontbit.bin)?

Message 26 of 34
(1,200 Views)

i was trying to make a .bin file usnig one of my vi's i will post all of them here now please have a look. We need it fast so it would be good if you could help me.

Download All
0 Kudos
Message 27 of 34
(1,175 Views)

also you will need this

0 Kudos
Message 28 of 34
(1,174 Views)

@rainaby wrote:

We need it fast so it would be good if you could help me.


What's the rush? Homework? 😉

 

Just glancing at your code, it is questionable that reading a binary file is your only worry. The subVI that writes the file seems completely disfunctional, because all it writes to the file is a single character (the big 2D array reshaped to a 1D array with a single element, throwing everything away except the first character!). Who wrote this?

 

(It seems you re-used the binary file I/O from an ancient LabVIEW VI. At least you should remove the documentation that is no longer correct. 🐵

 

Why are the connectors and some of your code right-to-left? Why is there a unused empty timeout frame? Why is there a 100ms delay? Why are you writing the row and column labels in the save case. Shouldn't that happen only once at program start?

 

Once you fix the code that it writes the entire character set to the binary file, you can read it the same way, using the same data type. Try it!

 

Once you have a way to read the binary file, you can complete the "Display Message" template developed by Anish Prabu T. CLA. (according to the documentation) to create a fully functional app. Do you know what to do there?

Message 29 of 34
(1,157 Views)

NO please guide us we have a dead line.

0 Kudos
Message 30 of 34
(1,149 Views)