02-14-2013 06:16 PM
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.
02-15-2013 12:05 AM
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 ?
02-15-2013 01:07 AM
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.
02-15-2013 01:22 AM
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.
02-15-2013 10:58 AM
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.