NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Teststand C# UI: Icon UUTStatus of current execution in Listbar

Hi,

I use the batch-model to test some UUTs, i'd like to connect the listbar icons to the result status of the soket. My listbar-page is connected to the ExecutionViewMgr, currently the icon change to "fail" after report generation, i'd like to indicate at runtime if a step fails. A picture say more than words 🙂 please take a look of the attached picture.

 

is my intention possible?

 

0 Kudos
Message 1 of 3
(2,069 Views)

Hi Sergej,

 

I'd ask another question: Does it make sense to you to excute test steps if the test result is already known?

 

I'd rather jump to the cleanup section if a UUT is already failed. In this case you see the red LED much earlier.

 

The following link explains to to implement my suggestion:

 

Programmatically Abort Execution upon Step Failure - National Instruments
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019LiGSAU

 

Best,

Melanie

Best regards,
Melanie Eisfeld
Senior Applications Engineer, National Instruments Germany
Certified LabVIEW Developer
Certified TestStand Architect
0 Kudos
Message 2 of 3
(1,983 Views)

Hi Melanie,

unfortunately it does.

 

Meanwhile i found a workaround:

My testframework/GUI does not use the soket disabled state, so i can send a UIMsg to disable the soket.

I send the UIMsg_ModelState_EnabledStateSet in the ProcessModelPostStepFailure Callback once for the respective execution, the listbarControl realize it and change the icon it show.

To customize the shown icon i just add my custom icon to %teststandpublic%\Components\Icons\NI_UIControls and named it ExecDisabled.ico

 

It is not the solution i imagined, but it works in my case.

 

however, thank you for your commitment

 

Best regards,

Sergej

 

 

 

Message 3 of 3
(1,975 Views)