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: 

Hex String display

Solved!
Go to solution

I getting a string from CAN Controller as 002A0100   005A0004 total 8 byte i have to display  first 4 bytes in little indian format without spaces followed by space with following 4 bytes also in little endian format and for next string  should go to next line.

 

E.g :    00012A00           04005A00   

            Next msg 

Message 1 of 9
(4,118 Views)
This appears to be the same question you asked here.
0 Kudos
Message 2 of 9
(4,110 Views)
In this case the string in Hex string not a normal string.
0 Kudos
Message 3 of 9
(4,105 Views)
I do not understand what that statement means. What is a "normal" string?
0 Kudos
Message 4 of 9
(4,101 Views)

I getting a Hex string from CAN Controller as 002A 0100   005A 0004 total 8 byte i have to display  first 4 bytes in little indian format ( 00012A00 )without spaces followed by space with following 4 bytes (04005A00) also in little endian format and for next string  should go to next line.

 

For E.g

 Display should look like  00012A00     00012A00    what i can see in my output is 0001 2A00  0001 2A00 ( 1st problem) and 2nd i am not able to add next string in next line if i try to add the string using EOL string it is taking its hex value.

0 Kudos
Message 5 of 9
(4,099 Views)

Hi srinivas,

 

try the attachment. It's a straight forward solution 🙂

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 6 of 9
(4,064 Views)
Solution
Accepted by srinivas
Thanks it works exactly what i wanted.
0 Kudos
Message 7 of 9
(4,055 Views)
Then mark Gerd's reply as the solution and not your own message.  You can unmark yours from the option menu to the upper right of your message.
Message 8 of 9
(4,048 Views)

srinivas wrote:

 i have to display  first 4 bytes in little indian format without spaces followed by space with following 4 bytes also in little endian format and for next string  should go to next line.  


:smileyvery-happy:

 

Cory K
0 Kudos
Message 9 of 9
(4,031 Views)