LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Exporting Vi t oXML

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

0 Kudos
Message 1 of 5
(3,506 Views)

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?

0 Kudos
Message 2 of 5
(3,503 Views)

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?

0 Kudos
Message 3 of 5
(3,492 Views)

You can connect to a VI via ActiveX to run the code.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 4 of 5
(3,467 Views)

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.

 

0 Kudos
Message 5 of 5
(3,437 Views)