04-17-2020 04:43 AM
Hi all, my name is Chethan and I am currently working on a project where one of the tasks requires monitoring of the front panel. If the user is not using the front panel for 1 min, the VI should stop the execution. The VI should track cursor movement on front panel only. If the user run the VI and minimize the front panel, this time should count for 1 min wait time before stopping the execution.
Feel free to share your thought on this topic.
Solved! Go to Solution.
04-17-2020 09:08 AM
Hi Chethan,
Check the VI attached. It has an event structure that tracks the VI mouse event. If there is no mouse activity on the Front panel of the VI then the VI stops executing.
Hope this helps.
04-20-2020 02:00 AM
Hi Alifiya,
Thanks for the solution. This VI is working fine however even when the cursor is moving inside the front panel, the VI is stopping the execution after a minute. What I am trying to say is, cursor movement inside the front panel should be considered as mouse activity, VI should not stop executing as long as the cursor is moving inside the front panel. Is it possible to do so?
Thanks.
04-20-2020 03:32 AM
Hello, I believe this simple event-case VI shall solve your purpose.
04-20-2020 04:25 AM
Hi Chethan,
Use the attached VI. It is modified as per your requirement.
Let me know if this helps.
04-20-2020 05:37 AM
Hi Umesh,
Thanks for the solution. This VI works fine but instead of giving such a big value to "Event Timeout", I used an"Elapsed Time VI" inside the timeout event.
Thanks very much for the quick response.
I am attaching the modified VI. Please check it once. I am using LV 2015 version.
04-20-2020 05:40 AM
Hi Alifiya,
The solution VI is working as expected with few more added features like mouse wheel monitoring.
Thanks very much for quick response with solution.
04-20-2020 06:48 AM
Hi,
Can you post 2017 version vi?
Thanks.
04-20-2020 07:22 AM
Hi,
Attached is the VI in LabVIEW 2017 version