03-23-2013 03:39 AM - edited 03-23-2013 04:07 AM
how to off the boolean in automatic college bell system after 5 seconds?...and also the bell has to ring only on working days....please help me
Solved! Go to Solution.
03-23-2013 11:43 AM
03-23-2013 12:11 PM - edited 03-23-2013 12:12 PM
@saritha5 wrote:
how to off the boolean in automatic college bell system after 5 seconds?...and also the bell has to ring only on working days....please help me
SInce you posted here, I assume this is a LabVIEW question. Is it?
Is this a real physical bell? How is it interfaced to the code?
Since you only ask about turning it off after 5 seconds, I assume that you figured out how to turn it on. Can you show us what you have done so far?
LabVIEW has a rich timing palette and you should be able to figure out the day of the week. For example, you can use "format date/time string" with the format %A to get the weekday as follows:
03-24-2013 11:27 AM
yes this was LABVIEW project... i have attached the file till i have done....could you please help me what should be done further?
03-24-2013 06:47 PM
Saritha5,
Rather than controlling the bell directly from the equality comparisons, you should look for a transition from False to True in that comparison. You can use a shift register and the Implies function from the Boolean palette.
It is generally not a good idea to put long time delays in a program which allows user interaction. If your user hits stop immediately after the bell starts, the program will not stop until the time for ringing has elapsed. A short delay for the loop and a comparison to a calculated "end of ringing" time is more responsive to users.
Consider putting the times the bell is to ring into an array. This allows an indefinite number of times without changing the code.
Consider using Timestamp controls rather than string controls for entering the bell times. With strings any typing errors or the slightest deviation from the correct format will result in the equality comparison being false. Format the timestamp controls to show only the hours and minutes. No matter what teh user types, only hours and minutes will be allowed. Use Unbundle by Name on the block diagram for the comparisons as shown in the attached VI.
Lynn
03-25-2013 02:13 PM
basically pick the times the periods start and end, including the days of the weeks...
03-27-2013 03:31 AM - edited 03-27-2013 03:43 AM
its working....thank you soo much for your help....do you have any documentation or pdf report regarding this project?
03-27-2013 08:09 AM
@saritha5 wrote:
its working....thank you soo much for your help....do you have any documentation or pdf report regarding this project?
then if it working....give kudos to whom have helped you and mark solution if answered...so that others will know as well, if faced with particular problem.