キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

binary file conversion

see this

0 件の賞賛
メッセージ21/34
1,921件の閲覧回数

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.



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
メッセージ22/34
1,889件の閲覧回数

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.

すべてをダウンロード
0 件の賞賛
メッセージ23/34
1,886件の閲覧回数

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)?

メッセージ24/34
1,836件の閲覧回数

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.



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
メッセージ25/34
1,829件の閲覧回数

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)?

メッセージ26/34
1,826件の閲覧回数

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.

すべてをダウンロード
0 件の賞賛
メッセージ27/34
1,801件の閲覧回数

also you will need this

0 件の賞賛
メッセージ28/34
1,800件の閲覧回数

@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?

メッセージ29/34
1,783件の閲覧回数

NO please guide us we have a dead line.

0 件の賞賛
メッセージ30/34
1,775件の閲覧回数