LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Printing a subVI to a file

Hi there,

 

I need to print a plot and the legends to a file. Saving the plot as the available Simplified Image has problem showing the legends (only shows the first one). Is there any solution for this problem?

 

Now I have defined a multi-column listbox for the legends. To print them all, I have defined a subVI with the desired format to be printed (the method 3 explained in http://digital.ni.com/public.nsf/allkb/981C98819DBB89FE862569610046CFB8). However,  Labview crashes when I print the subVI to rtf or html.

 

1. How I can fix this problem?

 

2.  "Print at Completion" is perfect for my purpose, but I need this to work as print to file. Is this possible?

 

3.  What if I want to print to other formats, such as .eps?

 

4. As far as I know, to print a control (like a graph...), the easy option is Saving the Simplified Image. Is printing high quality pictures DIRECTLY possible, maybe in newer verisons of LABVIEW?

 

Thank you very much for the helps.

 

-- Reza

 

0 Kudos
Message 1 of 5
(2,728 Views)

Hi Reza,

 

you can save the whole frontpanel to a file. It's a method of the vi...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(2,712 Views)
Thanks GerdW. However, how we can do this for .eps format output?
0 Kudos
Message 3 of 5
(2,687 Views)

Hi rayt,

 

well, the front panel is a pixel based graphic. So you get pixel based pictures...

 

Using the available properties/methods that's all you get.

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(2,681 Views)

Thank you GerdW. I guess this is the case for a single control too. Right?

 

In the Print VI method, there are options for sending the VI image to a postscript printer. Is it possible to redirect this to a ps file? One way should be having a "Write To File Printer" in the OS printer list and use it (I have not test this yet). But this is not very convenient as this is something to be done out of Labview.

 

Thanks again,

-- Reza

 

 

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