
Page 20
Copyright © 2017 Matrix Technology Solutions Limited
www.matrixtsl.com
Controlling the MIAC
Using C++ / C# / VB
MIAC AllCode
Instructional Guide
A common programming tool is Visual Studio from Microsoft.
In this section we introduce various methods to communicate
with the MIAC AllCode using some of the more widely known
programming languages such as C++, C# and Visual Basic.
Using the MIAC AllCode with Visual Studio via the Visual C++, Visual C# or Visual
Basic programming languages is fairly straightforward and consists of using a DLL
library and associated files provided by MatrixTSL to communicate with the MIAC.
As will other languages, you need to use the COM port number or IP address that the MIAC is
connected to. There are examples on the AllCode pages of the Matrix TSL
website here:
https://www.matrixtsl.com/allcode/resources/
Using C#
The program on the right shows
a basic program in C#.
You should use the namespace
“MIACAllCode” and place the
MA_DLL library file in the same
folder as your project. The DLL
itself needs to be in the same
folder as the EXE you create.
You will notice that the AllCode
API commands are prefixed with
the characters “MA_” and also
need to have the COM port / IP
Instance sent to them each time
as the first parameter.
Remember to modify the API
commands in the appendix when
using them.
Also remember to close the port
at the end of your program!
Summary of Contents for MI3932 MIAC AllCode
Page 1: ......