06-05-2006 02:01 PM
I am trying to capture in a JPEG file an image of a front panel indicator (in this case an XY graph). I have created an invoke node for the XY graph and wired out the “get image data” to a “draw flattened pixmap” function. Then I display in a picture indicator window the contents of the XY graph before converting the picture back to pixmap using “picture to pixmap”. This image data then gets wired into the “write jpeg file” function. The problem is that the picture is displaying the contents of the XY graph from the previous run of the VI, and thus, the jpeg file contains the same thing. When I first launch the VI its initial run results in an empty picture indicator window. I have to run it a second time to get it to display the actual contents of the XY graph. The picture window is always showing the results of the previous VI execution. Can some one explain why this happens? My front panel IS open when I run the VI.
Thanks,
Brian
06-05-2006 02:05 PM - edited 06-05-2006 02:05 PM
Message Edited by Novatron on 06-05-2006 03:05 PM
06-06-2006 10:50 AM