5.1.2. The Transfer Function Pattern

Your Ad Here

In this short tutorial a Transfer Function is added to the previous project testSimple.prj. A Transfer Function is used to define a dependent variable based on the values of other free variables.

In our case the Transfer Function z is an expression on x and y. as we can see in Figure 5.21, "the Transfer Function Work Flow".

the Transfer Function Work Flow

Figure 5.21. the Transfer Function Work Flow

Since this tutorial simply modifies a Work Flow we have already built, we can reuse what we have done in the previous tutorial. Open the ""Simplest Work Flow"", a copy is available with the name testSimple.prj in .../modeFRONTIER30x/projects/testcase/simple

Select from the tool bar a Transfer Variable object and place it on the Work Flow desktop.

The Transfer Variable object must then be configured. Double LMB click on its icon to bring up the properties editor (Figure 5.22, "the Transfer Function Work Flow") and do the following:

the Transfer Function Work Flow

Figure 5.22. the Transfer Function Work Flow

Now the Input File icon has become yellow and the Logic Log window displays the message:

Error 105 MISMATCH BETWEEN TEMPLATE FILE AND INPUTS FOR NODE inA.dat

This error means that the new object has been linked to the inA.dat input file but the variable is not yet inserted in the Template Input File.

Double click on the inA.dat icon to pop-up its properties window.

Click on Open button to edit the Template Input File and insert the new input variable z into the Template Input File.

After this insertion the Template Input File should look like in the following figure (Figure 5.23, "The modified Template Input File").

Note:

click on Ok to confirm our changes

The modified Template Input File

Figure 5.23. The modified Template Input File

Remember that no error or warning messages should appear in the logic log and no objects should have a yellow border!

Only if no errors are present, the logic is laid down correctly and can be used in a complete optimisation loop.

This project is already available in .../modeFRONTIER30x/projects/testcase/simpletx/testSimpleTx.prj


Return to modeFRONTIER Index


Your Ad Here