LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Exporting VI content (objects and connections)

Hello everyone,
 
I would like to obtain a list of the objects AND connections of the block diagram of a VI. In other words, I would like to find out from a VI what objects, subVIs etc. contains an other VI...  Is this possible somehow?
(e.g. if we have two boolean controls, named Bool1 and Bool2, a boolean indicator, named Bool3, and these three are connected by the means of an AND gate - Bool3=Bool1*Bool2,
then I would like to obtain the content of my VI, which is either the formula Bool3=Bool1*Bool2,  or something like a date packet
Controls: Bool1, Bool2;
Indicators: Bool3;
Objects: AND gate;
Connections: Bool1-1st input of AND gate, Bool2-2nd input of AND gate, Bool3-output of AND gate).
 
The Export Strings function from the Tools menu exports only a tagged list about the objects, without mentioning anything about the connections.
 
Hope you understand my question!
 
Thanks a lot for your help!
 
Lorant
0 Kudos
Message 1 of 7
(3,440 Views)
Hi Lorant,

I am not sure of that point but I don't think you can get a list of the variables declared in a VI.
About the second point I doubt even more.. I would be very very surprised if a function can tell you how the variables are linked inside of a VI...

Sorry...

We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 2 of 7
(3,427 Views)
It almost sounds like you're trying to perform the old "text-style" documentation of a LabVIEW program. Also known as "can I generate C-code equivalent of my LabVIEW code?". Is this for documentation purposes?
0 Kudos
Message 3 of 7
(3,408 Views)
Hy,
 
no, it's actually not for documentation purposes, but does it matter...? I've found a good way of evaluating such a content of a diagram, but in Simulink. The Simulink saves the model in an .mdl file, where such a list about the object and connections exist, so it seems reasonable to create the model in Simulink, and the evaluation of it in LabVIEW....
0 Kudos
Message 4 of 7
(3,398 Views)
There is just one point I'm just thinking about that... for instance when you have a multiplication, if you right click on the output part and choose "create indicator", an indicator is create with a default name "X*Y"... that sort of mean that LabVIEW can, in some cases, tell you where the outputs come from, no ?


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 5 of 7
(3,394 Views)
I think there MIGHT be a chance that this is possible using LV scripting.

Try searching the LAVA user goup forums for scripting.  If I remember correctly, I think they were able to access "Wire" objects (with names etc.)

Hope this helps

Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
Message 6 of 7
(3,392 Views)
You can also view the VI hierarchy. This will show a tree of all of its subVIs and custom controls (anything saved as .ctl). It doesn't give any information about the logic involved in the VI.
 
Select the menu item Browse >> VI Hierarchy (LabVIEW 7.1 and before) or View >> VI Hierarchy (LabVIEW 8.0) to see this information.
Jarrod S.
National Instruments
0 Kudos
Message 7 of 7
(3,372 Views)