Configuration of USB modules
A configuration of a USB product is not needed - this complete the driver with their Plug and Play mechanism.Working with several modules
Are more than one USB products working on a system, the driver library differentiate between these modules. Every brand new USB product has the ID "0". The ID can be changed by the DELIB-Configuratin Utility and will be stored in an EEPROM on the module.So you can use up to eight identical modules on one pc.
Working with several modules on one pc
| DELIB-Configuration Utility für USB Module |
|
Click to enlarge ![]() |
Controlling by the DELIB DLL under Windows
The DELIB DLL allows a standard respond of all DEDITEC measurement modules. For this we provide all functions of our products to the software engineer.Simple testprogram with example for digital inputs
| Digital Input/Output Sample Testprogramm für Module |
|
Click to enlarge ![]() |
With this tool you can test our products very easily. It is easy to handle and supports all modules of DEDITEC. The example above shows a test of a RO-USB-O32 input module.
Examples for responding our products with "C"
In the following example we show you in "C", how to access to our input modules in short time.1. Step: Open the module
handle = DapiOpenModule(RO-USB,0); // Open USB-module
2. Step: Reading of 16 digital inputs
data = DapiDIGet16(handle, 0); // Read the first 16 digital inputs
3. Step: Close the module
DapiCloseModule(handle); // Close the module
The function "DapiOpenModule" is used to open a special kind of module.
Which module should be openend, is defined by the two parameters.
The first parameter is for the "module ID". By the integrated "DELIB.H", you can also set this parameter to "RO-USB1".
So the driver library recognize, that an ethernet interface will be driven.
The second parameter assigns the module number. If only one module is connected to the pc, the module number is "0". Are there more than one modules in the network, you have to set the correct number.
Controlling of more than one USB-module
Example for opening several modules on one pc:Open a module with ID "1"
handle1 = DapiOpenModule(RO-USB1,1); // open USB-module with ID=1
Open a module with ID "4"
handle2 = DapiOpenModule(RO-USB1,4); // open USB-module with ID=4


