From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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
(1,449 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
(1,432 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
(1,423 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
(1,422 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
(1,366 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.

---------------------------------------------
Certified LabVIEW Developer (CLD)
There are two ways to tell somebody thanks: Kudos and Marked Solutions
0 Kudos
Message 6 of 20
(1,408 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
(1,364 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
(1,355 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
(1,341 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
(1,334 Views)