05-11-2011 04:45 PM
I'm a student working on my final project (just passed my first CLAD exam!)
I'm trying to use a Boolean array to generate a 4-digit passcode. So far I am able to get the correct # to show up, but I want to eliminate the -1 default for no input. I'm having to run continuous because of that darned -1, which is defeating the point of enabling/diabling the alarm. Eventually I would like to concatenate the four digits and compare to a constant to arm/disarm. This VI will be added to another VI w/ NI Elvis board w/ multiple emitter-detector sets, which I have working fine. I would like to add this feature to enhance that one.
Can anyone help?
Here's what I have so far:
Solved! Go to Solution.
05-11-2011 09:08 PM
add a plus one after the search 1D array
05-11-2011 09:13 PM
check that what values are you looking for? I am getting correct values except I get -1 when nothing is hit is this the problem?
05-11-2011 10:19 PM
Use an event structure.
05-12-2011 12:22 AM - edited 05-12-2011 12:22 AM
Hi,
This is the easiest way to do it. Create event for the buttons and use a case structure for checking the -1... Check the attached vi. This takes an input password length of 5 characters.. after that it stops...
Regards,
Nitzz
(Kudos are always Welcome, Mark as a solution if it is the One;))
05-12-2011 12:23 AM
Oh, Dennis has already told this..:)
05-12-2011 06:07 AM
Wow, exactly how I need it to work!
Thank You so much!
I haven't worked w/ the event structure before this: very interesting.
Looks like I can equal the result to a string constant to remain running and not-equal to the stop button as well - Perfect!
Kudos and Thanks Again
LabView Rocks!!!
05-12-2011 06:11 AM
Hi,
You may Accept it as a solution if your problem is solved so that others can also refer it when required.
Regards,
Nitzz
(Kudos are always Welcome, Mark as a solution if it is the One)
05-12-2011 07:27 AM
you should also make the number pad a cluster like this:
05-12-2011 07:33 AM
Hi Harold,
That's really nice..:) Ideal way to program ....!!!
Regards,
Nitzz