05-24-2018 05:17 PM
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!
05-24-2018 05:32 PM
Your code makes no sense.
05-25-2018 05:19 AM
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!
05-25-2018 08:38 AM
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?
05-28-2018 10:02 AM
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.
Thanks again!
05-28-2018 05:08 PM - edited 05-28-2018 05:14 PM
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..
05-30-2018 07:44 AM
Hello,
I created this new VI but it s not working!!
I don't know why.
05-30-2018 12:12 PM - edited 05-30-2018 12:13 PM
@Abdou2018 wrote:
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!
06-02-2018 09:38 AM
Hello sir,
What do you think of the program attached her, is that good?
Thanks!
06-02-2018 10:05 AM - edited 06-02-2018 10:09 AM
@Abdou2018 wrote:
What do you think of the program attached her, is that good?
Does it work?
Some observations: