LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview dll

Hi
Do a labview DLL run in its own thread ??
My Visual C program freeze when i call a function twice when last function
call is not finnished, what can i do to prevent that??
0 Kudos
Message 1 of 4
(3,592 Views)
I think the best way of avoiding the program to continue until something finishes is using a sequence. Place a sequence with only one frame, put the dll call on it, and pass return data out of the sequence. The program won't continue until data is passed out.
Hope this helps
0 Kudos
Message 2 of 4
(3,592 Views)
This doesn't work
Understand my right!
I'm building a dll in labview with the application builder, then i'm putting
the DLL in my project in Visual c++.
But when i call a function in the dll twice witout the first call is
fininish my c program hang.
I think i have to make a thread protection or so.
My question was does a labview dll run in its own thread??

Best Regads
Esben

"Gorka Larrea" wrote in message
news:50650000000500000006290000-986697009000@quiq.com...
> I think the best way of avoiding the program to continue until
> something finishes is using a sequence. Place a sequence with only one
> frame, put the dll call on it, and pass return data out of the
> sequence. The program won't continue until data is passed out.
> Hope this helps
0 Kudos
Message 3 of 4
(3,592 Views)
> Understand my right!
> I'm building a dll in labview with the application builder, then i'm putting
> the DLL in my project in Visual c++.
> But when i call a function in the dll twice witout the first call is
> fininish my c program hang.
> I think i have to make a thread protection or so.
> My question was does a labview dll run in its own thread??
>

Try making the VI reentrant.

Greg McKaskle
0 Kudos
Message 4 of 4
(3,592 Views)