The phrase after "Set Station models overall" step could not be evaluated.

When you run a TestStand sequence, I get the following error message:

The phrase after "Set Station models overall" step could not be evaluated.

Types of variable or a property do not match or are not compatible.

Error code:-17321; Types of variable or a property do not match or are not compatible.

Although I do not understand the above said, the root cause of fixing is a little something else.

I'll explain the scenario.  The code is developed in TS4.1.0, although this should be irrelevant.

I inherited a project of TestStand that call LabVIEW modules.  The original sequence works very well on the test pc (which is installed remotely).  Local and remote computer share the same StationGlobals.ini.

This is why it is strange...  If I use the old or the new code, I get the error message on the local PC.  I was assuming that by using the same StationGlobals.ini would have fixed that, but it didn't.

When I run the old code on the remote PC, I do not get this message, but I understand with the new code.  I don't remember changing the code that hit the StationGlobals.  My aim is to fix on both machines (at least one remote).

It is the expression he doesn't like:

StationGlobals.Models = Locals.Models,

However, this same expression is in the original code.  The only thing that has changed is the addition of a new model number in the Locals.Models.newNumber.  I suspect that this contributes to the error.  But why it give me an error when I run the local original sequence?  Maybe I should try running it again...

In both cases, suggestions to overcome the error?

Thank you.

RayR

Please ignore the post.

I found the problem...  There was a disconnect with the number of models.  Easy fix.  It's all good.

For anyone else that might fall on this thread for the same reason, here is an explanation.

I added a new model with its variants to the Locals.Models list.  In total, he had 16 additions to the list.

I also added to the StationGlobals.  Which means that my StationGlobals is no longer equal that on the remote PC.

Where the error came, is there a model missing in the StationGlobals, so the size (number of models) does not match that of the local population.

Surveillance at sea listed models a slight (I won't even count them).  Now fixed.

... and embarrassed...

I can thus give me an "acceptable Solution".

Tags: NI Software

Similar Questions

Maybe you are looking for