02-28-2024 08:29 AM - edited 02-28-2024 08:31 AM
Trying to reproduce @wiebe's example
What is the name of the function used to transform the cluster and color box into a picture?
02-28-2024 08:39 AM
@mthheitor wrote:
Trying to reproduce @wiebe's example
What is the name of the function used to transform the cluster and color box into a picture?
02-28-2024 08:41 AM
I found it, it's the Draw Rectangle.vi
But now I have another question:
I'm using the "Get Image" invoke node to get image from two 2D graphics in the Front Panel
How can I merge these two images into a single png file?
02-28-2024 08:54 AM
@mthheitor wrote:
I'm using the "Get Image" invoke node to get image from two 2D graphics in the Front Panel
How can I merge these two images into a single png file?
It depends from what you needed. How to "merge" - side by side, or something else? Try to draw both images into single picture, then convert it to Pixmap, then save to PNG using Write PNG File, that is.
02-28-2024 12:54 PM
Yes, I want to get both XY Graphs in a single .png file, one above the other like in Fig.1
LabVIEW can export one graph using the instructions "Get Image" + "Write PNG File.vi" (Fig. 2). This process it's very simple and uses only one wire.
My initial questions are:
1. Is there a way to combine the "Image Data" of both XY Graphs?
2. Or do I need to use the Invoke Node "Get Image", convert the "Image Data Cluster" using "Unflatten Pixmap.vi" (Fig. 3) before anything else?
02-28-2024 11:31 PM
@mthheitor wrote:
Yes, I want to get both XY Graphs in a single .png file, one above the other
The simples way to do this is something like that:
In horizontal direction will be a little bit more complicated, but also possible, of course.
02-29-2024 02:14 AM
@Andrey_Dmitriev wrote:
@mthheitor wrote:
Yes, I want to get both XY Graphs in a single .png file, one above the other
The simples way to do this is something like that:
And this will work in assumption that you have exactly the same width of the both graphs. If not - then you have to copy line by line and fill the gap on smallest graph.
02-29-2024 10:30 AM
Maybe you could put both graph on a Tab control, and call Get Image from the Tab instead of merge 2 images.