LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Converting Labwindows 7.0 prj to Labview 7.1

I am attempting to convert Labwindows6.0 project into Labview7.0 vi. I understand to convert them to dll and create a dll library and use the call interface node. Is there a way to easily convert the UIR interface directly into labview 7.0 vis. The projects were written into Labwindows 6.0. Also, how does one apply the parameter and return value to the functions and add more then one function per Call interface node.

Thanks urgent
0 Kudos
Message 1 of 6
(3,647 Views)
Unfortunately, there is no way to explicitly convert a CVI project to a LabVIEW VI. The two languages simply don't match one-to-one on a functionality basis, making an easy conversion function impossible. Functions can be called individually (as you mentioned) from a CVI DLL by using a Call Library Function Node. However, there is no way to call more than one function from a CLF Node, and even the .fp conversion application in LabVIEW creates a separate VI for each function using the aforementioned method.

Eric S.
Applications Engineer
National Instruments
E. Sulzer
Applications Engineer
National Instruments
0 Kudos
Message 2 of 6
(3,633 Views)
You can use your UIR panels from within a DLL. Instead of having LoadPanel, DisplayPanel, and RunUserInterface in main(), put them in a function you export from your DLL. I call mine InitUIForDLL(). Return the return value of RunUserInterface.
0 Kudos
Message 3 of 6
(3,631 Views)
In addition, you may want to call LoadPanelEx instead of LoadPanel. Ex allows you link to callback functinos defined inside the dll. Another this is if you don't want the .uir file floating around and instead want it combined into the dll, go to the target settings and enable "Embed UIR Files".
Jeremy L.
National Instruments
0 Kudos
Message 4 of 6
(3,609 Views)

Does anyone know how to covert LabView projects into LabWindoes?

Sure would be nice.

0 Kudos
Message 5 of 6
(3,407 Views)

The same logic still applies: the two languages simply don't match one-to-one on a functionality basis, making an easy conversion function impossible (no matter what the direction). Similar to the reverse situation, you can build your LabVIEW VIs into DLLs and call them from CVI in order to incorporate their functionality into a CVI project.

Kind Regards,

E. Sulzer
Applications Engineer
National Instruments
0 Kudos
Message 6 of 6
(3,377 Views)