Advantech PCI-1736UP Spezifikationen Seite 73

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 159
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 72
Comedi
62 / 148
Description
The function comedi_dio_read() reads the channel channel belonging to the subdevice subdevice of device device.
The data value that is read is stored in the
*
bit. This function is equivalent to:
comedi_data_read(device, subdevice, channel, 0, 0, bit);
This function does not require a digital subdevice or a subdevice with a maximum data value of 1 to work properly.
If you wish to read multiple digital channels at once, it is more efficient to use comedi_dio_bitfield2() than to call this
function multiple times.
Return value
Return values and errors are the same as comedi_data_read().
5.4.4.5 comedi_dio_write
comedi_dio_write — write single bit to digital channel
Synopsis
#include <comedilib.h>
int comedi_dio_write(comedi_t * device, unsigned int subdevice, unsigned int channel, unsigned int bit);
Description
The function writes the value bit to the channel channel belonging to the subdevice subdevice of device device. This
function is equivalent to:
comedi_data_write(device, subdevice, channel, 0, 0, bit);
This function does not require a digital subdevice or a subdevice with a maximum data value of 1 to work properly.
If you wish to write multiple digital channels at once, it is more efficient to use comedi_dio_bitfield2() than to call this
function multiple times.
Return value
Return values and errors are the same as comedi_data_write().
5.4.5 Error reporting
5.4.5.1 comedi_errno
comedi_errno — number of last Comedilib error
Synopsis
#include <comedilib.h>
int comedi_errno(void);
Seitenansicht 72
1 2 ... 68 69 70 71 72 73 74 75 76 77 78 ... 158 159

Kommentare zu diesen Handbüchern

Keine Kommentare