Set Interval and stop
-
I wrote:
Timer_write_y_acq->setInterval(1000);
connect(Timer_write_y_acq,SIGNAL(timeout()),this,SLOT(write_y_acq()));
Timer_write_y_acq->start();but when in an other function I write :"Timer_write_y_acq->stop(); " it doesn't work..the timer doesn't stop
-
@vale88 would you mind showing the community how? just in case it may help others.
And please don't forget to mark your post as solved!.
@Pablo-J.-Rogina I did an error, it works with time->stop
-
I wrote:
Timer_write_y_acq->setInterval(1000);
connect(Timer_write_y_acq,SIGNAL(timeout()),this,SLOT(write_y_acq()));
Timer_write_y_acq->start();but when in an other function I write :"Timer_write_y_acq->stop(); " it doesn't work..the timer doesn't stop
@vale88 is this Timer_write_y_acq object a member of your class where you call start() and stop()?
could you show more code to see where/how the object is created and where/when you start and stop the timer?
-
@vale88 is this Timer_write_y_acq object a member of your class where you call start() and stop()?
could you show more code to see where/how the object is created and where/when you start and stop the timer?
I solved
-
I solved
@vale88 would you mind showing the community how? just in case it may help others.
And please don't forget to mark your post as solved!.
-
@vale88 would you mind showing the community how? just in case it may help others.
And please don't forget to mark your post as solved!.
@Pablo-J.-Rogina I did an error, it works with time->stop