Jump to content

how to change a value in a string


vtince

Recommended Posts

Posted

I have labview read data from a radio and it sends out a test string in hex of <5050 5058 5858 5858 5858>, I want to be able to change the 4th bit to <50>, and keep all the other values the same as it was read from the radio.

Posted

String subset to get the first 3 bytes, and to get bytes 5 and beyond. Then string concatenate to combine the first 3, with a constant of 50, and the 5th byte through the rest.

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.