LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Bug when copying/pasting a graph image from LV to MSW

When I try to copy a graph image, cut from a LV front panel, to WordPad or MSWord, I obtain unexpected results : on some machines, if the autoscaling is on, the copied image is always rescaled ; on others, the curve is drawn out of the graph pane... (LV 7.1, LV 8.0
That's rather annoying when you try to prepare a rapid presentation to demonstrate LabVIEW ease of use !..
 
Chilly Charly    (aka CC)
Message 1 of 8
(3,658 Views)

Hi Chilly Charly,

could you send me a vi and a word document example in which you deal with this kind of behavior.

Thanks a lot,

Benjamin M
NIF

0 Kudos
Message 2 of 8
(3,623 Views)
The attached vi generates a sine wave, with 20 periods.
After generating the wave, use the zoom tool to display only  a portion of the curve, then select the graph indicator and paste it to MS word or WordPad.
If you are lucky, you will obtain the original scaled graph (below on the right), and not the selected graph portion (below left).
If you are unlucky, you may get a graph with the curve  drawn outside the graph area !.. (not able to reproduce it on this machine, but I hope you trust me !..)
A work around is to deselect the Autoscale property.
The bug is observed both with LV 7.1 and LV 8.0
Chilly Charly    (aka CC)
Message 3 of 8
(3,613 Views)
Hi Chilly Charly,
 
Indeed, when I copy and paste the graph, I obtain the original scaled graph like you and not the selected graph. I will escalate to NIC Branch.
 
Thank you,
 
Benjamin M
NIF
0 Kudos
Message 4 of 8
(3,607 Views)

Hi Chilly Charly,

A workaround to this bug could be to use the invoke node "Get image"  to save the graph to a jpeg file. Using this invoke node the image is saved with the zoom property.

Regards,

Benjamin

0 Kudos
Message 5 of 8
(3,593 Views)


Benjamin M a écrit: ...A workaround to this bug could be to use the invoke node "Get image"  to save the graph to a jpeg file. Using this invoke node the image is saved with the zoom property.
This solution works perfectly at run time, but of course can't be used on a stopped vi. I agree that this bug is only a minor bug, and that disabling autoscale is already a simple workaround. However, it can (should ?) be regarded also as one more bug affecting graphic display... And as usual, I wonder what sort of other malfunctions this could be symptomatic of ?..
Chilly Charly    (aka CC)
Message 6 of 8
(3,585 Views)


@chilly charly wrote:

And as usual, I wonder what sort of other malfunctions this could be symptomatic of ?..


I think it is a safe assumption that this is a bug in the evaluation of the clipboard image at the time of the copy operation which ignores the current zoom setting. As such I would not expect this bug to have any influence outside of graphs which have been zoomed. In fact it shows us that the copy operation is not just making a screen dump of the image buffer but really evaluating the image anew and that I would consider a bonus.

Of course there are many more other bugs in LabVIEW but to expect this bug to cause other problems in non-zoomed graphs would seem quite paranoid to me. Maybe check out for the black helicopters circling above your house 😉

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 7 of 8
(3,560 Views)


rolfk a écrit: ...Of course there are many more other bugs in LabVIEW but to expect this bug to cause other problems in non-zoomed graphs would seem quite paranoid to me. Maybe check out for the black helicopters circling above your house...

Hey ! Wait a minute ! You mean these huge black things circling around are not helicopters ?
Chilly Charly    (aka CC)
0 Kudos
Message 8 of 8
(3,550 Views)