12-03-2021 01:07 AM
Hi suba,
@suba_25 wrote:
I understand that we could use array but I am not sure on how to start with multiple alarms within the array.
Before starting with "multiple alarms" you should handle a single alarm! Did you already solve that problem?
What have you tried so far? Why don't you attach your VI?
12-03-2021 01:45 PM
For this to work you need code that will run on server somewhere so that it can send emails based on some date / time trigger. If you get this code to run in LabVIEW the application will need to be running all the time for it to take the action to email a reminder. Maybe look at https://ifttt.com/explore/new_to_ifttt
LabVIEW is awesome but there is a learning curve to it and there are easier ways to do what you are trying to do.
12-08-2021 11:21 AM
this is what i tired so far, I couldn't set 2 or more alarms.
12-08-2021 11:38 AM - edited 12-08-2021 11:49 AM
If your code is scalable, creating the code for one alarm is sufficient, then you and use an array of alarms of any size.
You really need to simplify your code. An event structure with a 1ms timeout is just plain silly, unless you want your reminders with that kind of precision (will not work anyway, because these notification will be much slower!). Since you are spinning the loop anyway, a simple case structure would be sufficient. Decide on a reasonable loop rate and place a wait.
Hours and minutes are integers. Don't make them orange!
It is confusing to have a boolean labeled "x". Give it a name that hints at the function! Since you use it as a "fake variable", it probably should not be a control unless you want the operator to be able to change it any time he wants.
You have a glaring race condition due to blatant overuse of local variables. Your "x" terminal will get read way before the local receives a new value from inside the event.
Back to the drawing board!!!
12-08-2021 01:26 PM
See if this can give you some ideas. No, it is not finished but you can easily expand it for more functionality!