LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

graph problem

I have a silly problem with my program. I want to show four array-datasets on a graph in microsoft word. 
With one array-dataset this program works ( picture 1) and when i want to show four array-datasets in the word graph, something goes wrong ( picture 2).
Is there something wrong with my program (picture 3) ??
 
Could somebody help me please???
 
Best regards,
 
PETER
 
 

Message Edited by PETER_AUT on 08-04-2005 02:36 PM

Message Edited by PETER_AUT on 08-04-2005 02:37 PM

Labview 7.1 on Windows 2000
0 Kudos
Message 1 of 6
(2,868 Views)
First thing I see is that the word graph is scaling the y-axis based on the curve range. So your first curves are unchanged, just flattened due to the range of the other curves. Furthermore you can check the curves by simply wiring a graph to your 2d array in labview and then compare the two graphs.
If your curves are completely different, you may need to transpose the 2d array (turn rows into columns and vice versa).


aart-jan
0 Kudos
Message 2 of 6
(2,844 Views)
HI!
 
I connectet the second array dataset (picture1) with a xy graph and saw, that the two graphs completely the same! I think that*s not the problem.
Could be the problem in the code of the report generation program ( picture 2)??
 
Best regards,
 
PETER
 
 
Labview 7.1 on Windows 2000
0 Kudos
Message 3 of 6
(2,837 Views)


@PETER_AUT wrote:
I have a silly problem with my program. I want to show four array-datasets on a graph in microsoft word. 
With one array-dataset this program works ( picture 1) and when i want to show four array-datasets in the word graph, something goes wrong ( picture 2).
Is there something wrong with my program (picture 3) ??
 
Could somebody help me please???
 
Best regards,
 
PETER
 
 

Message Edited by PETER_AUT on 08-04-2005 02:36 PM

Message Edited by PETER_AUT on 08-04-2005 02:37 PM


I don't have the word report toolkit, so I'm guessing here:
You send a 2D array to a subVI of the toolkit. In picture 1 the 2D array has 2 rows, X data in the first row and y data in the second.
In picture 2 you have 8 rows, X data in row 1,3,5,7 and Y data in rows 2,4,6,8 and obviously you want to plot 4 curves, row2 vs. row1, row4 vs.row3 and so on. But the toolkit VI interprets the 2D array as 1 row of Xdata and 7 rows of Y.data and plots this correctly as shown in picture 2.
0 Kudos
Message 4 of 6
(2,825 Views)

HI!

In that case the problem would be in the coding of the report generation!? Has someone an idea, which code should i modify???

Best regards,

peter

Labview 7.1 on Windows 2000
0 Kudos
Message 5 of 6
(2,821 Views)

Another question: Is it generally possible to generate a graph in word with several x-axes?

 

Best regards,

Peter

Labview 7.1 on Windows 2000
0 Kudos
Message 6 of 6
(2,801 Views)