Jump to content

Hex Strings are kicking my A$$


Recommended Posts

I'm trying to build a Hex String to send to a piece of equipment... As you can tell by the title... Hex Strings are not my favorite things to work with...

The correct output from this vi should be a hex string 0106 012C 05DC 4B36. I don't have a clue where I'm going wrong.

Can someone point me in the right direction??? Please....

crc16-2.vi Setpt to String.vi

Link to comment

You are mixing definitions of "Hex String".  It appears you need a raw/binary/flat data string.  So replace the Number To Hexidecimal String with a Flatten Into String.  The Number To Hex String converts into an ASCII text, which you do not want.  Further, since you only want 4 hex character (ie 2 bytes), you need to add a U16 conversion bullet after the multiplication.

499451941_SetpttoString.png.dcab702c1b0b29feb25c80e426b3872d.png

Edited by crossrulz
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.