|
Contents | Previous | Next | Subchapters |
This document outlines the procedure
for creating an O-Matrix pcode file with the
O-Matrix Development Kit
for applications that are distributed with the
O-Matrix Virtual Machine
.
The source code used in the steps below is available in
devkit\examples\OMS\SimpleOMX\.
MyContour() in this example
function MyContour() begin
z = {[1,2,3], [2,4,7], [3,7,14]}
contour(z)
end
include mycontour.oms
save mycontour.omx
Test your binary pcode file by entering
load mycontour.omx
MyContour
at the O-Matrix command line. This will run the MyContour()
function as defined in the mycontour.omx file without
any reference to the original .OMS source file.
Note that the version of O-Matrix that you use to create the pcode
file must match the version number of the O-Matrix VM that
is used to load the pcode file.
startmycontour.oms
that contains
load mycontour.omx
MyContour()
mycontour.omx and
startmycontour.oms to
your O-Matrix home directory, e.g. \omwin. At the command line in
a DOS box enter:
omwin startmycontour.oms
This will load your binary application file, run the
MyContour() function and create the plot.
OMVMSetup.exe that is provided with your
development kit distribution.
mycontour.omx
startmycontour.oms
omwin runmycontour.oms
at a DOS box command line. (You can simplify the running of your
application by providing a Windows shortcut that executes the above command.)