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

Reading 0x00 in binary file as space 0x20

解決済み
解決策を見る
Here is a zip folder with the binary file. Thanks for the help.
0 件の賞賛
メッセージ11/20
4,213件の閲覧回数
解決策
受理者 Nick_A1

OK, this file does have nulls and LabVIEW has no problems reading it. There is no problem.

 

 

Message Edited by altenbach on 11-13-2008 04:48 PM
メッセージ12/20
4,192件の閲覧回数
OK, I think it's working. Thanks a lot for your help. Was it behaving differently because I was using build array instead of just dumping the data directly to an array? Or because my count was different?
0 件の賞賛
メッセージ13/20
4,172件の閲覧回数
No, the "built array" or "count" do not change the data. Most likely you had two files with similar names and mixed them up. 😄
0 件の賞賛
メッセージ14/20
4,166件の閲覧回数
I am having similar problem. When reading binary stream the 0x00 is interpreted as 0x20 (space)? Any ideas?
0 件の賞賛
メッセージ15/20
3,976件の閲覧回数
Are you sure you have nulls? As the discussion indicated, the user had a file that actually had spaces, not nulls, so LabVIEW was working correctly. Do you have a file that you can upload?
0 件の賞賛
メッセージ16/20
3,960件の閲覧回数

What is happening is I think is matter of representation of binary characters into a text editor. After conversion to ASCII I think it is OK.

 

Thank you for your help anyway!

 

Salud!

0 件の賞賛
メッセージ17/20
3,941件の閲覧回数
Why are you converting to ASCII? There should be no need for that. If you want to open the file then I suggest using a Hex Editor or Notepad++. Notepad++ has a Hex Editor plug-in.
0 件の賞賛
メッセージ18/20
3,931件の閲覧回数

I am receiving the stream of binary data from my remote instrument and I have to convert to ASCII in order to visualise them...work with the data....

 

Thanks,

0 件の賞賛
メッセージ19/20
3,922件の閲覧回数

TinoMK wrote:

... and I have to convert to ASCII in order to visualise them...work with the data....


This does not make sense.

  • To visualize binary data, simply set the string indicator to hex display.
  • Working with binary data is also much easier and efficient.
0 件の賞賛
メッセージ20/20
3,905件の閲覧回数