04-30-2014 07:08 AM
Hello everyone
I am working on my project where i am stuck in one place. Actually i am monitoring equipment in and out of a room.
I am able to put the date and time the equipment is borrowed .
i put a fixed date of 7 days for the returned date.
but now i am having a problem..
i want to make a notification appear when the student didnt returned the equipment on time
how to do that.
Hope to hear from somebody soon
04-30-2014 07:12 AM
Something like the 1 Button Dialog?
04-30-2014 07:15 AM
04-30-2014 07:27 AM
Hi,
which kind of alert do you want to have ? A pop-up, receiving a mail, the name of the student in red...
if you want to have a pop-up, you can use a 1 Button dialog window, that you can find in the Dialog palette (see the attached picture)
04-30-2014 07:27 AM
What type of notification? When do they get this notification? What part of this are your stuck with?
04-30-2014 07:34 AM
i will share with you my VI and the excel i am storing the information.
The barcode and the QR code that i mention up is the barcode is the Tp which each specific student has. and the qr code is the information
found on the equipment
You will see the date of return= ( this i give a delay of 7 days)..
My problem ( if the student does noe return within that 7 days then there should be a notification that this particular student
didnt return the equipment and status should be put alerted).
i hope i am clear sir
04-30-2014 08:55 AM - edited 04-30-2014 09:12 AM
what are you adding to... day of the week or year? how are you going to handle your addition when it is day 7 of the week or day 366 of the year(quotient and remainder)? have you looked in the comparison pallete for your needs when the current day is on/over 7 days old(greater or equal)? are you considering time, maybe adding 7 days worth of seconds to the elapsed 1904 date would be easier?
04-30-2014 09:38 AM
convert the time stamp...
04-30-2014 09:46 AM
hello sir
thank you for your help
yes sir it is year. because in the vi, the connect the day of the month and year also. i just put a PLUS 7 their, see my Vi sir.
But the day of the year when the student will come to borrow will be different for each.
i was trying with the days only.
sir the two example you send me, i dont know how to implement that in my VI
04-30-2014 10:24 AM
Instead of the big cluster mess, just take your timestamp and add the number of seconds in 7 days (which apok already showed you). That will give you the due date (and time).