LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

problem with 3D graph

Solved!
Go to solution

Hi 

I am trying to use 3D graph but I have a problem with dimensions, could you help me to find a solution.

the VI is attached bellow.

Download All
0 Kudos
Message 1 of 17
(3,718 Views)

You're wiring an array of errors to a 2D matrix input...

 

There's a function for creating a ramp pattern... It's call "Ramp Pattern.vi"

0 Kudos
Message 2 of 17
(3,704 Views)

yeah sorry  I did a mistake , I wanted to wire it to the gate voltage Vg.

I correct it here but  i got the same problem.

0 Kudos
Message 3 of 17
(3,701 Views)

That value you're wiring to X Matrix is a scalar, while the Y values is an array.

 

As a result, the X values become a 1D array, while the Y values become a 2D array.

 

You should initialize an array with the length of the Y array in the for loop, and the value of X. That way you'll build a 2D array of X values, where each column has the same value.

Message 4 of 17
(3,695 Views)

okay I did it but how can i do this (You should initialize an array  with the length of the Y array in the for loop, and the value of X)ni q.PNG

0 Kudos
Message 5 of 17
(3,680 Views)

@vispacespace123 wrote:

okay I did it but how can i do this (You should initialize an array  with the length of the Y array in the for loop, and the value of X)


Wire an Array Size to the Y values. Wire the result to the Initialize Array.

 

Almost there.

0 Kudos
Message 6 of 17
(3,675 Views)

I Added an array size to Y then i wire it to the initialize array X . ani q 2.PNGm I correct?

0 Kudos
Message 7 of 17
(3,671 Views)

Well, I'd stick to left-to-right programming, but that was what I mend.

Message 8 of 17
(3,667 Views)

i think it works thank you ,now I trying to export the results from this graph to excel but i could not.ni q3.PNG

0 Kudos
Message 9 of 17
(3,662 Views)

@vispacespace123 wrote:

i think it works thank you ,now I trying to export the results from this graph to excel but i could not.


As that is a different topic, I'd post details in a new thread.

0 Kudos
Message 10 of 17
(3,658 Views)