LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to read boolean once

Hi Connor1929,

can you post what you have done so far? I think it would help to solve your problem.

 

Mike

0 Kudos
Message 11 of 16
(1,003 Views)

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.

0 Kudos
Message 12 of 16
(1,001 Views)

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

0 Kudos
Message 13 of 16
(945 Views)

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

0 Kudos
Message 14 of 16
(936 Views)

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

Message Edited by MikeS81 on 02-16-2010 11:04 AM
Message 15 of 16
(934 Views)

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

Message 16 of 16
(899 Views)