LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

waveform graph be animated like lorenz attractor

Also, If this solution of using for loop is the only one, I will face anotD arher problem if I want to use these calculations outside the for loop because it will return to the the the type of 2D array of ODE.

 

I'm waiting your reply please

0 Kudos
Message 21 of 42
(2,048 Views)

It is really not very clear what you actually want, but your code seems quite flawed. For example I think you want to eliminate the outer FOR loop and use index array instead of "array subset" to slice out the two columns.

 

It is difficult to tell what you actually mean by "insde the loop" and "outside the loop", what are "these calculations"?

Message 22 of 42
(2,016 Views)

Your code is very difficult to understand, because it is very inefficient. For example you are using three primitives and a diagram constant to built an array with two element. (image top).

 

 

 

Please tell us exactly how you want to see the output and we might be able to make suggestions.

 

Message Edited by altenbach on 05-11-2009 09:21 AM
Message 23 of 42
(2,013 Views)

Dear all

 

Thanks for replying.

 

I attached here what I want. I made some calculations inside the for loop and as you see in the attached file that I want the output in the loop to be input of the ODE outside so that I found that it is mismatched.

Download All
0 Kudos
Message 24 of 42
(1,990 Views)

Eng.Ahmad,

 

You have a type mismatch.  On the left is the cluster you converted to a variant, on the right is the model you passed to the Variant to Data.  One has a 2-D Array in it while the other has only doubles.  It is from this difference that the error is being generated. (It is like you giving your friend a map Russia to drive around Saudi Arabia, someone is going to get confused.)

 

vs.  

Message Edited by ColeTrain on 05-12-2009 10:30 AM
ColeR
Field Engineer
Download All
Message 25 of 42
(1,975 Views)

Dear

 

I know that two types are mismatched, I tried to convert all  varibales to be the same type but also the graphs can't be displayed.

 

Are there anyway to solve this feedback problem and let the graphs be displayed correctly.

 

Thanks and I'm waiting

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

Dear

 

I made your suggestions but there is an error of" parameter vectors don't match". I don't know why?

 

Could you modify it for me and solve this problem

 

Thanks

Download All
0 Kudos
Message 27 of 42
(1,952 Views)

In your code you are taking arrays of 240 elements, and then converting them to single elements.  I'm guessing this is what is causing your error.  On another point, without knowledge of exactly you are trying to achieve with this VI, most users will not know how to modify your code except to clean it up.  If you have some time, Learn LabVIEW in 3 Hours might be very helpful. 

 

Currently, the data flow of your program is very jumbled and it is very hard to decipher what you are attempting to do.

 

ColeR
Field Engineer
0 Kudos
Message 28 of 42
(1,939 Views)

Dear

 

If you look at the attached example, I think you will expect what I want to do. This is the first trial of the last vi that I sent to you, except I replaced the feedback variables with constant variables. So how can I get the same behaviour of the model but without constants and using the feedback in last vi I sent.

 

Also, if you look at this example, I just need two loop count because I have two for loops but in the last vi I set it at 240 to display the graph for one for loop.

 

Forgive me but my project time will finish in this month and I hope to solve this problem as soon as possible please. I can't solve it and I tried to do and I failed.

 

 

0 Kudos
Message 29 of 42
(1,912 Views)
While your code is much cleaner, the intent of the code is still a little unclear.  Where are G, K, and U coming from?  The way you had your code built before, you were only returning one value out of the For Loop, even though the loop generated many numbers.  What you can do is take the output of where G, K, and U come from and wire them into a shift register to use in the next iteration.
ColeR
Field Engineer
Message 30 of 42
(1,902 Views)