LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

excel file to text in hex format 16 places per row

Solved!
Go to solution
I have some data in an excel file that needs to be converted and arranged into 16 columns of hex text
0 Kudos
Message 1 of 20
(2,219 Views)

Hi R,

 


@RHutchings wrote:
I have some data in an excel file that needs to be converted and arranged into 16 columns of hex text

And what is the problem?

Should we help you on creating some Excel/VBA macros?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 20
(2,202 Views)
Which ever is easier I guess. I was trying to do it in LabView. Maybe I should rethink it and do it in Excel. Thank you.
0 Kudos
Message 3 of 20
(2,193 Views)

What is "hex text"? Very ambiguous and completely uninformative!

 

So you have an excel file with text formatted cells containing one or two numeric digits (that for all practical purpose could already be hex formatted, who knows!!!) in variable length rows. (but many more that 16 columns!) How should the values be reshaped into 16 columns? What does the problem have to do with LabVIEW?

 

altenbach_0-1661274037791.png

 

0 Kudos
Message 4 of 20
(2,192 Views)
60 20 00 40 60 60 40 00 20 20 00 00 20 20 00 00 20 20 00 40 60 60 40 00 20 20 00 00 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 40 60 60 40 40 60 60 40 00 20 20 00 40 60 60 40 00 20 20 00 00 20 20 00 00 20 20 00 40 60 60 40 00 20 20 00 00 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 00 00 40 60 60 40 00 20 20 00 00 20 20 00 40 60 60 40 00 20 20 00 00 20 20 00 00 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 40 60 60 40 00 20 20 00 00 20 20 00 00 00 00 40 60 60 40 00 20 20 00 00 00 20 00 00 20 20 00 40 60 60 40 00 20 20 00 00 00 40 60 60 40 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 40 60 60 40 00 20 20 00 00 20 20 00 00 20 20 00 40 60 60 40 00 20 20 00 00 20 20 00 00 20 20 00 40 60 60 40 00 20 20 00 00 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 40 60 60 40 00 20 20 00 00 20 20 00 40 60 60 40 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 40 60 60 40 00 20 20 00 40 60 60 40 00 20 20 00 00 20 20 00 00 20 20 00 40 60 60 40 00 20 20 00 00 00 00 20 20 00 00 00 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 40 60 60 40 40 60 60 40 00 20 20 00 40 60 60 40 00 20 20 00 00 20 20 00 00 20 20 00 40 60 60 40 00 20 20 00 00 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 60 20 00 00 20 20 00 00 20 20 00 40 60 60 40 00 20 20 00 00 20 20 00 40 60 60 40 00 20 20 00 00 20 20 00 00 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 40 60 60 40 40 60 60 40 00 20 20 00 40 60 60 40 00 20 20 00 00 20 20 00 00 20 20 00 40 60 60 40 00 20 20 00 00 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00
0 Kudos
Message 5 of 20
(2,136 Views)

I have not looked at your file, but there are conversion functions in excel that might help.

Frozen_0-1661273866288.png

Frozen_1-1661273888748.png

 

Good luck.

---------------------------------------------
Former Certified LabVIEW Developer (CLD)
0 Kudos
Message 6 of 20
(2,178 Views)

@RHutchings wrote:
60 20 00 40 60 60 40 00 20 20 00 00 20 20 00 00 20 20 00 40 60 60 40 00 20 20 00 00 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 40 60 60 40 40 60 60 40 00 20 20 00 40 60 60 40 00 20 20 00 00 20 20 00 00 20 20 00 40 60 60 40 00 20 20 00 00 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 00 00 40 60 60 40 00 20 20 00 00 20 20 00 40 60 60 40 00 20 20 00 00 20 20 00 00 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 40 60 60 40 00 20 20 00 00 20 20 00 00 00 00 40 60 60 40 00 20 20 00 00 00 20 00 00 20 20 00 40 60 60 40 00 20 20 00 00 00 40 60 60 40 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 40 60 60 40 00 20 20 00 00 20 20 00 00 20 20 00 40 60 60 40 00 20 20 00 00 20 20 00 00 20 20 00 40 60 60 40 00 20 20 00 00 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 40 60 60 40 00 20 20 00 00 20 20 00 40 60 60 40 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 40 60 60 40 00 20 20 00 40 60 60 40 00 20 20 00 00 20 20 00 00 20 20 00 40 60 60 40 00 20 20 00 00 00 00 20 20 00 00 00 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 40 60 60 40 40 60 60 40 00 20 20 00 40 60 60 40 00 20 20 00 00 20 20 00 00 20 20 00 40 60 60 40 00 20 20 00 00 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 60 20 00 00 20 20 00 00 20 20 00 40 60 60 40 00 20 20 00 00 20 20 00 40 60 60 40 00 20 20 00 00 20 20 00 00 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 40 60 60 40 40 60 60 40 00 20 20 00 40 60 60 40 00 20 20 00 00 20 20 00 00 20 20 00 40 60 60 40 00 20 20 00 00 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00 00 20 20 00

If posting a bunch of numbers, provide some explanation!

 

What are we supposed to do with this? (e.g. scan as a 1D numeric array assuming it is decimally formatted (only digits 0..9), then reshape to a 2D array with 16 columns (add padding if necesaary) and format in some kind of hexadecimal format (characters 0..F) with certain field (tab, space, etc.) and row delimiters (e.g. \n)).

 

Please be very (very!!!) specific! (e.g. you show 627 elements, which is not divisible by 16)

 

0 Kudos
Message 7 of 20
(2,134 Views)
I started, but something has changed on the website and I need to get used to the new format. That said. I have these numbers in Excel, let's just say 60 40 0 60 0 0 40 60 40 0 60 0 0 40 60 40 0 60 0 0 40 60 40 0 60 0 0 40 60 40 0 60 0 0 40. I want them to be like this. 60 40 00 60 00 00 40 60 40 00 60 00 00 40 60 40 00 60 00 00 40 60 40 00 60 00 00 40 60 40 00 60 00 00 40
0 Kudos
Message 8 of 20
(2,125 Views)

Here's one possible interpretation of the problem. You can easily change the various formats depending on what they are.

(Maybe the original is already hex formatted?)

 

altenbach_0-1661277469150.png

 

0 Kudos
Message 9 of 20
(2,111 Views)

@RHutchings wrote:
I started, but something has changed on the website and I need to get used to the new format. That said. I have these numbers in Excel, let's just say 60 40 0 60 0 0 40 60 40 0 60 0 0 40 60 40 0 60 0 0 40 60 40 0 60 0 0 40 60 40 0 60 0 0 40. I want them to be like this. 60 40 00 60 00 00 40 60 40 00 60 00 00 40 60 40 00 60 00 00 40 60 40 00 60 00 00 40 60 40 00 60 00 00 40

Maybe like this?

 

altenbach_0-1661277746125.png

 

0 Kudos
Message 10 of 20
(2,104 Views)