04-20-2020 10:01 AM
Hello everyone
I 'm Labview begiiner, I have made simple game, but I'm confused to develop it. I want to make additional programs when score: 0-10 with a while loop speed of 3000 miliseconds, when a score of 11-20 with a while loop speed of 1500 miliseconds, and when a score of 21-30 with a while loop speed of 500 milliseconds.
Thanks.
Solved! Go to Solution.
04-20-2020 10:06 AM
I hope anyone help me.
04-20-2020 11:43 AM
Use a case structure in your code:
Also, use data flow instead of a sequence, and use shift registers instead of local variables.
04-20-2020 12:05 PM
Thank you SIr, but I still don't understand about data flow and shift register that used in this program, what do I get best tutorial about it?
04-20-2020 12:06 PM
@michaelkeane24 wrote:
Hello everyone
I 'm Labview begiiner, I have made simple game, but I'm confused to develop it. I want to make additional programs when score: 0-10 with a while loop speed of 3000 miliseconds, when a score of 11-20 with a while loop speed of 1500 miliseconds, and when a score of 21-30 with a while loop speed of 500 milliseconds..
04-20-2020 12:16 PM
when string indicator give name of color, if you click right color, you get 1, but if you click wrong color, you get -1, it works fine in my pc.
04-20-2020 12:18 PM
But I don't understand when I try to add this algorithm to my program.
04-20-2020 12:38 PM
I want to make additional programs when score: 0-10 with a while loop speed of 3000 miliseconds, when a score of 11-20 with a while loop speed of 1500 miliseconds, and when a score of 21-30 with a while loop speed of 500 milliseconds.
04-20-2020 01:01 PM
@michaelkeane24 wrote:
I want to make additional programs when score: 0-10 with a while loop speed of 3000 miliseconds, when a score of 11-20 with a while loop speed of 1500 miliseconds, and when a score of 21-30 with a while loop speed of 500 milliseconds.
Something like that? try it!
04-20-2020 01:10 PM
Or slightly cuter. Same difference. (only works for exactly three stages, of course)