I am not sure why this will not work.
I have a VI that talks to a widget. This VI, call it CP.VI (for Control panel) will allow a user to punch some keys key on the front panel that show up in one of the indicators. When the user punches the "enter" button the string that was built up in the indicator is sent to the widget. THe widget responds and the results show on the screen.
The CP.VI works fine. No problems there.
The customer then wanted to get the user out of the loop so I wipped a VI that does the button punching. It does the button punching by using control references to punch the right keys and look for the response.
This worked great as well. Give the "button Puncher.VI" a list of commands and it can breeze through all of the commands and tell you what you got back from each command.
All of this was great until...
We tried to port this functionality to VB.
We crated a dll from the "button puncher" so we can pass the dll a command and check the response coming back.
I simplified the button puncher and set it for "show front panel when called". When the button puncher VI is called I can see the data that was passed in from VB. I can see a "dummy" response returned to VB from the dll. I can also view an error cluster on the FP that shows me that there where no errors in any of my refnum operations.
The problem is that when I write the "value" property of any control, it nver shows up in the front panel of the CP.VI.
No errors!
Same applies to reading the "value" property.
It seems the dll when called in VB is running in a completely different memory space or something.
It reminds me of posts by others that it is possible to run multiple copies of a VI by creating a dll and running that.
I believe I will end up having to do active-X from VB to punch the buttons but I am not sure.
Anyone understand what is happening to me and would care to teach me something?
Admiting his ignorance,
Ben
(last time I touched basic it was BasicA)
P.S. In all cases the CP.vi is up and running.