07-11-2023 10:34 AM
I am exporting the results of an XY Graph as an image using the Export Image Invoke Node. This method only allows users to export as .bmp, .emf, .eps, and .pict. I want to export a .png, so I worked around this issue by writing the .bmp file, reading its image data, deleting the original .bmp, and replacing it with a .png (using Read BMP File.vi and Write PNG File.vi). If possible, I would like to avoid ever having to write the .bmp, as it is about 15-20x the size and just takes up extra time for a file I am never going to use. Is there a better way to do what I am trying to do?
I have attached my VI in case my process wasn't clear enough (sorry for the mess of wires)!
Solved! Go to Solution.
07-11-2023 10:43 AM
Use invoke node Get Image instead of Export Image. Then you can use Write PNG File.vi
07-11-2023 10:49 AM
That's perfect. Thanks so much!
07-11-2023 11:10 AM - edited 07-11-2023 11:13 AM
Just to add some details, here is a snippet of a VI I keep in my reuse library. It does use two other VIs from my reuse, but I added notes to state what they do.