01-21-2021 01:57 PM
Hallo
Possible a difficult question to answer, but i give it a try:
I am trying to make a skript of a iterative computation with use of calculation manager. First i have to guess a value RE, this value calculates C, which in turn calculates Q, then a new value of RE is calculated from Q. This prosess has to go in loop into the old RE(guess) is equal to new RE, than the answer for Q is correct.
Is this possible to perform in Diadem and how in that case?
01-22-2021 05:22 PM
Hi elera,
Is there one result per iteration or multiple results per iteration. Is each iteration result a scalar value or an array of values?
Now I see why you wanted to program the Calculation Manager:
https://forums.ni.com/t5/DIAdem/calculation-managers-to-script/m-p/4115110/highlight/false#M28195
Brad Turpin
Principal Technical Support Engineer
NI
01-23-2021 02:51 AM
It is one result per iteration, so when (guess Re)=calculetd Re at length 1 in the channel, Q is correct. Than a new iteration has to start at channel length 2. This process must be repated the entire length of the channel. So baciscly two loops(one for the iteration and one for the channel length) where you get the calculation from calculation manager.
Not sure how to set up guess Re as well, now i have made a channel in the script, where i can change this value.
I guess it is a scalar value, since it represents a single value in the channel