Compiling Formula

From Elsys Wiki - Help and Recources for TranAX and TraNET DAQ
Revision as of 17:59, 26 September 2017 by Mmeier (talk | contribs) (Created page with "== Compile a Formula == 1. Encapsulate your formula into a Function (AddTwoNumbers): 2. Open compile dialog: 3. Insert the function name into the dialog. Set the filename...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Compile a Formula

1. Encapsulate your formula into a Function (AddTwoNumbers):


2. Open compile dialog:

3. Insert the function name into the dialog. Set the filename for the DLL:

Note: Return value is empty because we already defined one in the function.

4. Click OK to generate the formula DLL. Go to your formula where you want to include the function and reference the formula DLL with the using statement:

Information: If the DLL is loaded with the using statement you can not change/override the formula DLL with a recompile. To change the DLL you have to close the "Formula 2.for - Zip" tab page or uncomment the using statement. After that you have to restart TranAX and repeat the steps 1. - 3. above.