LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need help!! Dunno how2do this excersise

Make a LabVIEW program that counts how many times a given combination of characters included in the label information.

Examble:

In the Search for the combination of: abc

Consisting of the combination of: hoabnjkabcvbchjkabcfga

 

The result is that the combination of abc occurs 2 times.

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

The easiest way is to use "Search and Replace String" 

Don't forget to wire a true consant to "Replace all"

Just give the search and replace values the same value so the string won't be changed.

---

UnCertified LabVIEW Student
Mistakes are for learning, that's why suggestions are always welcome!
0 Kudos
Message 2 of 6
(2,362 Views)

Now that Koen has given the answer to your homework I may also post an image:

example.png

Best regards,
GerdW


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

Are you somehow bored guys? Nothing else to do than help lazy students to become incompetent engineers?

Message 4 of 6
(2,336 Views)

lazy students to become incompetent engineers?


That's his own choice.

If he doesn't want to learn it by finding out himself, he'll never learn it anyway.

Though this isn't a really hard exercise, so he will probably still learn from it.

Atleast he now found a new function.

---

UnCertified LabVIEW Student
Mistakes are for learning, that's why suggestions are always welcome!
0 Kudos
Message 5 of 6
(2,324 Views)

@ejkaiser wrote:

Are you somehow bored guys? Nothing else to do than help lazy students to become incompetent engineers?


I always read these threads hoping to see some interestingly obfuscated code. 😄

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

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