LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ActiveX Server Method Problem

LabView men help me!
I have a problem with using ActiveX Server Method object.Run(async) with
async = TRUE in MS Visual C++ program.
I want to call ActiveX Server and continue program execution.
I call this metod in program block.

COleVariant No_Wait;
..........
No_Wait.boolVal = TRUE;

pVI->Run(No_Wait);

After this operator I can not return from VI, until VI does not close, inspite
of parameter async = TRUE.
I ask your send me example how to use this metod and wait for you recomendations.

Gregory.
0 Kudos
Message 1 of 4
(2,931 Views)
I have similar problem with LabView8 acting as ActiveX server.
When I call Run(0) method from my VisualC++ program it will crash.
I have found example writen in LabView5.0 with Run(0) method and got to the point whe may program brings up VI front panel and sets up some data string fields.

Using method Call() instead of Run(0) works but it deletes all the paramters that I set up before with SetControlValue(..,..).

I know I could pass data and get results with Call(..,..) or Call2(..,..) but I have problem to build corect structures to pass to it. Are there any working examples ?
0 Kudos
Message 2 of 4
(2,817 Views)
I think I have exactly the example program both of you are looking for. Take a look and post to let us know if you have any questions. Thanks!
 
Best Regards,
 
Chris C
Applications Engineering
National Instruments
0 Kudos
Message 4 of 4
(2,804 Views)