Jump to content

Sequence of Images


Recommended Posts

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.

Capture.JPG

Link to comment

Interesting program, but is everything hard coded in terms of the word used?  Eventually I'd suggest allowing to just update a single string with a new value and have the program just work.

Your question isn't quite clear but keeping track of the number of wrong answers seems like something you are going to have to keep track of with a shift register or feedback node, incrementing with each wrong answer.  Then you can build your path with a format into string so that you will select 2.jpg for two wrong answers.  You could also embed the N images into a single Picture Ring control, then pick the image based on the number of incorrect answers.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.