LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

shifting strings

Solved!
Go to solution

I am new to LabView please be patient. I have a binary number that is represented by a string. I want to shift this 16 bit number and fill the leading bits with 0's. Will I have to split this string? I know arrays can be shifted n number of times but cannot find this type of shifting for strings.

0 Kudos
Message 1 of 6
(2,447 Views)

There are shift functions but only for actual integers not strings

 

0 Kudos
Message 2 of 6
(2,445 Views)

Is there a way to split the string in uneven proportions?

0 Kudos
Message 3 of 6
(2,443 Views)
Solution
Accepted by topic author msmith1955

@msmith1955 wrote:

Is there a way to split the string in uneven proportions?


Yes, there are lots of string functions available to you. Look in the string pallete and you will see there are functions to split strings. However, since you are really maniulating numbers you might find it easier to convert the string to a number, manipulate it and then format it into a string. Doing it purely in a string will be nontrivial to say the least.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 4 of 6
(2,437 Views)

As Mark said, convert to number, shift and convert back to string.

 

Ben64

 

shifting string.png

0 Kudos
Message 5 of 6
(2,430 Views)

Thank you for the information.

0 Kudos
Message 6 of 6
(2,422 Views)