
Page 24
Copyright © 2017 Matrix Technology Solutions Limited
www.matrixtsl.com
Controlling the MIAC
Using Labview
MIAC AllCode
Instructional Guide
LabVIEW is a development environment for creating custom
applications that interact with real-world data or signals in fields
such as science and engineering.
It can also be used to control the MIAC AllCode.
This section explains how to get started
Using the MIAC AllCode with Labview is fairly easy and
consists of using a library provided by MatrixTSL. First,
download the library (which consists of a DLL and a LabView
library file) from the Matrix TSL website:
https://www.matrixtsl.com/allcode/resources/
To begin, create a new blank VI and then open the
“MIAC_AllCode.lvlib” file that was downloaded earlier. This
contains all of the function calls to the AllCode API, as shown on the right.
A sample program is shown, using eight switches to control the
state of the Relay and Transistor outputs.
The program at the bottom of the page shows a flat sequence
structure that ensures the various parts of the program are
called in turn. The left window executes first and wits for the
connect switch to be pressed, the next window opens the
communications port to the MIAC. The middle window loops
until “stop” is pressed. It takes the value of the switches and
sends it to the WriteRelays and WriteTrans API command every
100ms. The final window closes the communications port.
Содержание MI3932 MIAC AllCode
Страница 1: ......