LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

4 number lock combination

Hello guys,

I am in school and just started learing labview. I have just learned the basics. Currently I am working on a problem and I am kind of stuck.
The objective is to have a 10 digit pusbutton keypad along wtih an enter and an led lighting up for 2 seconds after the correct aequence has been entered. I have suceeded at this by having a permanenty programmed 4 digit number which will light up the led as described, the problem is that the user should be able to program their own 4 digit sequence and then that sequence should work on the keypad. I am not sure how to make the user entered numbers in the form of a digit correspond to the pushbutton which only have labelled numeric values. If some one could assist me it would be greatly appreciated. Also is attached what I have so far.

Thanks in advance.

0 Kudos
Message 1 of 5
(3,535 Views)

What do you mean by 'sequence should work on the keypad'

 

Once user enter the sequence how you can be sure that this is working ?

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 2 of 5
(3,517 Views)

Hi

 

I was just playing around with your question. I did some work for you. You will have to improve it as you want.

Post back if you have more questions.

 

The way you developed is not the right thing. Instead of having multiple case strucutres, use event strucures.

Instead of using Run Continuously button, use a while loop and a stop/exit/cancel button.

 

attached is a sampel vi.

Regards
Freelance_LV
TestAutomation Consultant
Message 3 of 5
(3,508 Views)

Hi Freelance_LV,

                               Nice job friend. I think he got his answer. But only small bug is after entering the four key later when other user enters 4 wrong button then this is not resetting needs to be done manually.

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 4 of 5
(3,505 Views)

Thanks Freelance_LV,
I have an older version of labview and had to download the newer one to be able to view the program.
The way you approached it was very different and I will have to take some time to figure it all out and modify it myself.
Really appreciate the help and the guidenance.

0 Kudos
Message 5 of 5
(3,462 Views)