02-15-2010 08:18 AM
Hi Connor1929,
can you post what you have done so far? I think it would help to solve your problem.
Mike
02-15-2010 08:26 AM
Here it is, the Boolean 11 is where the code has been matched or not, the problem with the circuit is if the correct code is entered it will activate the alarm however if the enter button is pressed again it will deactivate the alarm even though the correct code has dissapeared from the display. Let me know what you think.
02-16-2010 12:23 AM
Hi Connor1929,
i think you use to many local variables. 😉
To solve your problem you can store the last value from boolean11 in a shiftregister to build the same behaviour as in my example.
Mike
02-16-2010 03:47 AM
Hi mike sorry to bother you again, excuse my total lack of experience but i've tried to get this working again and cant seem to get it goin, can you let me know what i'm doing wrong.
Many Thanks
Connor
02-16-2010 04:03 AM - edited 02-16-2010 04:04 AM
Hi Connor1929,
if it is possible for you to use an event structure inside your code, then i would insert the entire loop which receives the input of the security code, also into the event structure.
Your event structure will not work, because you never get the boolean12 event. If you really want to do it like this (i don't recommend it), then you have to use a properrty node with "value(signaling)".
Try to handle all user inputs inside the event structure.
Mike
02-18-2010 02:28 AM
Hi Connor1929,
how is it going? I think i understand your entire project now (from what i see out of the vi). Which function do you want to delay? I think you need only three loops. You should communicate over queues. One for User interaction (Event Strucutre), one for read/write hardware and one for the logic combination of what you need.
You should open the connection to your Velleman board only one outside the loop and you definitifly should close it after you are ready.
Mike