LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

A string that can be displayed as both ASCII and hex in an indicator will only save the data to a file in ASCII format

Solved!
Go to solution

We can see the data in an indicator just fine, but when we try to write that string of hexadecimal data to a file, it will only save the data in ASCII format.  

This sounds fairly simple, as the indicator can be selected to display the data in several different formats (VI>Properties>Appearance>Display Style: Normal, Backslash...., Hexadecimal).  However, I have been unable, as of yet, to save the data in different formats.

0 Kudos
Message 1 of 7
(2,731 Views)

Hi iif264,

 

changing the display style doesn't change the underlying data. So independent from display style your stirng will always written to file in the same way...

This also applies to numbers, where you can switch between decimal, hex, bin and other display styles!

 

To save in a different format you have to (re)format the data!

This has been asked a lot of times here, so just do a little search on the forum...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 7
(2,724 Views)

... or you could just read the string:text.text property to get whatever is actually displayed. 😄

Message 3 of 7
(2,716 Views)
Solution
Accepted by topic author llf264

 


@altenbach wrote:

... or you could just read the string:text.text property to get whatever is actually displayed. 😄


 

like this...

 

Message 4 of 7
(2,710 Views)

altenbach... you Da MAN!!  Thanks !!  That was a super simple two second answer that solved our problem!!  KUDOS!!

0 Kudos
Message 5 of 7
(2,692 Views)

Don't just say kudos.  Click on the kudos button under his name to actually give kudos.Smiley Wink

Message 6 of 7
(2,678 Views)

Done!!   Thanks !!

0 Kudos
Message 7 of 7
(2,664 Views)