LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Image Sequencing

I am programming Hangman in LabVIEW and I am almost done with it, other than I cant get the sequence of pictures to update the image on the front panel with each wrong guess the user makes. Is there a block or function I can create that will allow me to find a total of which # of wrong answers the user is on?

In the capture I attached, I have the file set-up to display the first picture in yellow and the red arrow is pointing to the case structure I created that runs if the sequence of letters isnt found within the phrase.

Any help or ideas would be greatly appreciated. Thank you for your time.

0 Kudos
Message 1 of 18
(4,565 Views)

I am trying to program Hangman in LabVIEW and I am almost done with it. The only problem I am having is the images that popup with the different stages of the Hangman as the user misses the correct letters. Is there a structure or block that will relay each new picture as the user guesses incorrectly?

Thanks 

0 Kudos
Message 2 of 18
(4,566 Views)

SOMEONE PLEASE HELP THIS IS DUE TOMORROW AND I CANT FIGURE IT OUT :(((((((((

0 Kudos
Message 3 of 18
(4,534 Views)

How do I make different images appear on my front panel indicator with each run of a loop?

I am trying to program Hangman and need the different stages of hangman to pop up as the user guesses incorrectly.

Thank you for your time.

Any help or ideas would be greatly appreciated :):)

0 Kudos
Message 4 of 18
(4,573 Views)

Suppose I asked the question "How do I get a different number to appear in an indicator with each run of a loop?".  What you need is a rule that assigns the different number to the indicator each time the loop runs.  The same thing applies for your question -- you need an indicator capable of displaying an Image (say, a 2D Picture), then each time you run through the loop, you need a Rule that puts the right Picture into the Indicator.  How you generate the Rule is up to you ...

 

Bob Schor

0 Kudos
Message 5 of 18
(4,552 Views)

How would you go about creating a rule for this situation? I am a new programmer and need all the help I can get. Thank you

0 Kudos
Message 6 of 18
(4,544 Views)

Skip the step of using the pictures for a start and just work with the numbers. How many chances does the player get to try and get the right answer? Display this value and decrement the value any time that a wrong guess is given.

 

Once you have that working, figure out the picture display along side the value that you are displaying. Additionally, show us whatever code you have already developed, you are much more likely to get help if you can show that you have already attempted to make progress on this by yourself (Recommended to save for a previous version (2012-2013), not everyone has the latest version of LV installed).

0 Kudos
Message 7 of 18
(4,534 Views)

Can you upload the VI? It looks like an interesting application, but I can't see what's controlling the rate of your loop, or where you're getting user input. I'm guessing the input is related to either the constant array of strings (showing 'a', as a simulated wrong value) but it seems likely your loop will iterate a great many times, very quickly.


GCentral
0 Kudos
Message 8 of 18
(4,539 Views)

This is the complete VI for as far I have gotten. There is probably an easier way to program what I have done but it works fine right now. To guess letters the user clicks the button underneath the corresponding letter and then click again to release and press another letter. If there is a way to add mechanical action to the 1D array of buttons, I think I can add it together the way done in the second VI I attached.

Download All
0 Kudos
Message 9 of 18
(4,537 Views)

I didnt mention this before but what I am trying to do is count how many letters the user has guessed wrong and then wire that to a case structure with the functions for each image.

Thank you so much!

0 Kudos
Message 10 of 18
(4,523 Views)