05-27-2009 04:51 AM
Hello !
i wrote a series of Labview DLL to be embedded in a VB6 software (I didn't have any choice ...). Basically when I press "START" in VB6, the DLL is called, a Labview windows appears during the signal acquisition, then the DLL is clased and back to VB6 ! It is working perfectly ... except that while the DLL is running, I cannot do anything in the VB6 interface (like calculations with previous data sets, etc...). Is there a way to call DLL or programme my Labview Data acquisition in a totally different way to enable me to do soemthing in parallel with the VB6 front panel while acqusition with my NI DAQ is running ?
Thanks !
Nicoals GINET
05-29-2009 03:43 AM
Hi,
When you call a DLL in a VB application, the VB application will be "paused" until the DLL is finished.
It is the normal behaviour, and it is the behaviour of most text langages: the instructions are executed one after another, and an instruction is executed only when the previous instruction is finished.
If you want to run several functions/DLLs in parallel, you will have to create a new "thread" for your DLL.
You will find some documents about that on the internet or with the VB technical support.
Best regards,