Hi TS Newbie,
There are a couple of items in your operator interface that are causing you to run into problems.
First of all, you are passing an ActiveX Container Reference into the
Config Callbacks VI
and using that to set the value of the Text in your EditExpressions
ActiveX Control. The problem with that is that the "ActiveX Container
Reference" is just a basic "ActiveX" reference, and non-specific to the
control it is referencing. You can use these (and have, I see the
Resize Ctrls VI) to resize or reposition ActiveX components, or anything that applies to all ActiveX classes.
For anything more specific, like the text value of your Edit
Expressions control, you'll need to pass a reference to the actual
control itself, like you do when you connected the Debug Msg ctrl to
the
UI Control References cluster that is being passed into the
Config Exec ViewMngr
VI. If you use that UI Control Reference instead of the ActiveX
Container Reference in your callback, you can simply set the Text of
your Edit Expressions control by passing a string to the Text property
of that control (you won't have to play around with the Variant type).
I've quickly thrown together a few changes in your OI and attached the
modified version to this post. In particular, notice the Debug Msg
reference now being passed in with your ActiveX Container references to
the Config Callbacks VI. Also notice that the UI Message reference to
Debug Msg is being used to set the Text value in your callback instead
of using the ActiveX Container reference, although that ActiveX
Container reference is still being used for resizing purposes in the
Resize Ctrls VI.
As far as your normal LabVIEW String indicator is concerned, the reason
would be "swallowed up" when using it in the Executions Tab is that the
"Resize Ctrls" VI doesn't take it into account when moving the ActiveX
objects around on the page. I think if you put a string indicator next
to the "Terminate Execution" button for instance, you'll see it. Then
resize the window and watch as all the other controls resize over and
around it. If you want to do it this way, you'll need to add code to
move and resize that control in addition to the ActiveX stuff in the
Resize Ctrls VI.
Hope this helps TS Newbie, let me know if you have any questions.
Dan Weiland
Applications Engineer
National Instruments
Dan Weiland