LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

biginner

Fraid not.  Still in 2013

0 Kudos
Message 21 of 47
(2,084 Views)

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:

 

No For.png

Lynn

0 Kudos
Message 22 of 47
(2,071 Views)

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.

0 Kudos
Message 23 of 47
(2,059 Views)

i was very reluctant to post this ,i just hope they not gonna copy it lol

0 Kudos
Message 24 of 47
(2,057 Views)

 hi DD

I have been on it since last 4 days and here it is 

0 Kudos
Message 25 of 47
(2,007 Views)

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

0 Kudos
Message 26 of 47
(1,966 Views)

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.

 

Plot issues.png

 

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

0 Kudos
Message 27 of 47
(1,939 Views)

Hi lynn

i got my vi running smothly now thanks for for your time may god reward you with more knowledge and wisdom.

0 Kudos
Message 28 of 47
(1,883 Views)

hi dear

how r you

 

0 Kudos
Message 29 of 47
(1,747 Views)

@rezarougi wrote:

hi dear

how r you

 


just fine sweetie.  and you?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 30 of 47
(1,735 Views)