11-27-2014 05:29 PM
oh dear i dont know what i did this time
11-27-2014 06:31 PM
so are you missing piece of code
11-27-2014 06:36 PM
I opened finalPro4_completegame.vi and it can run. I do not have an Arduino, so that part obviously does not do anything. I suspect that something is missing but there are not enough clues for me to guess what it is.
Lynn
11-27-2014 07:19 PM
like what do u mean?
11-27-2014 07:49 PM
Since I do not have any hardware (Arduino), I created a boolean array to display the data being written to the Arduino in the Initialize state.
When I click on the Play button, the "Select lights on display that you think will turn on" dialog box pops up. But there is no way to select those lights. No front panel boolean controls. No read from the Arduino. And, no code to compare the randomly generated values with the user selected ones.
It appears that you only have about one third of the program in the last code you posted (message 34 of this thread).
Perhaps the empty boolean array constant in the Initialize state should be a control?
Also, your elapsed time calculation seems unnecessarily complicated. Turn of Auto Rest and disconnect the Set Start Time (s) input. Then wire the Total time indicator directly to the Elapsed Time (s) output. No need for the shift register, the array, or the array sum.
Lynn
11-27-2014 08:00 PM
11-27-2014 08:08 PM
From your description of how the game works:
a. In the game we are doing this:
- having the user press play
- all the lights should turn off then as the game is ready to be played
- next the user will be prompted to guess which 1,2,3,4,or 5 of the lights that will turn on the breadboard, the user will click as many of the 5 light the user thinks will turn on
My question is: What does the user click on? There is nothing in finalPro4_completegame.vi which is clickable.
Lynn
11-27-2014 08:13 PM
11-27-2014 08:19 PM
11-27-2014 08:21 PM