LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Exporting XY Graphs to Word

Hello! I have a VI with about 5 XY graphs. I am trying to use the MS office report function to create a word doc, but it appears the graphs won't connect to the XY correctly. Is there an easy way to export the graphs and tables on the front panel into word?

0 Kudos
Message 1 of 4
(1,186 Views)

@mbel wrote:

Hello! I have a VI with about 5 XY graphs. I am trying to use the MS office report function to create a word doc, but it appears the graphs won't connect to the XY correctly. Is there an easy way to export the graphs and tables on the front panel into word?


So if you are just doing some data analysis by hand you can right click on the graph and select 'export image' which will open a popup and let you choose how you want to export it. If you select 'to clipboard' you can go to word and press ctrl-v and it will paste the graph into your work doc. That is the 'easy way' as you requested 

 

Using the report generation toolkit takes some trial and error to figure it out. Maybe post your VI if you want help with that. 

______________________________________________________________
Have a pleasant day and be sure to learn Python for success and prosperity.
0 Kudos
Message 2 of 4
(1,161 Views)

My VI is a bit messy, but I attached it below along with its sub VIs and data. Ergo Main will be the main VI I was exporting the graphs individually currently, but was wondering how to use the toolkit. Hope this helps, thank you!

0 Kudos
Message 3 of 4
(1,137 Views)

@mbel wrote:

My VI is a bit messy, but I attached it below along with its sub VIs and data. Ergo Main will be the main VI I was exporting the graphs individually currently, but was wondering how to use the toolkit. Hope this helps, thank you!


Ok so the next step is to dive into the report generation toolkit. There are some examples built into labview, you can select Help/Find Examples then search and type 'word' and/or 'report' and you can see all the examples. This is one for adding XY plots: 

snip.png

For testing its best to break down the functionality you are trying to test into its base elements. For example you want to make a plot in word, you could make the above code into a sub vi into which you could pass the XY data, then every time you need to add a plot you can just call this sub VI and pass it the plot data. Its easy to customize this small bit of code to do exactly what you want and test it without having to call the rest of your code. 

______________________________________________________________
Have a pleasant day and be sure to learn Python for success and prosperity.
0 Kudos
Message 4 of 4
(1,131 Views)