LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to add labview frontpanel into visual studio

I'd like to add the whole frontpanel of my simple labview programm into the frontpanel of my visual studio programm.

I allready created the DLL and added it to my visual studio programm, and now, I'd like to view the vi frontpanel in my visual studio form.

 

Is there any possibility to do something like that without using the measurment studio .NET?

 

 

Thanx a lot!

0 Kudos
Message 1 of 3
(2,753 Views)

labview_vr wrote:

I'd like to add the whole frontpanel of my simple labview programm into the frontpanel of my visual studio programm.

I allready created the DLL and added it to my visual studio programm, and now, I'd like to view the vi frontpanel in my visual studio form.

 

Is there any possibility to do something like that without using the measurment studio .NET?

 

 

Thanx a lot!


Maybe. You could try to get the Windows handle to the LabVIEW front panel using Windows API functions, and also using Windows API functions to parent that window into your application window. It could work but might be quite a tricky and not very stable solution since your Visual Studio application window message loop really is in another context than the LabVIEW runtime engine window, the VI uses.

Message Edited by rolfk on 03-12-2010 01:42 PM
Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 3
(2,727 Views)
Hello labview_vr,


the easy solution: you can configure the VIs in your DLL so that their front panels will be opened when the corresponding function is called. Additionally, the front panel can be configured so that it will be closed again when the VI code has finished execution. Minor drawback: the VI front panel will float atop of your VS application...

vi_props_windowapp_customize.gif

Best regards,
Sebastian
0 Kudos
Message 3 of 3
(2,720 Views)