Example Code

C# TS 2021 UI UIMsg_Trace not firing in batch mode

I've updated the UI example:

C:\Program Files (x86)\National Instruments\TestStand 2021\UserInterfaces\Simple\CSharp\Source Code

 

and can see a UIMessageCodes.UIMsg_Trace message type in the callback of: axApplicationMgr_UIMessageEvent() when running a .seq file.

this is when my sequence file is using the "sequential model".

 

when i try to run a "batch model" sequence in the same UI code, a " UIMessageCodes.UIMsg_Trace" message is NEVER received.

these messages are received: 

UIMsg_ReportLocationChanged
UIMsg_ReportChanged
UIMsg_ModelState_PostProcessingComplete
UIMsg_EndFileExecution

so something is working.

 

I've got access to TS 4.2 code, and the Trace message does appear when I expect it, but I've not spotted any dfference between the code.

 

 

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
geeday
Member
Member
on

Further to this:

I just downloaded TS 2022 and the behaviour is as expected/desired.

 

Either TS 2021 is configured incorrectly, or it has a bug?

geeday
Member
Member
on

Figured it out.

If the "Hide Execution Windows" is CHECKED, the trace message does NOT appear in the AxApplicationMgr_UIMessageEvent callback.

geeday_0-1669027172296.png

 

Contributors