10-06-2008 05:15 PM
I have a requirement that operator actions within the user interface be logged to a file or database. Short of creating a user interface from scratch, how would you go about adding this capability to one of the user interfaces provided by NI with TestStand?
Is there a way to intercept and log TestStand's Engine API traffic? Does the engine keep some sort of log?
I need to capture events such as these:
User A logs in at 2:35 p.m.
User A open User Manager and add new user, User B.
User A logs out at 3:15 p.m.
User B logs in at 3:20 p.m.
User B opens MySequence.seq
User B calls Configure Report Options configuration entry point
Etc...
Any help is appreciated.
Chuck Cox
General Dynamics SATCOM Technologies
Longview, Texas
Solved! Go to Solution.
10-07-2008 03:09 AM
Hi,
You could look at the TestStandUIControlsReferencePoster.pdf document to see the objects and events that you can handle in the operator interface.
And look for the UI Messages in the TestStand help.
The default ProcessModels use some UI Messages to send informations to the user interface (--> "Test UUTs" entry point).
You can post your own messages (called UserMessages) from the ProcessModel.
Look at the PostUIMessage method of the thread or engine objects (TestStand API).
The interface operator can intercept these UIMessages if you handle the UserMessage or UIMessageEvent of the ApplicationMgr object.
I give you a starting point.
Hope that helps you.
Bruno
10-07-2008 05:01 PM
Bruno,
Thanks for pointing me in the right direction.
I've researched UIMessages as you suggested and will implement my system logging using them.
-chuck