LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to turn a string sentence into words with indicators?

Hi G Liagre!
Thank you for your reply!

I have tried to create a new program after your first solution!
Which is similar to your second one, of coz your solution is more better.

I have one more question, when my input string is empty, it show an error message and stop my program.

Which is "Error 1 occurred at Scan From String (arg 1)"

and

"Possible reason(s):

LabVIEW: An input parameter is invalid.
---
NI-488: Command requires GPIB Controller to be Controller in Charge."

What's wrong with the Scan From String???
0 Kudos
Message 11 of 16
(1,170 Views)
Hi LV_Pro!
Thank you for your reply!

The points that you consider is very important!
Your suggestion is great!

And I am going to tell you kindly, my input string includes fixed four units only.

I have to appreciate again for your concerns.
0 Kudos
Message 12 of 16
(1,170 Views)
Hi askjdhvl,

The error in the "scan string" when the string is empty is normal, because the input string is... empty (so it is declared invalid)!
If you want to avoid this error message, you can put a "switch case" which will inhibate the "scan string" when the input string is empty.

Best Regards,
G Liagre
Best regards,
G Liagre
0 Kudos
Message 13 of 16
(1,164 Views)
I was about to post a new thread when I came accross this topic. Truly this place is the most technologically knowledgeable forum I have ever been a member of. I am working on a VI to manipulate strings, and will post when finished. I hope it helps someone else who is trying to learn.
 
---God's Templar---
0 Kudos
Message 14 of 16
(1,065 Views)

how we can do the same but if the case is that the sentence is an acquired sound and we want to detect separate words?thx in advance

0 Kudos
Message 15 of 16
(906 Views)

That really a completely different animal and has nothing to do with this thread.  You should start a new thread.  You might be able to use something like the Microsoft Speech Agent.

 

I would recommend you search the forums for "speech recognition" and "speech agent".

0 Kudos
Message 16 of 16
(905 Views)