05-10-2009 12:01 PM
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
05-11-2009 11:09 AM
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"?
05-11-2009 11:20 AM - edited 05-11-2009 11:21 AM
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.
05-12-2009 12:59 AM
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.
05-12-2009 10:28 AM - edited 05-12-2009 10:30 AM
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.
05-12-2009 01:46 PM
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
05-12-2009 04:17 PM
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
05-12-2009 06:43 PM
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.
05-13-2009 01:58 PM
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.
05-13-2009 03:43 PM