MATRIXx

cancel
Showing results for 
Search instead for 
Did you mean: 

is it possible to compile a c++ or C program in xmath, if yes,how?

hi ,
i wrote a c++/c code for solving a problem, now, i want to use that in matrixX or xmath, or in whatever module it works in matrixX. i could see that using autocode we can generate a c code but how can i compile a code that i have already in xmath?
0 Kudos
Message 1 of 3
(7,689 Views)
Check out the "External Program Interface" section in the documentation;
the LNX (Linked Executable) mechanism described there is probably what
you are looking for.

The compilation itself you have to do with your standard compiler. There
is an example in the doc how to call it from within Xmath.

/ Tom
Message 2 of 3
(7,672 Views)
Hello,

Another thing you can use in the System Build is the UCB blocks.
This block allows you to link code (either C or FORTRAN) into the simulator's capabilities. This code may be for any purpose, as long as it meets the calling specification described in the SystemBuild User's Guide. The SystemBuild User's Guide also contains an in-depth description of the theory and use of UserCode blocks in relation to the MATRIXX simulator.
Hope this helps

Ricardo
0 Kudos
Message 3 of 3
(7,651 Views)