LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read from HEX file error....expecting D(hex) but output A(hex)

Hello to all....
 
I am reading a hex file by just using the read from file vi and showing the data on a string indicator. The problem that I am seeing is that when I change the view to hexadecimal, where ever I am expecting a Dhex the read from file vi outputs an Ahex.
 
I open the file using multiedit and the Dhex is present. Is there a reason why LabVIEW is doing this?
 
 
Thanks in advance...
 
 
0 Kudos
Message 1 of 15
(4,098 Views)

Your attached text file looks like hex 0A 's to me through out.  (which would be the new line character).  I don't see any 0D's (carriage return).

How was this file created?  Are you sure that program was outputting 0D's?

0 Kudos
Message 2 of 15
(4,090 Views)
Are you using a raw hex editor to check the file?
0 Kudos
Message 3 of 15
(4,086 Views)
When I look at the file I find both characters \0A and \0D in the file. The first few characters as shown in a '\' Codes Display are:

\00\00\00\00\EE\CC\00\00\00\00\00\01\00\00\00\03\07\D8\n\1B\t\f\r\00\00\00\00\00

This was done in LabVIEW. Perhaps you should post your code so that we can see what you are doing that gives you results you do not understand.

Lynn
0 Kudos
Message 4 of 15
(4,083 Views)

All I am doing is using the read from file vi and outputing the string to an indicator. I am not manipulating the data. Just opening up to read the file.

 

Thanks N advance

0 Kudos
Message 5 of 15
(4,075 Views)
I counted 49 0A's, but no 0D's
0 Kudos
Message 6 of 15
(4,075 Views)
Thanks for your help....
 
I attached the following screen shots for my hex viewer and the LabVIEW output.
 
If you would look at the 23rd hex pair, the hex viewer sees a 0D
 
but with labview in the same location (23rd pair) the result is a 0A.
 
 
I am simply using the read from text file vi and opening the previously posted text file.
 
 
Thanks N advance
0 Kudos
Message 7 of 15
(4,067 Views)

here's the other file...

 

0 Kudos
Message 8 of 15
(4,063 Views)

First, even though you posted an attachment that has a .jpg extension, it is actually a bitmap.  Please only post .jpg's or preferably .png files to the forum.

Looking at your screenshot, I only see 0A's in it.  Your two screenshots seem to match.

Message Edited by Ravens Fan on 10-01-2007 01:53 PM

0 Kudos
Message 9 of 15
(4,061 Views)

To answer your question about being sure that I output that value...

I used a scope with digital read and validataed that I am outputing a 0D hex....

 

Thanks for your help

0 Kudos
Message 10 of 15
(4,060 Views)