NI TestStand

Showing results for 
Search instead for 
Did you mean: 

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


  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

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:

0 Kudos
Message 2 of 6

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

What is the full name in the Analysis Results?


My Channel:

0 Kudos
Message 4 of 6

just locals file name Locals.LVLFileName, no other letters

0 Kudos
Message 5 of 6

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.

Ray Farmer
0 Kudos
Message 6 of 6