LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

need help taking postscript format and displaying it on the front panel as an image?

I'm getting a postscript file(.ps)from my vi. I want to recreate the image from the video analyzer to the front panel of my vi.

inclosed is my vi and a word doc. of the retreaved information in postscript format.
Download All
0 Kudos
Message 1 of 3
(2,779 Views)
Awa-

Thank you for posting on the Discussion Forums.

Postscript files are quite complicated. They contain a combination of vector line data, pixel image data, and font type (without embedding the actual font) information. This makes the *.ps or PostScript file very flexible. In order to display a ps file in LabVIEW it would first need to be converted to a jpg, gif, png or one of the other LabVIEW supported image formats.
I can only make suggestions as to how you could achieve this. One way may be done using a 3rd party function call.

Good Luck,
Erik
0 Kudos
Message 2 of 3
(2,779 Views)
I have a little VI that will do this for you if you have GhostScript installed. Ghostscript is a postscript interpreter for all platforms and is GPL? licensed, but it may work for you.

Notes on the VI: you may have to change the path to the ghostscript executable depending on your setup. Otherwise it will ask you for a .ps file and then convert it to a png (in the temp directory) and then LabVIEW will read the file in and render it to a picture. Enjoy.
0 Kudos
Message 3 of 3
(2,779 Views)