LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

convert hex string to binary for ber test

I need to convert the HEX string from a serial card to a binary format for the input to the LabVIEW 7.1 BER VI. I can convert the data to binary for displaying easy enough, but how do I convert the hex string to required binary for the input to the tester? Seems simple, but I haven't come up with the correct configuration yet.
 
Any advice will be appreciated.
 
Jeff
0 Kudos
Message 1 of 4
(3,800 Views)
There is a string to hex function under additional string functions, this I think will only convert 0-F to the decimal equiv. For each value you sum 16 x offset (right most is 1 and leftmost is string length)  x string to hex value. 
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 2 of 4
(3,794 Views)
These questions come up once in a while, but they are never clear enough....
 
What is your definition of a HEX string?
  1. A humanly readable formatted string where each hexadecimal is represented by the ASCII characters 0..F
  2. An arbitrary string where each character can be any combination of bits. It will look similar to above if the string terminal is set to HEX display.

What is the meaning of "binary" input? (Sorry, I don't have the toolkit). Everything is binary one way or other, so you should be more specific ;). Depending on your definitions, you might need e.g. "hexadecimal string to number", "typcast", "scan from string", etc. or a combination of them. 😉

Could you clarify? Thanks! It would be easiest if you could attach a simple example containing a typical example of your raw HEX string in a diagram constant.

Message Edited by altenbach on 05-01-2006 08:09 AM

0 Kudos
Message 3 of 4
(3,781 Views)

good point I assumed a hex string to be an ASCII representation of the hex value for conversion.

 

Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 4 of 4
(3,767 Views)