LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

HEX Problem

Solved!
Go to solution

Hi,

 

After following Cameronds advice i am definitely getting warmer.

 

Now i see the correct string in HEX view and Code display. 

 

Except..... The data part needs to be flipped as it is read little endian.

 

Can someone help me with this final hurdle!!

 

Thanks Guys! 

 

Kudos coming!!

0 Kudos
Message 21 of 29
(1,061 Views)

Flatten to String has an input that determines the endianness of the values.

Message 22 of 29
(1,057 Views)

Could you give me an example plesae

 

Thanks

0 Kudos
Message 23 of 29
(1,053 Views)
Solution
Accepted by topic author Detox92

Haven't followed the full thread here, but if you're using Type Cast as suggested, replace it with Flatten to String, which has an input for endianness.

Message 24 of 29
(1,048 Views)

@Detox92 wrote:

Could you give me an example plesae


Give it a try before asking for an example. You might find it's simple.

0 Kudos
Message 25 of 29
(1,043 Views)

No problem, I will do tomorrow.

 

Thanks

0 Kudos
Message 26 of 29
(1,032 Views)

Or you could always just reverse the string, since you don't need an "anything" input. (And, the icon IS smaller than the "Flatten to string" icon, so it must be faster.)

 

Cameron

 

To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.

To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):

LabVIEW Unit 1 - Getting Started</ a>
Learn to Use LabVIEW with MyDAQ</ a>
0 Kudos
Message 27 of 29
(1,022 Views)

This would have been easier if the original poost had been correct.  You stated you had to send a HEX STRING to a device.  If reality you are sending a HEX VALUE as a string.  These are two totally different things.  I'm glad you seem to be getting it working but a clear an correct description would have made this a lot easier.

 

Kelly Bersch
Certified LabVIEW Developer
Kudos are always welcome
0 Kudos
Message 28 of 29
(1,016 Views)

Thanks people......

 

The Flatten to String worked a treat. 

 

Alex

0 Kudos
Message 29 of 29
(990 Views)