NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Set property value using a Process Model

I need to stop the while loop inside my TestStand sequence.
To do this, I change the value of a boolean FileGlobals using the Set property Value.
This solution works only if I run the sequence without process model.
If i run the code using the process model, I'll get error -17306.

0 Kudos
Message 1 of 3
(625 Views)

If you use non-sequential model then perhaps you try to set globals for the wrong thread. To have globals shared between by all threads you need to set this in sequence file properties.

 

Anyways, I have two questions:

1. Why can't you use simple assignment? E.g. fileglobals.x = 666.

2. Why can't you use synchronisation steps like notification to stop the loop? I think it would be more elegant.

Michał Bieńkowski
CLA, CTA

Someone devote his time to help solve your problem? Appreciate it and give kudos. Problem solved? Accept as a solution so that others can find it faster in the future.
Make a contribution to the development of TestStand - vote on TestStand Idea Exchange.
0 Kudos
Message 2 of 3
(593 Views)

Hi Michal ,thanks for your reply.

 

I'm using the default SequentialModel. 

 

The code that I upload it is just a small example of a more complex architecture.

 

So, I need to change the value of some FileGlobals of TestStand from LabVIEW.

 

Thanks.

 

0 Kudos
Message 3 of 3
(577 Views)