NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

what does this do? (RunState.Sequence.Main["ID#:0vpuefnCDES6Ti6Hn1v+jB"].Result.Status == "Error"

Important stuff

Windows 11 Enterprise

Labview 2022

TestStand 2021

Someone else's super complex code.

 

In the PreUUT sub-sequence I have a VI that checks to see that the UUT passed a previous TestStand before it does the current TestStand test.

The VI gives the thumbs up.

Then the sequence has three ActiveX calls to Thread.PostUIMessageEx sending serial number, model number and test status.

Then I have a function whose precondition Expression is this:

AnyOf(RunState.Sequence.Main["ID#:0vpuefnCDES6Ti6Hn1v+jB"].Result.Status == "Error", RunState.Sequence.Main["ID#:0vpuefnCDES6Ti6Hn1v+jB"].Result.Status == "Failed", FileGlobals.SerialNumber=="")

 

What on Earth is this looking at?  

I am using a customized sequential model and the Test UUTs sequence PreUUT is "called" before MainSequence, so is the "Sequence.Main" referring to Test UUTs as the Main? 

 

What are those "ID#..." referring to?  Where can I find those magic numbers?

 

What is worse is that this code ran fine a few months ago, somewhere along the line of my work upgrading this to a newer TestStand and LabVIEW version, I must have done something that caused one or more of those "ID#..." to Error or Fail.  The FIleGlobals.SerialNumber is fine BTW.

 

Can someone help me figure out where to look for the error or failure condition that this expression sees?

 

Be well,

DLC

0 Kudos
Message 1 of 3
(153 Views)

For each step TestStand generates some sort of hash value as a unique ID.  Then later, if someone references that step (the step being picked via the Properties Expression Browser) in a step setting/expression, TestStand will ask if you want to use the unique ID.

eejallen_0-1756845113579.png

 

 

You can see the ID if you enable Show Hidden Properties in Station Options

eejallen_0-1756844760923.png

 

Message 2 of 3
(134 Views)

@ee-jallen wrote:

For each step TestStand generates some sort of hash value as a unique ID.  Then later, if someone references that step (the step being picked via the Properties Expression Browser) in a step setting/expression, TestStand will ask if you want to use the unique ID.

eejallen_0-1756845113579.png

 

 

You can see the ID if you enable Show Hidden Properties in Station Options

eejallen_0-1756844760923.png

 


That is just the information I needed.  And a "find" in the sequence file will locate the step the secret code pertains to.  

 

Perfect!

be well,

DLC

0 Kudos
Message 3 of 3
(126 Views)