03-04-2009 10:48 PM
Hi,
Is there any wayin labVIEW to convert a vi to XML or any text based format.
I need all the blocks and wiring informations in the exported file.
I tried by using VI Strings:Export. But it exports only control in the front pannel. The functions in the block diagram and wiring informations are not exported.
Also, Is the file format of VI is an open one? or any documentation available for it?
If so i can read the VI file and export it to XML by myself
03-04-2009 10:57 PM
No, you cannot convert a VI to anything text based (with one small exception) and the file format is proprietary.
The exception is if you are using LabVIEW Embedded. With this very option,you can generate C code but only a subset of the LabVIEW functions are supported and it a very expensive addon.
Why do you even need to convert a VI?
03-04-2009 11:27 PM
Actually i want to show the LabVIEW block diagram in my application and execute from there.
From your replay I understand that there is no way to convert from VI format.
Also
What actually VI reference's VI Strings:Export method does?
03-05-2009 02:06 AM
You can connect to a VI via ActiveX to run the code.
Ton
03-05-2009 09:05 AM
Faisal M wrote:Actually i want to show the LabVIEW block diagram in my application and execute from there.
From your replay I understand that there is no way to convert from VI format.
I don't understand where the XML comes in. As Ton mentioned, the VI Server will allow you to control a VI. What do you mean by showing the block diagram in your application?
Also
What actually VI reference's VI Strings:Export method does?
From the Help:
Exports all the VIs specified by VI Array to a tagged text file. This method exports the VI name and description, object caption labels, object free labels, string, table, path, and array default data; listbox item names, table row and column headers, graph plot names, graph cursor names, and tab control page captions; and instance names in the polymorphic VI and selector shortcut menus.