06-02-2009 03:59 AM
Hi
I need to scale an image in the form of a JPEG file and place behind a graph indicator. Placing an image is no problem but I cannot find a property node such as zoom that will allow scaling. This is the preferred method.
A second option could be to scale the plot size to that of the image, but this would have the drawback of not rescaling to different monitor screen resolutions.
Final option would be to record the desired data in a CSV file format and display both plots simultainiously, that I really do not want to do.
Any help would be appreciated.
Mike
Solved! Go to Solution.
06-02-2009 05:10 AM
06-02-2009 05:55 AM
Perhaps you can make something out combining these two examples
\examples\picture\pictctl.llb\Picture Control - Zoom Attribute.vi
\examples\general\graphs\Plot Images.vi
06-02-2009 06:57 AM
Hi GerdW
I am not sure how to merge the pic control into the Graph, as putting it over the top will loose the actual plot function and graticule lines(Allthough the lines will be on the image too).
As for displaying the image seperately, the differencies are quite small and are not easily interpreted by the operator visually. That is why good registration is absolutely essential.
Mike
06-02-2009 07:30 AM
06-03-2009 04:03 AM
Hi GerdW
I have searched all the prperty nodes for the waveform graph indicator and also XY graph indicator and cannot find anything that resembles the background other than BG Color which is set to 0 (Black).
I also could not find where on the front panel VI properties I set the Z order (or placing thing at front / back). On my example I simply placed the Graph on the front panel last covering most of the picture control.
Mike
06-03-2009 04:30 AM
Take a look at my picture
06-03-2009 05:05 AM
Thanks
That works, however it means making the whole graph outline transparent, technically it will do, but presentation is not so good.
Thanks again
Mike
06-03-2009 08:19 AM - edited 06-03-2009 08:21 AM
Hi MHR,
"however it means making the whole graph outline transparent"
Well, that's what I meant when I wrote "put it behind the graph (make the graph background transparent...)"
"presentation is not so good"
In which way? This way you can make very nice frontpanels where the picture is fitting seamless into the graph! Remember: from LV8+ on you can also put a picture programmatically into the background of a graph (atleast into the plot area).
And, last but not least, please don't mark your own messages as solutions...