LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview DLL running under VB6 ... Background task possible ?

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

0 Kudos
Message 1 of 2
(2,799 Views)

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,

Thomas B. | CLAD
National Instruments France

0 Kudos
Message 2 of 2
(2,771 Views)