NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

"Variables should be used" unexpectedly shown when string variables used in middle of expression

 Hello,

  Here's in TS2016, when used a string variables in the middle of a expression, the analysis results of this sequece will report it as a unused variables like below in attaced picture, this leads me several times deleted the inuse varialbes and take trubble to recover them....Please help to check if any method to filter this kind of situation out?

  Thanks a lot~!

0 Kudos
Message 1 of 6
(2,254 Views)

I might be wrong but I think they are 2 different variables and that's why is not being used.

 

One is LVLFilename and the other one is FileName.

 

Isn't it?

=======
My Channel: https://www.youtube.com/@LV_Lab

0 Kudos
Message 2 of 6
(2,237 Views)

may not, because when i double click the warning in analysis, it directly jump to the variable in previouse picture in parameters of step settings

0 Kudos
Message 3 of 6
(2,213 Views)

What is the full name in the Analysis Results?

 Locals.FileName..what? 

=======
My Channel: https://www.youtube.com/@LV_Lab

0 Kudos
Message 4 of 6
(2,198 Views)

just locals file name Locals.LVLFileName, no other letters

0 Kudos
Message 5 of 6
(2,162 Views)

Is the picture of sequence "0503_4213_310_AT00_01"?

What are the rest of the Locals?

Locals.FileName looks to be a container.

 

Actually looking at your Sequence, the step is "Skipped" therefore the warning is correct.

Regards
Ray Farmer
0 Kudos
Message 6 of 6
(2,159 Views)