NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I create a VI that will allow me to choose whether I should record results or not in Teststand?

I've created a front panel that consists of booleans. When one is chosen it will open a different subsequence in Teststand, and then walk the user through the appropriate test.

The problem is, what if the user hits the wrong button and decides he doesn't want to run the test which opened. He can cancel out, but the results for the test are recorded (usually failing, because the default values are present). This, then, causes the entire test to fail.

Is there any way I can place a button in a VI like 'exit, do not record results' along with the current 'exit and record results' button I have now?

Thanks in advance for your help!

Dave Neumann
0 Kudos
Message 1 of 5
(3,115 Views)
Hi Dave,

If I understand your question correctly, then what you want to use is the DisableResults property. Depending on what level you would like to disable the results at (i.e. Step, Sequence, or all steps), you would set this property of either the Step, Sequence or Engine class.

For example, when the user hits the cancel button, you would set Engine.DisableResults(True). This will cause the engine to not record any results of the steps within the test. The only catch with this is that you must enable the result recording (i.e Engine.DisableResults(False)) after the sequence executes so that on the next execution the results will be recorded. Probably the easiest way to do this would be to place the enable results step inside of the process mode
l file.

Let me know if you have any questions. Hope this helps!
Message 2 of 5
(3,115 Views)
Thanks, for your reply.

I must be rather slow, because what you says sounds easy, but I'm still having problems.

Where is the Engine.DisableResults variable? Or sequence.DisableResults, or Step.DisableResults?

I've looked through the list of variables in the Expression browser and cannot locate this variable.

If you could point me towards it, I'd appreciate it.

Thanks again,

Dave Neumann
0 Kudos
Message 3 of 5
(3,115 Views)
Hi Dave,

I am sorry. These are actually methods of the API. If you goto Help>>TestStand Programmer Help and search for DisableResults you will be able to view the property I am talking about. In your VI you would use a property node with a reference to the Engine, Step or Sequence to set this property. Let me know if this helps.
0 Kudos
Message 4 of 5
(3,115 Views)
Hi,

Find attached a VI (LV6.1) that will disable the results.

You will need to call the DisableResults again passing False to enable the results during your execution.

But I believe once your Step has executed you cannot then disable the Results for that step. The only way is to remove the result from the ResultList.
(see example sequence2.seq).

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 5 of 5
(3,115 Views)