06-14-2010 03:53 PM
Hello all,
In my application, I have to run a Labview executable eith the Front Panel minimized, and it is not possible to run it unminimized or to use a Front panel property node to momentarily set the Front panel state to standard and then back to minimized during the get image invoke node
get image invoke node does not return an image when the front panel is minimized
what can we do to resolve this problem ?
I have an example VI that I have atached.
Steps to reproduce:
1. click run
2. specify the name of a jpeg output file within 15 seconds
3. wait for first few snapshots to occurto occur
4. minimize
5. wait for next snapshot to occur
expected result:
you get correct spanshots of the table after steps 3 and 5
actual result:
no snapshot after step 4
any help would be greatly appreciated
thanks in advance
JS
06-14-2010 04:28 PM
This is by design, and it is documented. From the Help on the Get Image method:
If a front panel is not visible, LabVIEW does not update the values in the objects on the front panel. If you call a VI whose front panel is not visible and you use the Get Image method to create an image of a front panel object, the image does not reflect any value changes that occurred when you ran the VI.
joe s wrote:
what can we do to resolve this problem ?
Don't minimize the front panel.
Other comments:
1. click run2. specify the name of a jpeg output file within 15 seconds
Or... a better solution is to feed the path into a shift register. If the path is initially empty then the Write JPEG VI will ask for a file, and the path output of that VI will be the new path that you can feed to the shift register on the right.
Also, on the left you are writing a value to the indicator and also using a property node. This is redundant.
06-14-2010 05:01 PM
Sorry smercurio, but the Help says also : "If you want the image to reflect value changes, make sure the front panel is open before any values change. If you do not want to display the front panel but want the image to reflect value changes, create a Property Node from any front panel terminal on the block diagram of the VI for which you want to create a front panel control image."
Actually this seems to be a bug, specific to the Widows platform, since, on my Mac, Get image behave as described in the Help, and the image is correctly saved. The same vi, running on a PC, returns only a small chunk of the table control.
06-14-2010 05:16 PM
07-08-2010 03:11 PM
A similar problem was reported via CAR 35573. I've updated that CAR with your information. If it turns out the two issues are not related, a separate CAR will be created.