LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

A problem about calling Labview vi in VB

Hi all:

 

I meeting a problem about data transfer and parallel operation between VB and Labview.

 

Actually, I want develop a VB program, in which, the Labview VI can be called and corresponding parameters can be transferred to Labview. and then, I also can operate my system by VB program at same time. something like parallel operation (VB and Labview program).

 

 But the question is :

 

1.   If I use "Call" method of ActiveX in VB,  and the LabVIEW subvi is not stopped (for example, a loop structure), I can not do  parallel operation on VB program. The error message is "other application is busy" which is attached below. The sample codes is also attached.

2.   I tried to use other methods like "OpenFrontPanel" and "Run", but I am not sure how to transfer the parameter??

3.  Then I tried to use "SetControlValue" to set the parameters, but there is a error " := expected", which is very strange, because the statement  I wrote is followed with the help documents [ eg: VI.SetControlValue ("string", value)], why it is still need a "=" ??

 

Does anybody know something about it? Thanks a lot

Message Edited by hanwei on 11-07-2008 03:18 PM
Download All
0 Kudos
Message 1 of 6
(3,074 Views)

anybody can help me?

I really appreciate your time

0 Kudos
Message 2 of 6
(3,041 Views)
nobody knows it??
0 Kudos
Message 3 of 6
(3,027 Views)

Hi,

 

I saw that no one had posted a reply yet, so hopefully this will start some activity on this forum. Have you seen the DevZone article Calling LabVIEW as an ActiveX Server from Visual Basic? Take a look at this and let me know if this helps you at all.

Regards,
Claire Reid
National Instruments
0 Kudos
Message 4 of 6
(3,007 Views)

Hi:

 

Did you put a while loop in your labview VI?

 

Because the loop will only pass parameters out when the loop has stopped.

 

 

I encountered the same problem with a while loop in my VI,

 

but solved as soon as I removed the loop.

0 Kudos
Message 5 of 6
(2,721 Views)

I sure hope OP has solved it by now. 🙂

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 6 of 6
(2,713 Views)