DELIB API reference | Seite
87
5.4. Setting Digital outputs
5.4.1. DapiDOSet1_WithTimer
Description
This function sets a digital output (ch) to a value (data - 0 or 1) for a specified time
in msec.
Definition
void DapiDOSet1_WithTimer(ULONG handle, ULONG ch, ULONG data, ULONG
time_ms);
Parameters
handle=This is the handle of an opened module
ch=Specifies the number of the output, from which it begins to write to (0, 32, 64, ..)
data=Specifies the data values, to write to the outputs
time_ms=Specifies the time, in which an output is set [ms]
Return value
None
Remarks
This function is only supported by our RO-O8-R8 module.
This function will lose its validity, if it is overwritten with other values.
If you want to deactivate this function, you will have to overwrite it with time_ms=0.
Example program
DapiDOSet1_WithTimer(handle, 2, 1, 1000);
//Setting channel 2 for 1000msec to 1
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 ...