09-18-2009 10:56 PM
Hello All,
I would like to use the Labview to make a 3-digit combination lock, when the password is correct, the green light appears, when the password is wrong, the red light appears. Can someone help me to make the diagram? Thanks.
Best Regards,
po
Solved! Go to Solution.
09-18-2009 11:16 PM
What have you tried so far? Where are you stuck?
This sounds like homework. We can't do your project for you. But if you have specific questions or problems, then we can help answer them.
09-18-2009 11:18 PM
Why don't you attach what you have written so far? It does not seem very hard so you should explain what the problem is.
If you have not done anything, start with three numeric controls, an enter button, and a Boolean indicator. The rest should pretty much write itself.
You might also check out the free tutorials.
p.s. This sounds like a school assignment. Is it?
09-19-2009 02:41 AM
Would you mind helping me? As I havent learned it but I need to hand in this assignment, thanks.
09-19-2009 04:45 AM
farry1024 wrote:Would you mind helping me? As I havent learned it but I need to hand in this assignment, thanks.
It is only you that can solve this assignment. Sit down and relax. Then put down to paper how you would solve this task if you was a combination lock 😉
All you need is on the two palettes shown in the picture
09-19-2009 10:16 PM
Hi Coq Rouge,
Thanks for your hints, but would you mind providing more hints? As I am a beginner who havent used Labview for long. Thanks.
Best Regards,
farry
09-19-2009 10:29 PM
You have 3 front panel controls where the user enters a number. You compare each one with the code to see if they match. If digit 1 matches AND digit 2 matches AND digit 3 matches, then you have a valid combination.
With Coq Rouge's images telling you where to look, the descriptive pseudo code I just gave you, and Dennis' links to the LV tutuorials, as a college student, you should be able to figure it out.
If not, don't wait too long before you decide to drop the course so you don't lose too much money.
09-20-2009 08:39 PM
Now working in this stage, but seems something with the outer frame
can anyone help? thanks.
09-20-2009 08:51 PM
There are functions there that don't have anything to do with your original problem. What is the purpose of the array/search array? What is that function in the second frame? What is the purpose of the writing to the local variables? Your original problem is solved with the code in the first frame.
If you continue to have problems, further explain what it is and instead of some picture, attach the actual VI. If you have LabVIEW 2009, you can attach a snippet. All other pictures are impossible to debug.
p.s. Use the 'Add Attachments' below the message body.
09-20-2009 09:16 PM
I need to use both 'key' or 'array' to input the password
if correct, green light 5 sec
if wrong, red light 5 sec