Hello,
I am looking for how can I fire QAction every 1 second or how can I include QAction in a timer in a protocol ?
Hi,
If you want to have something run periodically from within a protocol, you can make use of a Timer and define your time in there (in this case 1 second).
That timer will contain a group of type action in order to execute an Action
The action will be of type run actions and be associated with a parameter that in turn will trigger the execution of the QAction
It’s advised to make the Group Type “poll action” instead of “action”. For more info see: https://help.dataminer.services/development/#t=DataMinerDevelopmentLibrary_Customerpart1PDGPDGfundamentalsSLProtocol.htm .
In there the note mentions:
“Although it is possible to let a timer thread execute groups, it is advised to always add groups to the group execution queue. This means that groups in a protocol should always be of type (“poll”, “poll action” or “poll trigger”).”
Further see this link: https://help.dataminer.services/development/#t=DataMinerDevelopmentLibrary_Customerpart2CodingGuidelinesCODProtocolTimer_content.htm
Where it’s mentioned: “The last group in a timer should be a group of type “poll”, “poll trigger” or “poll action”, to guarantee that the timer does not start again while not all groups of the timer have been executed yet.”
Thank you so much really helpful