DELIB API reference | Seite
79
5.3.4. DapiDIGet32
Description
This command reads 32 digital inputs simultaneously.
Definition
ULONG DapiDIGet32(ULONG handle, ULONG ch);
Parameters
handle=This is the handle of an opened module.
ch=Specifies the number of the input, from which it begins to read from (0, 32, 64,
..)
Return value
State of the read inputs.
Example program
unsigned long data;
// ----------------------------------------------------
// Einen Wert von den Eingängen lesen (Eingang 1-31)
data = (unsigned long) DapiDIGet32(handle, 0);
// Chan Start = 0
printf("Eingang 0-31 : 0x%x\n", data);
printf("Taste für weiter\n");
getch();
// ----------------------------------------------------
// Einen Wert von den Eingängen lesen (Eingang 32-64)
data = (unsigned long) DapiDIGet32(handle, 32);
// Chan Start = 32
printf("Eingang 32-64 : 0x%x\n", data);
printf("Taste für weiter\n");
getch();
Summary of Contents for USB-OPTOIN-8
Page 1: ...Hardware Description Dezember USB RELAIS 8 OPTOIN 8 2012 ...
Page 5: ...INDEX Index 5 Seite 6 Appendix 98 6 1 Revisions 98 6 2 Copyrights and trademarks 99 ...
Page 6: ...I Introduction Seite 6 Introduction ...
Page 8: ...II Hardware description Seite 8 Hardware description ...
Page 12: ...Hardware description Seite 12 2 2 3 Overview screen ...
Page 17: ...Hardware description Seite 17 2 3 3 Overview screen ...
Page 20: ...Hardware description Seite 20 ...
Page 21: ...III Firmware update Seite 21 Firmware update ...
Page 24: ...Firmware update Seite 24 After successful update procedure the message FLASH OK appears ...
Page 25: ...IV Software Seite 25 Software ...
Page 48: ...Software Seite 48 Choose the option create VIs for DLL and press continue ...
Page 67: ...V DELIB API reference Seite 67 DELIB API reference ...
Page 97: ...VI Appendix Seite 97 Appendix ...