LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Copy picture of graph to clipboard through run-time shortcut menu

Hi,
I have following problem. I would like to copy picture of graph to clipboard through graph “run-time shortcut menu”. It’s easy when I want copy exactly what I see. There is an Item Tag: APP_SC_COPY_DATA. That works nice. Try an example1.vi. (Run then right click on the graph...)

But problem is when I want to change the graph appearance before copying (only change the colour of the graph to be more printer-friendly). I have created a subVi with copy of the graph with changed colour. But how to simulate for the graph inside the subVi same runtime shortcut event? How to call APP_SC_COPY_DATA of subVi graph from outside Vi?

I hope I’ve explain it clear.

If you have better method for clipboard copying tell me.

Thanks

Message Edited by jochynator on 08-03-2006 11:48 AM

jochynator
LV 8.0.1, WinXP Pro
0 Kudos
Message 1 of 17
(4,314 Views)
You can use Invoke node => Get Image
to get an image of the graph/chart.
 
Use Export Image to put the image onto clipboard.
 
George Zou
0 Kudos
Message 2 of 17
(4,300 Views)
Hi George,
problem is that it exports only black and white scales.

Message Edited by jochynator on 08-04-2006 10:11 AM

jochynator
LV 8.0.1, WinXP Pro
0 Kudos
Message 3 of 17
(4,295 Views)
You should use GetImage Not ExportImage.
I modified you VI.
 
 
George Zou
George Zou
0 Kudos
Message 4 of 17
(4,283 Views)
Thanks,
I know how to use GetImage, but I want copy the graph to clipboard!
jochynator
LV 8.0.1, WinXP Pro
0 Kudos
Message 5 of 17
(4,281 Views)
I told you in my previous post that you need Image Toolbox at do that.  See the link in my previous post.
 
 

Message Edited by zou on 08-04-2006 03:39 PM

George Zou
0 Kudos
Message 6 of 17
(4,280 Views)
I'm sorry, I thought the link is only a part of your signature.
Is our image toolbox available for LV8 too? There is no demo for LV8. Is possible to buy only mentioned vi?

Thanks for reply
jochynator
LV 8.0.1, WinXP Pro
0 Kudos
Message 7 of 17
(4,274 Views)

Yes.  It's available in LV8.  You've to get the hold package.

 

George Zou
0 Kudos
Message 8 of 17
(4,271 Views)
And is possible to try a demo first don't to buy a pig in a poke? 🙂
jochynator
LV 8.0.1, WinXP Pro
0 Kudos
Message 9 of 17
(4,268 Views)
jochynator,
       I have taken a look at your VIs and still don't see exactly what you would like to do.  Do you want to programmatically print the graph?  If not, you can just paste the image into a picture editor and make any changes you need, and then print it from there.
 
Have a good weekend,
 
Nathan
0 Kudos
Message 10 of 17
(4,228 Views)