10-20-2016 01:26 PM
Good morning everyone,
I'm trying to write a graph into word as a line graph and it keeps coming up as either a bubble graph or a clustered column graph.
I've attached an image of the portion of my code where the graphing occurs. Is there an issue in here, or is it the format of the data? (First row x all other rows y values)
Also, it is displaying error -214.... the weird thing that happens with ActiveX sometimes. Can this be fixed by dragging the quit graph to the after close report?
Thank you,
Anthony
Solved! Go to Solution.
10-20-2016 02:31 PM
Try xlXYScatterLines for the graph type. It looks like row 0 in your data array will be the x values and the following rows will be y values, with each row being a new plot.
10-20-2016 02:35 PM
This code:
produces this graph
10-20-2016 03:05 PM
10-20-2016 03:19 PM
The is a coercion dot at the Graph Type input of Word Insert Graph.vi (the small red dot) meaning that the constant you are using is a different data type. Where does the constant you wired to this input came from? You should right-click the input and select create constant. It is probable the the enum constant that you use doesn't have the same numeric value as the one you should use thus resulting in a wrong graph type.
Ben64
10-20-2016 03:21 PM
I've accepted a solution because switching from "Insert Graph" to "Easy Graph" solved the issue for me.
On another note, you are right that versions matter.
LabVIEW 2015 32-Bit
Word 2013
Windows 7 Pro 64-Bit