Sunday 15 March 2009

Save Multiple Waveform Graphs Into A Single JPEG File

Still remember the time i struggled very hard to save 4 waveform graph into a single jpeg file as my customer need the solution urgently.

I was able to save a waveform graph into a jpeg file but not for four waveform graphs. Luckily, the asean.support@ni.com team managed to find the solution for my problems and saved my day. And, i would like to take the opportunity here to share it out.

Firstly, get the image from each Waveform Graph. Then, use the Unflatten Pixmap.vi to unflatten each image data into 24-bit pixmap. Append them together as an array and save them as one jpeg file. The sample shown below can append each image at bottom or to the right.

Block Diagram for Image append to the right:



Result of jpeg file:



Block Diagram for Image append to the bottom:



Result of jpeg file: