NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

UI Message Help - Send Array to the UI via ActiveX

Solved!
Go to solution
Solution
Accepted by topic author Bill_Lewis

Hi,

 

Ignore the ActiveX message payload in your UI message. Get a reference to Thread from the uiMsg reference. Then use the Thread reference to return SequenceContext reference. (Use properties or maybe methods) Now you have a handle to the entire execution and you can use GetValue numeric array to read the array directly from the execution without "passing" any data to the UI. Sorry I'm not near TestStand or I;d post a snippet.

cc

0 Kudos
Message 11 of 14
(2,445 Views)

Thanks for all the Help! This works great now

Bill Lewis
0 Kudos
Message 12 of 14
(2,439 Views)

Thanks very much to everyone for your help, that saved months of search. 

Is it possible to post a cluster in the same way from a teststand sequence to the simple OI user interface.  The TestStand Get Property Value doesn't have cluster in its polimorphic Vi slector list.  Therefore using Thread get sequencecontext properties is not applicable in case of a cluster.

0 Kudos
Message 13 of 14
(2,363 Views)

Hi,

 

Reading and writing to a cluster/container in TestStand is an issue that is independent from the UIMessage issue. You are right the Get Property Value doesn't have cluster because cluster is a custom type.

 

You have to read the subproperties within the cluster, like GetValueNumeric(cluster.number) then GetValueString(cluster.string), etc. Or you can also get GetPropertyObject(cluster) and use that reference to read subproperties. Basically you just have to write a little extra code to do it. But after you have that code, then you **can** use Thread get sequencecontext properties to read it.

cc

Message 14 of 14
(2,355 Views)