11-07-2014 10:48 AM - edited 11-07-2014 10:52 AM
hi,
11-07-2014 10:48 AM - edited 11-07-2014 10:56 AM
hi,
in this program i want to find the value of the -(1/(di/dv)), and exactely at the point (0,max Current), it should be positive value and great, but i found it smalle and negative. did i forgot any thing in the program?
thank 's
11-07-2014 03:12 PM
Plot the output of the derivitive and you'll see it has a very large negative slope between index 0 and 1. -1/slope will give you a small positive number.
Try wiring some initial conditions to the derivitive function.
11-09-2014 01:41 PM
when i changed the method to (forward method), the first negative value is removed.
11-09-2014 02:32 PM
and i would like to ask you about the dt, because when i increase de dt value, the results of -(1/slope) is better,
can i change dt ?
thank you.
11-09-2014 03:26 PM
dt is the period of your samples and is equal to the reciprocal of the sampling frequency. The sampling frequency in this case is determined by the "divide by 10" inside the FOR loop -- you are calculating 200 samples per the curve with an x-axis step size of 0.1 units to yield 20 seconds of data.
Answer is "no", there is no justification to change the dt value as it corresponds the sampling frequency you set up earlier (assuming it is still set up as in post #12).
11-10-2014 11:25 AM
i send you the main program to calculate the reciprocal value of the slope of I-V curve (for V=0), and he said that he had a good results (unlike me).
what can you talking about this program and our previous program to calculate (1/slope).
thank you.
11-12-2014 08:49 AM - edited 11-12-2014 08:49 AM
Caran,
It sounds like you are having trouble generating a points to be graphed. What exactly is the issue that you are having? And what kind of data are you trying to plot?
11-12-2014 10:51 AM
i send you the VI program, it contain the data in the input, when you run the program, you will see the Current-Voltage curve
i want to extract the slope of the curve in each point and exactly in the point (I=I max, V=0) like in the picture, then calculate the vlaue of (1/slope).
thank you.
11-13-2014 04:42 PM
Hello Caran
Maybe a workaround for this could be to divide the curve in several subsets of the waveform and calculate the slope for each subset. If you calculate the slope for every pair of points, you might have issues with the noise from your signal. The forum on the next link has more details about the implementation of this workaround.
http://forums.ni.com/t5/LabVIEW/How-do-I-find-slope-of-a-waveform/td-p/182207
WenR