ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Scan from string hexadecimal U64 possible?

Solved!
Go to solution

With LabVIEW built in "Scan from string" function you can decode hexadecimal strings with "%X" format specifier.

The data type is set to U32 (8 characters) by default. I have to scan U64 (16 characters) strings.

Is there a possibility to configure the "Scan from string" function to scan and generate 64-bit integer values? Something like "%LX" as format specifier?

 

I can parse it on my own, but I would prefer an built in functionality.

 

Thanks for any ideas

Stefan

 

0 Kudos
Message 1 of 3
(3,921 Views)
Solution
Accepted by topic author lvw

Yes.

 

Use %16x as the format specifier and wire a 0 in U64 format into the "default value 1" box,

 

That shoult return you the correct u64 as expected.

 

0xDEAD

Message 2 of 3
(3,908 Views)

Thanks, I normally not use the default input of the function. This should solve my problem.

0 Kudos
Message 3 of 3
(3,901 Views)