From 11:00 PM CST Friday, Feb 14th - 6:30 PM CST Saturday, Feb 15th, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Teststand API - LabVIEW get active sequence from ThisContext

I am trying to make a banner that starts when the Test UUTs is called and ends when the user stops, this banner shows information about the User Permissions about the current logged in user. 

 

My current issue is to trigger the stopping of the VI. I want to stop the VI when the Sequence goes through the PostUUT Loop (preferably without any variable setting) (also does the PostUUTLoop call back need to be enabled)

 

What I am currently trying: 

I am using the setting "Use Context of Calling Thread" and passing that to the VI

for the User permission:

ThisContext > Property Node[Sequence Context - AsPropertyObject] > Property Node [PropertyObject - GetValString] (StationGlobals.TS.CurrentUser.Privileges.Custom.PropertyString, 0)

This seems to work well

 

for Detecting PostUUTLoop

ThisContext > Property Node[Sequence Context - AsPropertyObject] > Property Node [PropertyObject - GetPropertyObject] ("Runstate.Sequence", 0) > Property Node [PropertyObject - GetDisplayNames] ("",0) this returns the name of the sequence (propDisplayName) and '...' (value display name)  that called it and nothing else

 

I am also looking at a FileGlobal Enum for completion and Enums are not handled well let alone that I want to implement this as close as I can to be a drop in to future test sequences

 

All of these are within the same loop

 

Is there a better way to detect end of test loop from in the VI and is there any way to make a VI Click through and transparent (out of scope of the initial question)

0 Kudos
Message 1 of 3
(266 Views)

If what you are doing is part of an operator interface, I'd recommend using UI Messages:

 

Oli_Wachno_1-1733894783788.png

 

Oli_Wachno_2-1733894817739.png

 

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000x3tWCAQ&l=de-DE

 

0 Kudos
Message 2 of 3
(229 Views)

Currently we are not using the Operator interface, long run it is a direction we want to go but I haven't been able to get the Deployment tool working.

 

From what I found that application manager reference only exists when running TestExec, but using the event structure with UIMessage seems elegant.

0 Kudos
Message 3 of 3
(209 Views)