LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

programmatically return block diagram free labels

Solved!
Go to solution

Hi,

 

I'm looking for a way to programmatically retrieve block diagram free labels for use in a report. There seems to be no option when printing a VI to html to include the free labels. The VI description is included alright and I would like something similar for the free labels. Is there a way to do this?

 

Thanks,

SMcS12

0 Kudos
Message 1 of 5
(2,880 Views)
Solution
Accepted by topic author SMcS12

Like this:

 

Get VI Comments.png

 

Note that this will actually return all the decorations on the BD, so you might need to check the error out on the TMSC node. Alternatively, you could just ask the traverse VI to look for the Text class, which is probably better. I'm also assuming that in your case you will want to use a reference to another VI.


___________________
Try to take over the world!
Message 2 of 5
(2,871 Views)

That's exactly what I'm looking for. Where do I find the subvi that returns the references to the block diagram decorations?

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

As you can see if you drag the snippet into a BD, the VI is found in vi.lib, but you can also display it in the Application Control palette if you enable scripting in the VI Server page of the options dialog.


___________________
Try to take over the world!
Message 4 of 5
(2,844 Views)

Perfect. Thank you.

0 Kudos
Message 5 of 5
(2,841 Views)