Instruction manual
AMPDIO DRIVERS
Page 60
The project files (*.csproj) have been created with Microsoft Visual Studio .NET 2003. If a later
version of Visual Studio is used, including the free “Express” edition of Visual C#, the project files
can be automatically converted to use the later version when they are opened.
For developers, the Visual C# .NET bindings for DIO_TC.DLL are in the Dioc_tc_h.CS file.
4.7.1 Digital IO — InOut_CSHARP.exe
The “IN OUT” example demonstrates basic Digital IO using the 82C55 peripheral port interface. It
runs on all supported Amplicon cards that have PPI resources, PC212E, PC214E, PC215E,
PC263, PC272E, PC30AT, PC36AT, PC36LP, PCI215, PCI230, PCI236, PCI263 and PCI272.
It allows the user to select PPI ports as inputs or outputs, set outputs high or low and monitor their
actual state.
It is equivalent to the Visual Basic 5.0 “INOUT” example.
It does not use interrupts.
4.7.2 Digital IO With Interrupts — DIO_EX_CSHARP.exe and DIO_EX2_CSHARP.exe
The “Extended DIO” example demonstrates sending buffers of information to the 82C55 PPI
interface under interrupt control. A strobe pattern is played out the PPI port. It runs on the PC212E,
PC214E, PC215E, PC30AT, PCI215 and PCI230 cards. It is equivalent to the Visual Basic 5.0
“DIO_EX” example.
It requires that the cards be installed with interrupts.
DIO_EX_CSHARP.exe uses non-callback mode user interrupt functions like the Visual Basic 5.0
“DIO_EX” example. DIO_EX2_CSHARP.exe uses “delegates” for user interrupt callback functions.
4.7.3 Voltmeter — Meter_CSHARP.exe
The “Meter” example is a multi-channel voltage meter example. It runs on the PC26AT, PC27E,
PC30AT, PCI230 and PCI260 cards. Care must be taken to set up any card jumpers correctly.
Unlike the Visual Basic “METER” example, this one uses interrupts. It uses a “delegate” to set up
the user interrupt callback function.
4.8 DIO_TC.DLL Source Code
The DIO_CODE sub directory contains the full C source code and documentation for the
application interface library (DIO_TC.DLL).
The Windows Dynamic Link Library (DLL) contains over 50 functions and provides a common
Applications Program Interface (API) to the supported boards. The library functions allow the
boards to be easily applied to many different applications, and provide an easy way of accessing
the board's features. The DLL can be called by any language that uses Windows calling
conventions.
The library can be built in Microsoft Visual C++ version 4.0 or later using DIO_TC.MDP, with
Microsoft Visual C++ version 6.0 or later using DIO_TC.DSW, with Microsoft Visual Studio 2005 or
later using DIO_TC.vcproj, or with Borland C version 4.2 using DIO_TC.IDE.