LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Stuck!

Solved!
Go to solution

I'm trying to get a for loop to read a string word by word, I have tried several different things to no avail.

 

For instance:

 

Who is there-->(for loop) [converted string]--> Whot ist thert

 

This is killing me, thanks for the help!

0 Kudos
Message 1 of 19
(4,415 Views)
Post your vi here
Message 2 of 19
(4,408 Views)
Post your vi here
0 Kudos
Message 3 of 19
(4,408 Views)
0 Kudos
Message 4 of 19
(4,401 Views)

Here's the sub vi I made.

 

Any suggestions on changing any of this would be great.

 

Thank you so much for helping me out.

0 Kudos
Message 5 of 19
(4,386 Views)
I know it looks terrible, but I'm not very good at this stuff. Please help me:)
0 Kudos
Message 6 of 19
(4,350 Views)

The simple solution (i cant open your .vi due to having 8.2) is send your string to the loop with a Shift Register. Inside loop, Match pattern to string, send Result after match to Shift register out, and Before match you let autobuild an array by connecting to loop border (should be an []). Then you'll have a string array with 1 word per row.

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 7 of 19
(4,344 Views)

Hi 

 

I can't open your attachment as I am using 8.5. Are you looking for some thing like this?

 

Thanks,

Sanad MM

0 Kudos
Message 8 of 19
(4,338 Views)
Okay so what do I set as the regular expression?
0 Kudos
Message 9 of 19
(4,337 Views)
Well, Sanad, I'm looking for something that will send words individually through a loop. I have a sub vi that puts it into pig latin so what I'm trying to do is get the words translated one at a time.
0 Kudos
Message 10 of 19
(4,334 Views)