Hello dear community,
I want to plot an intensity graph for the study of a transistor saturation like what you can see in the picture attached .
I writed a program but it doesn"t work, can someone please help?
You can find the program attached to this post
Thanks in advance for your help!
Your code makes no sense.
Thanks for your answer!
I want to have the values of my voltages into an array so that I can plot the intensity graph but i don't know how?
should I read only one value each iteration?
I want my values to be Inside the array not just indices
I REALLY APPRECIATE YOUR HELP!
Your current VI converts the dynamic data into a single numeric value via the convertir des donees dynamiques VI. You'll want to double click on that VI and change the setting to a 1D array of scalars.
What are you trying to do with the data from the Elvismx express VI though? Are you trying to build a 2D array where the X and Y values come from the two channels in the DAQ task and the Z values come from Elvis?
I m really sorry for the delay! I didn't get a notification..
Exactely sir, I m trying to build an array with X and Y coming from the two channels (voltages) and Z values (drain source current) so that I can plot the intensity graph.
An intensity graph is a 2D array and each element is defined by two non-negative I32 integer indices. You can get arbitrary axis by defining x0 and dx, which provides a mapping of real values to the indices of the 2D array.
In any case, you need to program your x and y values that they traverse all cells of the intensity graph, record the z value, and replace the value at that position. This is a simple task. What exactly is giving you problems?
If you don't have control over X and Y, things get slightly more difficult. You would initialize a 2D array of sufficient resolution, Convert x and y to array indices according to your desired mapping, and replace the value at that location. It is possible that some cells don't get hit or hit several times, so you need to define what should happen in these cases (e.g. initialize the 2D array with a sentinel value that means "no data" (e.g. NaN) and either use the last value or do some averaging if there are multiple values..
I created this new VI but it s not working!!
I don't know why.
It is because you did not read or understand my post. You create a 2D array with three columns and 10 rows where two of the rows are x and y. Completely wrong!
Do you have an array of typical outputs from your device?
Attached is a simple draft. You would need to modify it for arbitrary (non-integer) axis mappings to calculate indices based on x0 and dx of the axes. It is a simple linear relationship, you'll figure it out!
What do you think of the program attached her, is that good?
Does it work?