LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

DLL created in LabVIEW hangs when used with CVI

 
I have tried with other IDE like delphi and it hangs there too.
 
Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
0 Kudos
Message 1 of 15
(5,454 Views)
Hi,

maybe here.
0 Kudos
Message 2 of 15
(5,447 Views)

Thanks for the response but that is not my problem. I can compile and run fine and I also see labview front panel when dll called but then it hangs there.

 

Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
0 Kudos
Message 3 of 15
(5,445 Views)
I have attached my labview project and cvi project with very simple vi.
labview DLL hangs when called from cvi if window appearence in VI properties is dialog. It works if default but it doesn't show front panel. (which is what I need)
 


Message Edited by test_man on 07-23-2008 04:29 PM
Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
0 Kudos
Message 4 of 15
(5,413 Views)
Here is my VI.
Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
0 Kudos
Message 5 of 15
(5,412 Views)
Any CVI/labview experts out there?
Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
0 Kudos
Message 6 of 15
(5,373 Views)
Hey test_man,

1. Go into VI Properties»Window Appearance then click Customize.
2. Change the Window Behavior from Modal to Default. Also check Show front panel when loaded.
3. Click Ok to exit the Customize window.
4. Click Ok to exit the VI Properties.
5. Save All and rebuild the DLL.
6. Call the DLL in CVI.

This should pop the front panel up without hanging. I don't know why it hangs when the Window Behavior is set to Modal but I will look into it. I've attached an example Project from which you can build a DLL that I have tested in CVI.
Manooch H.
National Instruments
0 Kudos
Message 7 of 15
(5,368 Views)

Hi Manooch,

 

Did you get chance to look in to this issue further?

 

Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
0 Kudos
Message 8 of 15
(5,139 Views)

Hi test_man,

 

I have looked into this further, something else I found out is that this behavior does not occur if you run your program in Release Mode. None the less, I have informed R&D of this issue. They will take a look at it to try to find out why it's behaving this way in Debug Mode, and if it is unexpected behavior, which I believe it to be, then they will most likely attempt to fix it in a future release of CVI.

 

Were you able to get it running properly by changing the Modal Window Behavior to Default Window Behavior as I explained in my previous post?

Manooch H.
National Instruments
0 Kudos
Message 9 of 15
(5,116 Views)

Yes, It worked after I followed your instructions. Thank you.

So you think it is CVI debug mode issue and not labview issue?

 

As I mentioned same issue happened in delphi too.

Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
0 Kudos
Message 10 of 15
(5,112 Views)