03-28-2007 12:33 PM
03-29-2007 10:26 AM
03-29-2007 11:52 AM
Thanks a bunch. This fixed the problem. One thing I noticed about the reference you sent me is that the associated knowledgebase article somehow got filed under:
LabWindows/CVI Development Systems>>Full Development System
In any case, thanks again;
Mike...
03-29-2007 02:00 PM
Oh yes, one more thing... Now I am getting two windows opened, only one of which shows as running. As soon as I create the object for my application
Set lvapp = CreateObject("BLOBServer.Application")
a window opens that is not running. When the macro logic gets to where the vi is actually being run
Call vi.Call(paramNames, paramVals)
a second window opens (over lapping the first one) that is running. When it finishes, both windows close.
This at least doesn't generate an error but it is still not the kind of interface that I would want a user to see.
Mike...
03-29-2007 02:24 PM
03-29-2007 03:20 PM - edited 03-29-2007 03:20 PM
No, that would have been too easy... ![]()
The issue is that creating the object opens a window that is not running because it was built not to be running. Next when I get to the call statement the VI starts running which causes it to (among other things) auto-center. The problem is that for some reason the screen doesn't fully update - hence you see two images of what is probibly the same window.
My solution is to create a third VI that looks like a typical small "Please standby I'm doing something" dialog, and does nothing but wait 500 msec and then stops and closes its window. In the builder, I set this new VI as the top level VI and make the one that was the top level VI a dynamic VI - and I make sure that the "Run on Open" strap is set for the new top-level VI.
At run time what happens now is that the object creation statement opens this new VI, which immediately begins running. A few msec later the VI that really does all my application's heavy lifting launches and pops-up over the top of the new VI's window. Then 500 msec after it was launched, the new VI stops running and quietly goes away. All is well with the world...
Mike...
Message Edited by mikeporter on 03-29-2007 04:21 PM
03-29-2007 04:07 PM
03-30-2007 12:02 PM
04-02-2007 10:44 AM - edited 04-02-2007 10:44 AM
Message Edited by MattP on 04-02-2007 10:45 AM