LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
louise85

Tool to convert visual studio 2008 program to labview VI

Status: Declined
Programming issue. Calling text based code compiled as a dll is better and easier.

I Have already designed a program in Visual studio 2008 to control the movement of some linear stages.  In the future we want to create the program in labview to integrate it with our other program's which run labview.  Is there a tool which can convert the VS straight to a labview VI?

7 Comments
Intaris
Proven Zealot

"Visual studio 2008 program" can mean a whole lot of things..... I don't see the time and effort for such a thing (ignoring the difficulties involved) would be worth it.

rolfk
Knight of NI

Well the mapping between a Visual Studio project and a LabVIEW project is so very different that the little such an automated tool could do is definitely not worth the trouble. What would you want to translate?

 

- Visual Basic, C, C++, C#, J or whatever source code into LabVIEW VIs? Maybe in 100 years when we have true artificial intelligence!

- UI Builder resources into front panels? Well in theory maybe doable in practice however of little benefit.

 

Remains the actual project organization itself, but with all the project contents being excluded by above criteria, what good does that?

Rolf Kalbermatter
My Blog
altenbach
Knight of NI

Hey, I still use Fortran in visual studio. 😉

 

(... Well, maybe Darin could expand his Math Node to also parse Fortran and other text based code into G. :D)

 

Just kidding, of course!

 

Your best bet is to use visual studio to turn your irreplaceable text based code into a DLL, the use the dll it in LabVIEW. That's what I do!

Technico
Member

Hi,

 

I can imagine that for instance someone has designed a GUI panel with Visual Studio and

then wants to convert this to a LabVIEW front panel (only GUI, without the code !!).

And/or maybe the other way around... but both cases would probably fail on some special GUI-items like waveforms, ...

louise85
Member

Thanks,  I will turn my text based code into a dll and try that. Thanks for the help

G-Money
NI Employee (retired)

The amount of effort needed to completely map and optimize code switching from Visual Stuido to LabVIEW wouldn't make sense when creating a dll and calling that from LabVIEW is straight forward.

G-Money
NI Employee (retired)
Status changed to: Declined
Programming issue. Calling text based code compiled as a dll is better and easier.