NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Can you access a process model Test UUTs sequence Locals or Globals from an Operator Interface?

Hello,

I am building a custom VB Operator Interface that initiates executions which
use a custom process model. I was hoping to be able to, at runtime, have
the Operator Interface tweak various runtime copies of Locals and/or File
Globals in the underlying process model sequence file. I wanted this
ability in order to control certain custom process model features not
accounted for by the TestStand properties and methods.

I've tried something like:

Set tsobjSequenceFile = p_tsobjExecution.GetModelSequenceFile
Set tsobjProperty = tsobjSequenceFile.AsPropertyObject

tsobjProperty.SetValBoolean
"Data.Seq[0].Locals.OperatorInterfaceFlags.IssueTestResultM
essages", 0,
bIssue

While the above SetValBoolean call does not generate errors, it also doesn't
seem to change the value of the runtime Locals variable (I know because I
have a Message box that displays the value each iteration of the UUT loop).
I assume I'm not accessing the runtime copies of the variables with this
code, but something else (the design time copy, maybe? *shrug*).

I'm probably being dense and missing something obvious, but I can not seem
to find a control path that accomplishes what I need. My Operator Interface
only has references to a SequenceFile and corresponding Execution objects.
Is there a way using these two objects to access and change the runtime
copies of the Locals and/or File Globals of the underlying process model
sequence file?

TIA,

Bob Rafuse
ETEC Inc.
0 Kudos
Message 1 of 2
(2,649 Views)
> I'm probably being dense and missing something obvious, but I can not seem
> to find a control path that accomplishes what I need. My Operator
Interface
> only has references to a SequenceFile and corresponding Execution objects.
> Is there a way using these two objects to access and change the runtime
> copies of the Locals and/or File Globals of the underlying process model
> sequence file?

FYI: Apparently not. At least in TestStand 1.0.x

Bob Rafuse.
0 Kudos
Message 2 of 2
(2,649 Views)