03-19-2010 01:28 AM
Hi, I am doing a project called bidirectional cellphone storage and retreival unit using labview 8.5 .I have done a flowchart for it. Working of the unit is :
-if switch s(store) is pressed,
Check whether the locker is empty, if not it goes back to main screen.
If empty then username and password has to be entered. this entered data is checked with the database maintained which is an excel document. if correct then the locker is opened otherwise display is shown 'data entered is incorrect'.
Once the locker is opened a delay is given to place the cellphones, after the given time delay slot closes, else slot remains open till the time delay is over.
-if switch r(retreive) is pressed ,
then it wil again ask for username and password, and then after checking the entered data with database, the corresponding slot opens and after certain delay the slot closes.
NOW OUR PROBLEM IS: 😞
-how to implement if conditions in the VI?
- is there any other simpler method to implement our project?
03-19-2010 01:41 AM
Have you tried using the case structure?
Case structure can take boolean, enum etc etc inputs...I guess it will defenetly solve your problem
03-19-2010 06:24 AM
Take a little time to learn about State Machines and you will find the answer to your problem.
Here's a video that gives a step by step guide:
http://zone.ni.com/devzone/cda/tut/p/id/7596
Do a search on State Machines to learn more if needed.
Then ...
Start building your program. If you have trouble, do a search for that problem.
If you need help - post your question with code and folks will be happy to help you.
steve
03-21-2010 07:06 AM
Hi,
Reading through your post i cant see why you need different buttons for store and pressed? both seem to have the same functionality. You press either one, you are asked for a username and password that you test against a known set and you then open the door for x amount of seconds?
I have attached a demo vi that shows an example of this. It doesnt actually test a username and password from an xl sheet (just pretends to pass). It uses led's to indicate state of the door (open or closed). Unfortunately this is written in Labview 2009, i tried to convert to 8.5 but keeps crashing my computer. Hopefully someone else on here might convert for you and then re-post.
Many years ago now i actually developed a product very similar to this that was used in Macy's stores in America. Was similar in many ways. The units where used to charge mobile phones whilst people shopped. The way i worked was like this:
User would select an empty booth (full booth buttons where disabled)
The user would then input phone type (used to turn on correct power supply)
The door would then open
The user would then insert phone and connect to power cable
they would then be asked to enter a password and confirm
the door would then close and lock
The unit would charge the phone for x amount of time depending on price payed and then turn off the charger.
To retrieve the user would select there booth
enter password
door would open
after a long time out period door would close itself
Is this what you intend. Do the user have to enter there own password on entry and then repeat on retrievel or are they meant to know a pre-existing password and username. If not i cannot see why you would need different buttons for storing and retrieving?
The unit i designed years ago was not actually written in Labview so cannot show you any examples of that code.
How does the door open and close. Is it just simply a door that has a mechanical lock or to you have a motorised door with open and close indicators? If it is a motorised door you may possibly need to add a stalling routine incase someones hand is in the way whilst closing. This should detect the extra current through the motor caused by a stall and then possibly reverse a bit and retry several times before stopping completely.
Good luck.
03-26-2010 12:57 AM
hey could someone tell me how can i use a excel sheet in labview.we wanted to check the passwords entered with the excel sheel.The excel sheet has a list of passwords with the persons user name.
Thank you for giving us ideas to solve if problem.
03-26-2010 02:11 AM
Hi there,
I've sent an attachment regarding our project... We were planning to use blocks for username and password... But we could not find it... Could you please help us out with that... And since the username and password both are strings could you'll please suggest us any other way to implement it in our front panel...
03-26-2010 02:31 AM
Group1,
It looks like a homework for me (by looking in to the excel sheet).
I recommend you to go through the "getting started with LabVIEW" or any other online resource so that you will be comfortable with various function/controls.
For excel related things there is a seperate board here
Guru