LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DLL created in LabVIEW hangs when used with CVI

This DLL works fine in LabVIEW using call library function node but when same dll used with CVI it does show LabVIEW front panel but hangs.
Any idea why?
 
 
Function:
int32_t __stdcall CD3XX_Speaker_Test(double Duration, double *Frequency,
 double *Amplitude, double *SINAD);
I have attached DLL and screenshot.
 
Duration in sec. Pass 1 or 2. Dll would return Freq, amplitude and sinad.

I used LV 8.5 and CVI 8.1

Message Edited by test_man on 07-21-2008 04:59 PM
Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
0 Kudos
Message 1 of 6
(3,219 Views)

You may also want to post your question in the CVI forum.

R

0 Kudos
Message 2 of 6
(3,195 Views)
Hello test_man,

Please refer to this KnowledgeBase article for calling LabVIEW DLL's in CVI.

Calling a LabVIEW DLL From a CVI Project

Make sure that you have followed the steps in this article before attempting to call the DLL in CVI. If you still experience the front panel hanging, try creating a LabVIEW DLL that does something as simple as displaying a message box, follow the steps in the knowledgebase, then try to call this simple DLL in CVI and see if you experience the same behavior.

If your DLL is using event structures, your front panel may be hanging because of the event structure waiting for an event to fire or processing a fired event.

Let me know if this doesn't help and you still experience problems.
Manooch H.
National Instruments
0 Kudos
Message 3 of 6
(3,167 Views)
I don't have any events. In my VI propeties if I keep widnow appearence to default then it works fine. It doesn't display front panel. But If I change that to Dialog then it hangs.
 
Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
0 Kudos
Message 4 of 6
(3,161 Views)

I have attached my labview and cvi projects here. DLL

 

http://forums.ni.com/ni/board/message?board.id=180&message.id=36951&jump=true

Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
0 Kudos
Message 5 of 6
(3,133 Views)
Hi test_man,

Let's continue this in the thread you created in the CVI forums.

http://forums.ni.com/ni/board/message?board.id=180&message.id=36951&jump=true
Manooch H.
National Instruments
0 Kudos
Message 6 of 6
(3,126 Views)