LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to loop strings?

I have been trying to use Labview to loop strings but is unable to... is there a way for this to be done?
0 Kudos
Message 1 of 6
(3,724 Views)
Hello opto,

what do you mean by "loop strings"?
Do you want to get one char after the other from a string? Then there is a function "string subset" in the string functions palette.
Or do you have an array of strings? Then have a look at the array functions palette or use the auto-indexing feature of for/while loops...

Best regards,
GerdW
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(3,722 Views)
Hi,

I mean when i use match pattern in the string function, after i input the string to match pattern, using shift register to obtain the after substring, i am unable to loop it back to the original string function...:(
0 Kudos
Message 3 of 6
(3,696 Views)
Your description does not make much sense, so it is possible that I misunderstand.

Remember, a diagram is worth 1000 words so please attach a small sample VI demonstrating the problem or a image of your code. 🙂

Anyway, matching patterns does not involve any shift registers to obtain the "after substring".
If you need the original string, just branch it off before it enters the match pattern function.
0 Kudos
Message 4 of 6
(3,687 Views)
Hello opto,

do you mean something like the attached picture?
This way you "loop" the "after substring" back to your match pattern.

Anyway, like altenbach said: try to post a vi describing your problem!

Best regrards,
GerdW
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 6
(3,675 Views)
thank you. ive solved the problem using the shift registers.
0 Kudos
Message 6 of 6
(3,671 Views)