07-01-2019 05:47 AM
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.
Solved! Go to Solution.
07-01-2019 06:13 AM
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"
07-01-2019 06:18 AM
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.
07-01-2019 06:39 AM
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.
07-01-2019 07:30 AM
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)
07-01-2019 07:44 AM
@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.
07-01-2019 07:53 AM
I Added an array size to Y then i wire it to the initialize array X . am I correct?
07-01-2019 07:58 AM
Well, I'd stick to left-to-right programming, but that was what I mend.
07-01-2019 08:17 AM
i think it works thank you ,now I trying to export the results from this graph to excel but i could not.
07-01-2019 08:23 AM
@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.