DELIB.BAS Integration in Visual Basic
Description of the "delib.bas" integration in Visual Basic
Download and install the DELIB-Driverlibrary (continue to DELIB-Driverlibrary). You can find the needed files for VB in the directory C:\Programme\DEDITEC\DELIB\include\delib.bas.Start Visual Basic and open via menu "Projekt -> Datei hinzufügen..." the file "delibi.bas" to import.
| Import of the DELIB.BAS include file |
|
Click to enlarge ![]() |
Creation of UserForm
At starting up, Visual Basic creates automatically a new UserForm. In order to have a testprogram you need to add buttons via the toolbox
| Create buttons |
|
Click to enlarge ![]() |
Sample program for Visual Basic
Double click on one of the buttons and type the sample program. In this example the left button sets the first relay of the module to state 1 (e.g. on) and the right button restores the same relay to state 0 (e.g. off).
| Code for Visual Basic |
|
Click to enlarge ![]() |
Finally start the UserForm via pressing "start".
| Start UserForm |
|
Click to enlarge ![]() |




