12-28-2017 11:00 AM
I am in responsible for maintaining applications created by my ex coworker. Let says he created 3 LabVIEW applications A, B, C. When A is launched it will also launch B and C (use command line-vi to call exe of B and C). Now I need to add the user management features which user need to login when launch A or re-login when he interact with either A, B, and C after time out. I also need to know the event the user generate on each instant. I want to focus on the second feature here. Is there a way I can catch the event when user click on any instant of LabVIEW? Because I hope that I can build a central vi to monitor all of this at once. Or should I monitor the interaction with user on individual application?
Thanks in advance.
Solved! Go to Solution.
12-28-2017 02:07 PM
I don't think you will be able to have a separate event structure that will capture events from multiple front panels very easily. You cold register for events based on references to the controls buyt them you need to pass the references around your application. What I would do is create a set of user defined events and when the local event structure detects an event of interest it can generate the specific user event associated with that control. If you simply need to know that there is user activity you could use a generalized user event to specify that there was user actions. You can create a very simply action engine that creates the user events and then the other areas of code can get the reference to your user events by calling the action engine.