NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

If-Then Expression question

Solved!
Go to solution

I have a need to branch on a parameter pulled out of a larger VI...

Given the following partial list of VI call parameters

...

+ Error In
Pass/Fail?
Report Text
- HB Actual
   WBL Zone B PL   Number(U8)   Out   (Checked)
   WBL Zone A PL   Number(U8)   Out   (Checked)
...

I tried 

Step.Result.HB Actual.WBL Zone B PL >0

as my conditional expression... 

Got Report

Unexpected token Actual:

Tried Step.Result."HB Actual"."WBL Zone B PL" >0

That just moved the error to the . after Result..... sigh...

 

Help?

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

Hi Pat,

It seems as if you are trying to reference the VI parameter names in the TestStand Step.Results, is this correct? I wouldn't have expected to see these in Step.Results unless you had created a custom step type.

What have you entered in the values field for these VI parameters?

 

VI Call Values.png

 

Regards,

Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)

Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor

Message 2 of 4
(3,550 Views)

@CharlieRodway wrote:

 

"... What have you entered in the values field for these VI parameters?..."

 Ahhhh... THAT little question solved my problem

Stuck local variables there and can now query them as needed... Thanks!

 

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

No problem - that was going to be my next suggestion, but I wanted to make sure I understood what you were doing!

 

Glad I could help,

Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)

Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor

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