12-21-2009 11:05 AM
Good afternoon,
Could someone please help. I have a project that is very basic. It is replicating the game mastermind in the labview2009 VI. I have got it to work but as soon as all conditions met are true my final or gate sends the signal to the while loop stop button.
This means there is no time for my "congratulations string" to show before the game resets. What I need to do is put a timer between the final or gate and my stop button but all the metods i have tried dont seem to work as the data types dont match.
Please Please Please some one help
Alex
Solved! Go to Solution.
12-21-2009 11:21 AM
Posting your code would probably help out a lot, because your explanation does not make a whole lot of sense to me. But this is what I came up with based on your post (although it is probably not what you are looking for):
The False condition of the Case Structure is just a wire feed through. If the or gate is true (i just through some constants for the sake of example), then the case structure uses the "Wait (ms)" VI to wait for 1 second. Once the 1 second is up, the TRUE condition is fed to the conditional control for the while loop which will stop it.
12-21-2009 11:52 AM
I think i know what you mean but i can post the code to you if you dont mind.
Its quite large where can i post it thats easy for you?
thanks so much for this
12-21-2009 12:01 PM
The best thing to do is to NOT post all of your code, but instead make a simple example of your understanding of the problem. In fact, that should be your first approach to solving a problem in LabVIEW. Isolate your problem so you can properly understand it.
A lot of posts here look the same:
"Hi! I have problem. Here is all my code, please solve it! Thanks!"
Then they post multiple files that is a bunch of speghetti code, and wonder why nobody is helping them.
12-21-2009 12:06 PM
12-21-2009 12:08 PM - edited 12-21-2009 12:09 PM
12-21-2009 12:20 PM
And the new png snippets are not always runnable...
I've seen a lot of posts here where the downloadable code was un-usable because files were missing or what have you. For the sake of completeness, you are right Dennis. Posting both code and images seem to generate the best responses.
12-21-2009 12:25 PM
12-21-2009 12:32 PM
If you are running LV2009:
1. Select the code you want to include in the snippet.
2. Goto Edit->Create Snippet from Selection
3. Save the file
4. Make a post, and click on the "Upload or Insert Image." NIs post editor makes it easy for you.
Beware, Local Variables don't translate correctly in Snippets. Posting your code as-is, is better than not posting at all.
12-21-2009 12:35 PM
Excellent, I hope this makes more sense.
Cheers