LabVIEW APIs Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

how to get the image of a block diagram constant?

I have a cluster constant on my block diagram and I'm trying to get it's image to display it in a picture control.

We can get the image of a cluster control but that not what I want... Is there a way?


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

Epictetus

Antoine Chalons

0 Kudos
Message 1 of 6
(3,644 Views)

You can do what the CCT does - get an image of the entire diagram, then cut out just the section you want.


___________________
Try to take over the world!
Message 2 of 6
(1,139 Views)

True, great point! I hadn't thought about it :-o

Beside that is there any "pure scripting way"? I mean... for a cluster control there are methods to get the fp & bd images, I was hopping to find a method to get the bd image for a cluster constants.

Example_VI.png


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

Epictetus

Antoine Chalons

0 Kudos
Message 3 of 6
(1,139 Views)

Get Image methods are relatively new for block diagram elements. Eariler there was only the method for whole the diagram. So we may expect that in future vesions it will be implemented for constants as well...

0 Kudos
Message 4 of 6
(1,139 Views)

If you get the full block diagram image, you can crop it programmatically by using the position and bounds properties of the cluster to determine where to crop.

This account is no longer active. Contact ShadesOfGray for current posts and information.
0 Kudos
Message 5 of 6
(1,139 Views)

Yep, I used the CCT function that does exactly that

Clipboard01.png


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

Epictetus

Antoine Chalons

0 Kudos
Message 6 of 6
(1,139 Views)