Instruction manual
AMPDIO DRIVERS
Page 59
4.6 Visual Basic .NET Examples
The subdirectory EX_VBNET contains executables and source code for example programs written
in Microsoft Visual Basic .NET. In order to run the examples the Microsoft .NET Framework version
1.1 or later is required. If not already installed, a suitable version may be downloaded using the
Windows Update service or the Microsoft Download Center.
The project files (*.vbproj) 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 Basic, the project
files can be automatically converted to use the later version when they are opened.
For developers, the Visual Basic .NET bindings for DIO_TC.DLL are in the DIO_TC.VB file.
4.6.1 Digital IO — InOut_VBNET.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.6.2 Digital IO With Interrupts — DIO_EX_VBNET.exe and DIO_EX2_VBNET.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_VBNET.exe uses non-callback mode user interrupt functions like the Visual Basic 5.0
“DIO_EX” example. DIO_EX2_VBNET.exe uses “delegates” for user interrupt callback functions.
4.6.3 Voltmeter — Meter_VBNET.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.7 Visual C# .NET Examples
The subdirectory EX_C# contains executables and source code for example programs written in
Microsoft Visual C# .NET. In order to run the examples the Microsoft .NET Framework version 1.1
or later is required. If not already installed, a suitable version may be downloaded using the
Windows Update service or the Microsoft Download Center.