11-07-2008 03:17 PM - edited 11-07-2008 03:18 PM
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
11-09-2008 08:31 PM
anybody can help me?
I really appreciate your time
11-10-2008 09:32 AM
11-12-2008 08:24 AM
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.
07-01-2013 04:26 AM
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.
07-01-2013 05:28 AM
I sure hope OP has solved it by now. 🙂
/Y