NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Logging user interface actions

Solved!
Go to solution

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

Message 1 of 3
(3,095 Views)
Solution
Accepted by topic author GenDynEngineer

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

Message 2 of 3
(3,079 Views)

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

0 Kudos
Message 3 of 3
(3,052 Views)