LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

send SMS (please help)

Hello,

I'm developing an application which sends an SMS when a certain condition is met. I have developed the subVI which sends the SMS. After I send a SMS, I want to wait for 30 minutes before sending the next SMS (in order to avoid SMS memory overflow on the receiver side)and I don't know how to do that. Can I somehow disable the section of code which sends SMS for 30 minutes.
I'd be extremely grateful if you could tell me how I can do this, because I need it for my degree thesis.

Thanks in advance

Message Edited by vici4u on 05-21-2008 01:42 PM

Message Edited by vici4u on 05-21-2008 01:43 PM
0 Kudos
Message 1 of 4
(2,679 Views)
Hi vici4u,
you can insert your sms send code into a while loop which runs parallel to your other code and run cyclic through it. Insert a wait vi with 1000ms for example and count the iteration. After 30sec you can call the case with your sms code and reset the counter. The 1000ms loop has the advantage that you can read a stop button to stop your program without waiting 30sec. 🙂

Mike

Message Edited by MikeS81 on 05-21-2008 08:47 PM
0 Kudos
Message 2 of 4
(2,672 Views)
Just compare the current time with the last time it was sent. E.g.:



Modify as needed.

"because I need it for my degree thesis" : There seems to be a lot of that on this forum over the past few weeks. Ah, the end of a school year. Smiley Very Happy


Message Edited by smercurio_fc on 05-21-2008 01:47 PM
0 Kudos
Message 3 of 4
(2,671 Views)
Thanks a lot. I'll try to do that
0 Kudos
Message 4 of 4
(2,647 Views)