12-01-2014 02:51 PM
Fraid not. Still in 2013
12-01-2014 03:17 PM
How many times do you think the completely unnecessary for loop iterates? You have three different things controlling the number of iterations. Autoindexing on two arrays of different sizes and constant wired to N which is not the same as either array size.
This produces the same result:
Lynn
12-01-2014 03:27 PM - edited 12-01-2014 03:43 PM
Hi lynn
that was my initial vi that i posted but here is the actual one that i am working on i just have to clean it with some subvi's and try to work out the two variable controls for number of points and final value.
12-01-2014 03:29 PM
i was very reluctant to post this ,i just hope they not gonna copy it lol
12-02-2014 07:31 PM - edited 12-02-2014 07:36 PM
hi DD
I have been on it since last 4 days and here it is
12-08-2014 04:42 PM - edited 12-08-2014 05:02 PM
hi johnsold
i have changed my step function is not quiet working the way i want ,when i change the two variable controls for number of points and final value ,the graph starts before it gets to zero which i don't want.
i want it to start from zero at all time .
would you be kind enough and have a look at the vi and give me some feed back.
thanks
12-08-2014 08:26 PM
The issue with the graph starting before zero has two components. One is the plot interpolation. By changing that you can make it look as though the plot starts after zero with the same data. In the image below Plot 0 and Plot 2 have the same data. The highlighted ovals show the only two data points visible in this expanded plot near zero. Ther highlighted rectangle shows the stepwise interpolation of Plot 2. The difference is the interpolation method.
The other issue is that the way you generate the data you do not always get a point at t = 0. Since your algorithm assures that all values are zero for t < 0, why bother calculating them? Start the calculation with t = 0. Before plotting create an array of all zeros (Initialize Array). Then use Build Array to combine the block of zeros with the calculated data for t >= 0. That way you will always have a data point at t = zero.
Lynn
12-12-2014 05:16 PM
Hi lynn
i got my vi running smothly now thanks for for your time may god reward you with more knowledge and wisdom.
10-02-2015 04:03 PM
hi dear
how r you
10-02-2015 05:04 PM
@rezarougi wrote:
hi dear
how r you
just fine sweetie. and you?