08-06-2007 10:53 PM
08-07-2007 12:36 AM
08-07-2007 12:42 AM
Hi user_1,
Like LV_Pro, I'm not sure exactly what's needed...
It's possible to programmatically cause a button value-change event by writing to the button's "Value (signalling)" property. If you're not familier with object-properties, right-click on a button and "Create"\"Property Node". This will cause an "event" that can be detected/handled by an event-structure. However, if I understand your application, there may be an alternative the doesn't require "simulating" this user-event - exampe is attached!
Cheers.
08-07-2007 01:30 AM
Hi,
Thank u for the reply.
Sorry for the confusion in my question in my previous post.
Currently i am getting data from the database by clicking getdata button.And sending email using send mail button.
I want to remove the clicking events and automatically perform tasks.
ie,want to change my application in such a way that at 9'o clock it should get the data from the database (where datetimebetween d/m/Y 08:00:00 and d/m/Y 08:59:59)
ie,if i combine the operations of getdata and sendmail together-then at 9 o clock the application should send mail to the recipient ,fetching the data from (8 to 9)
As a first step of this i have to avoid the button clicking events and automatically it should happen at each hour.
Getting data in this intervel is not an issue.
The problem is i dont know how to activate the event programatically(have i to use timer?iam not familiar with timer.thats why i am asking this).
ie,Now if i want to getdata/send mail,i have to open my application.then give step by step instruction to getdata.
I have to modify my application in a way that Without even opening the application i want to getdata/send mail.
The complications related to sending mail i am not putting forward.
Can u pls help me by telling how can i automatically execute the event at each hour.
If i have to explain more,pls inform me.
Thanks in advance.
08-07-2007 12:01 PM
08-07-2007 08:08 PM
Thank u so much for ur reply sir.
I am not still clear about the idea u explained.Can u explain more for me,if possoble can u give me an example.
There will not be problem in fetching data in each hour as i can specify the query edepending on the system datetime.
But my issue is i dont know how to execute the event every hour automatically(if i know how to execute the event automatically,there will not be problem in sending mail,i believe).
As a simple example can u tell me how can i display a message (say hai) every hour.i may be doing something else other than labview.But the message hai should be displayed each hour.I think if i know how to code for this,i can get a basic idea of my problem.
Thanks once again
08-08-2007 11:37 AM
08-10-2007 02:42 AM
Thank u so much for your reply.
I tried the autosend option by giving my code inside the timeout event and setting time out event to be executed every 60s.
Little delay i found as now i just placed the code without modification.Nw i have to optimise the vi .Anyway little delay will be there i think as the data being fetched from database using a number of condition checkings and complex methods
If i give 1hr delay for the event structure will it create bad effect to CPU utilisation?As it has to continuously check by switching from other process.Just for an information i am asking this.
Thanks once again for the help.
08-10-2007 03:52 PM
08-10-2007 03:56 PM