04-17-2009 10:48 AM
I am running Labview 5.1.1 and I want to save the image of my front panel to a JPEG. The front panel contains 3 charts and a cluster of test data. It is a front panel of a subVI that I send the data to from my main VI and recreate the graphs in the subVI using history data attribute node. I then use the print at completion setting to print the front panel. However now I also want to save this image.
04-17-2009 11:23 AM
Hi BME,
standard answer would be to use a invoke node "Get FP image" followed by one of the image write functions...
As you are still using LV5.1 (atleast LV6.1 is available license-free in Germany) , you should look for those items. I'm not sure as they might be added in later LV versions...
04-17-2009 11:32 AM
04-17-2009 11:48 AM
Hi BME,
"how do I open the reference to that subVI"
- using "Open VI reference" makes that part really easy
"how to get a file path into the subVI"
- Do you know how to make connections between vis in general? If not you should take the free online courses on NI's website in the academics section!
Otherwise you make a path control in the subvi, connect it to a terminal of the connector pane and wire the path in the main vi...
04-17-2009 11:58 AM
04-17-2009 12:02 PM
Hi BME,
I would put the invoke node into the subvi, no need to get a reference the "hard" way (that's really easy in the subvi). Then it is also easier to have a proper dataflow (timing!) to save the correct image with all plots/graphs/whatever you want to save...
04-17-2009 12:13 PM
04-17-2009 12:25 PM
BME genuis wrote:
So that means I need to add an file path input to the subVI. Then in the subVI I can add that code but why would I need to open a reference if I am already in the VI that I want to invoke?
To invoke a method you need an invoke node which in turn requires a reference so that it knows what object to act on.
Before we go any farther, have you verified that you have found the "invoke Node" in LV 5.1?
I seem to remember those coming in to LV about LV 6.0... but I may be wrong.
Ben
04-17-2009 12:37 PM
04-23-2009 12:28 PM