08-10-2011 03:37 AM
Hi all. Please help me to solve my problem...
I have to count a double sum by the formula which I've attached with my post. Datas have been attached also.
I did my version of solution, but it didn't work... Please help me.
Thank you sooooooooooooooo much in advance.
Waiting for replies.
Solved! Go to Solution.
08-10-2011 07:50 AM
I'm a little confused about what you're trying to do.
Is the result of your sum a scalar or do you want to have a function which calculates your sum as a function of x?
Since it looks like you're trying to graph your result, it looks like you're trying for the latter.
08-10-2011 07:56 AM
Assuming your Express VIs are set up like you want them, the following should calculate the sum.
08-10-2011 10:09 AM
Taki1999, first of all, I would like to thank for your reply and for example. I've tried but it is didn't work, beacuse N is not wired.
And about your question. I want to get function of sum as a function of x. In other words, I want to have each value of sum, which will correspond to each value of x during for-loop. After that, I want to have graph which will present dependence of x from sum...
Thank you in advance.
08-10-2011 10:12 AM
Sorry, Taki. After controlling N, it works 🙂 Thank you very much.
Please, give me the way of solution of my problem that I've written in the previous post.
08-10-2011 11:57 AM
I think this should do what you want. You might want to review Auto-Indexing.
This could also be simplified by including your xm generation in the xm placeholder loop.
08-10-2011 02:27 PM - edited 08-10-2011 02:34 PM
The problem and the above solutions don't make a lot of sense. This is a very simple problem.
Please attach your VI once more and make sure that the alpha and lamda arrays as well as F contains typical data. Make current values the default before saving the VI.
08-10-2011 03:10 PM
Probably have to wait on the OP for real answers, but my interpretation is provided below.
altenbach wrote:
The problem and the above solutions don't make a lot of sense. This is a very simple problem.
- Why is F an array? Isn't it a scalar?
- I interpreted F0 as a function of lambda_i so indirectly F is also an array.
- There are only three relevant arrays: Xm(j) (which you generate in a loop), alpha(i), and lamda(i).
- Their sizes determine the iteration count for the various sums.
- Isn't the result a simple number? Why do you have an xy graph?
- I asked OP about this and I think he clarified in Message 4.
Please attach your VI once more and make sure that the alpha and lamda arrays as well as F contains typical data. Make current values the default before saving the VI.
OP's Excel sheet has input data but without expected results, there's not really much to be done with it.
I also agree that there's probably much simpler ways to accomplish the OP's goals. My snippets were just incremental nudges on the OP's vi.
08-10-2011 03:17 PM - edited 08-10-2011 03:17 PM
08-11-2011 02:06 AM
Thank you so much for your replies. Sorry, I'm late because of my internet connection...
It is not necessary to have the value of lambda...(I attached it just for clearity). F is array which is correspond for each value of lambda and alfa. And about XY graph. It is necessary for havinf function sum from x. It means that I must know each value of sum for EACH x in loop (from 450 to 0 with step 0.5). For example, when x=450, count sum, then count sum for x=445.5 and so on... So we will have graph which will show what value have sum for each x...
Yhank you very much and once more sorry...