Page 1 of 1

quiz button system

PostPosted: Mon Dec 28, 2015 8:35 pm
by maarten
hey Guys,

Sorry, I am a bit new with WD so there might (hopefully) be an easy solution for my problem...

I would like to use WD to make a quiz button system i have a phidgets 8/8/8 card to attach 6 button to WD
the challenge is to make sure that when one person pushes a button the signal of the others doesn't come trough until a reset button is pushed..

is that possible with WD and so yes.. could you help me please


regards

Maarten

Re: quiz button system

PostPosted: Tue Dec 29, 2015 1:12 am
by Benni_M
Hey Maarten,
it is possible.
In custom script buttons, you could use an if-clause in order to check if you should be allowed to click or not.
for example:

You create a variable "check".
if check = 0
{
check = 1
WDLabelText,1,Button 3
}

And the Reset Button sets the Variable back to 0.

Greets,
Benni

Re: quiz button system

PostPosted: Tue Dec 29, 2015 2:46 pm
by maarten
Hey Benni,

Thanks so much for your reply!!

to be honest i still do not completly understand..

so i make the variable...

but what do i do with the outputs of the phidgets node exactly ?

regards Maarten

Re: quiz button system

PostPosted: Tue Dec 29, 2015 7:19 pm
by JustynR
I thought a screen shot would be the easiest way to explain it.

I hope it makes sense.


The reason that I will put scripts like that in buttons is so I can quickly edit them and so there is a visual feedback like this.

You could do it without the buttons certainly, but you will only have the label letting you know what's happening.

This is how I would make it.
Of course you'll have to add 6 more script nodes than what I have.

Let me know if you've got any questions.