LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Counting letters

Good Afternoon all,

 

Very new to Labview 2011 and taking it as a class in college and need some help.  I have tried many different ways but none are working so I will post the question and if anyone can help me with picture view I would very much appreciate it.

 

Question:

 

Provide a string control called Name.  Provide a string indicator called Greeting.  Provide a numerical control (U16 representation) called Last Name Length.  The VI should examine the data entered in Name, find the firt name only and produce a Greeting that says "Hello Joe!"  The VI should also find the last name, and determine the number of letters in it., and write this value to Last Name Length.  Provide an appropriate connector pane, and connect up all three front panel items so that the VI can be used as a subVI. 

 

Please help!!!

 

The picture is how it is supposed to look.

0 Kudos
Message 1 of 19
(3,577 Views)

Try something first.  Then ask for help.

 

Then find out that your problem is likely not specified very well and that division of names between first and last can be a bit difficult in some cultures.

0 Kudos
Message 2 of 19
(3,556 Views)

@newstudent wrote:

Good Afternoon all,

 

Very new to Labview 2011 and taking it as a class in college and need some help.  I have tried many different ways but none are working so I will post the question and if anyone can help me with picture view I would very much appreciate it.

 

Question:

 

Provide a string control called Name.  Provide a string indicator called Greeting.  Provide a numerical control (U16 representation) called Last Name Length.  The VI should examine the data entered in Name, find the firt name only and produce a Greeting that says "Hello Joe!"  The VI should also find the last name, and determine the number of letters in it., and write this value to Last Name Length.  Provide an appropriate connector pane, and connect up all three front panel items so that the VI can be used as a subVI. 

 

Please help!!!

 

The picture is how it is supposed to look.


Please help what?

 

Do you want someone to write your assignment VI for you?

 

Post your own VI first for help.

 

 

0 Kudos
Message 3 of 19
(3,554 Views)

This is not a code writing service - especially not for homework. You are going to have to show some code that you have written and ask a specific question.

 

This is not a very hard task.

0 Kudos
Message 4 of 19
(3,546 Views)

@newstudent wrote:

Good Afternoon all,

 

Very new to Labview 2011 and taking it as a class in college and need some help.  I have tried many different ways but none are working ...


Of course, we only have your word as proof of this...

0 Kudos
Message 5 of 19
(3,544 Views)

Im not sure even where to start, this is what I have so far

0 Kudos
Message 6 of 19
(3,539 Views)

@newstudent wrote:

I have tried many different ways but none are working so I will post the question and if anyone can help me with picture view I would very much appreciate it. 


Please show us all your failed attempts and explain in what way they did not work (unresponsive, wrong result, no result, clipped result, computer crashes, computer blows up). Maybe you can see a pattern yourself after doing some tutorials or by looking at the lecture notes you took during the course.

 

There are no programming environments called "picture view" or anything similar (PictureVIEW, etc.).

 

Since you posted in a LabVIEW forum and judging from your picture, I assume you mean LabVIEW. Can you confirm that?

0 Kudos
Message 7 of 19
(3,527 Views)

I believe that the problem statement should read "Provide a numerical indicator", not a "numerical control", since you are supposed to write the length of the last name to it. Of course, you could use a control, but that would mean needing to use a local variable, and I don't think that was intended here.

 

You seem to be using Match Pattern. OK. What's the search pattern? Is that a single space? 20,000 spaces? What does the output of that function give you? Have you tried writing a simple VI that has just that function in it, providing it a string input, and seeing what its output is? Experiment with the function to see how you can use it.

0 Kudos
Message 8 of 19
(3,523 Views)

@smercurio_fc wrote:

I believe that the problem statement should read "Provide a numerical indicator", not a "numerical control", since you are supposed to write the length of the last name to it.


:nod

 

That threw me off too.  Re-read it, and realized the person writing it must have made a mistake.

0 Kudos
Message 9 of 19
(3,502 Views)

This isn't http://labviewhomework.com/, you know.

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 10 of 19
(3,462 Views)