NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Get the SequenceFile associated with UIMsg_StartFileExecution

Solved!
Go to solution

 

I am catching the UIMessage UIMsg_StartFileExecution and wish to update my UI to indicate which SequenceFile is being executed.  I cannot figure out how to determine which SequenceFile is associated with this message.  Both the UIMessage.Thread and .Execute are null and StringData is empty.

 

The documentation for this message states "TestStand sends this message when it begins using a sequence file. TestStand specifies the file in the UIMessage."  I don't see where TestStand specifies the file.  Is this a bug in TestStand, the documentation or on my end?

 

I am capturing messages by registering the callback with RegisterUIMessageCallback() through C#.  I've also tried getting the message through GetUIMessage() and both produce the same result.

 

Any ideas are appreciated.  Thanks.

0 Kudos
Message 1 of 4
(3,215 Views)
Solution
Accepted by topic author TerrenceJ

I think it's in the ActiveXData property (do "as SequenceFile" on the object it returns). Also, you might consider using the ApplicationMgr control and handling the UIMessageEvent event as a .NET event. That is the recommended approach.

 

Hope this helps,

-Doug

0 Kudos
Message 2 of 4
(3,196 Views)

 

This is exactly what I was looking for!  

 

I wish the documentation were more specific regarding what type ActiveXData will hold for each event type; but I suppose it is usually easy to guess.

 

Thanks.

0 Kudos
Message 3 of 4
(3,190 Views)

I will request that the documentation get updated to be more specific.

 

Thanks,

-Doug

0 Kudos
Message 4 of 4
(3,175 Views)