LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

get front panel image method doesn't capture the image correctly

I'm trying to capture a front panel with four identical waveform graphs, one below the other with X and Y grid lines showing. The top three are fine but on the bottom one some or all of the Y grid lines are missing (it varies). I've tried saving the image as a .bmp and displaying it on a picture indicator via the draw flattened pixmap vi.
0 Kudos
Message 1 of 13
(3,852 Views)
Hi Michael,
try saving the image in .PNG format. You should have a better result.
Good luck,
Alberto
0 Kudos
Message 2 of 13
(3,852 Views)
Thanks for your help. I've tried the various file formats. The fact that displaying the image directly on a picture indicator doesn't work implies to me that the Get Front Panel Image method is at fault. I've attached a library with an example of what I'm doing.
0 Kudos
Message 3 of 13
(3,852 Views)
Hi Michael,
I'll be out from my office for some days and I don't have LV7 on the pc I'm working. Would you convert your vi in LV 6.1?
Alberto
0 Kudos
Message 4 of 13
(3,852 Views)
0 Kudos
Message 5 of 13
(3,852 Views)
Hi again,
could you attach a faulty image you get?
Your vi doesn't seem to have any problem to me.
The saved image has all the grid lines as the graphs, see attached.
I've tried it on WIN2K OS. What you can try is changing the Compression level: you can set it from 0 (no compression) to 9 (max. compression); by default it is set to -1 (no change) which should correspond to 5.
I can add that I've used your same method for creating .png files from LV graphs in a huge application. This has been correctly working on different pc's with different Windows versions.
Let me know,
Alberto
0 Kudos
Message 6 of 13
(3,852 Views)
I've attached a screen dump and a saved .png. Note the bottom graph and the border of the cluster next to it.
Thanks,
Mike
Download All
0 Kudos
Message 7 of 13
(3,852 Views)
I see the problem. I can't really figure out the reason.
I think you should report it to the NI Support.
In my previous post I was supposed to attach the png file created with your vi, but something went wrong; I try again. As you see the image is correct. I also tried it on another pc with LV 6.1 and still no problem....
Alberto
0 Kudos
Message 8 of 13
(3,852 Views)
I agree, I would go to ni.com/ask and submit a request. A few pointers would be to check whether it happens on different OSs or LabVIEW versions. Also check your video acceleration, though I doubt that will have any effect. Also, does it only happen with graph controls?
0 Kudos
Message 9 of 13
(3,852 Views)
works correctly for me on XP Home, LV 6.0.2, 6.1, 7.0
0 Kudos
Message 10 of 13
(3,852 Views)