Advantech PCI-1736UP Dokumentacja Strona 61

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 159
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 60
Comedi
50 / 148
Description
Converts data given in Comedi’s integer sample values (lsampl_t, between 0 and maxdata) into physical units (double). The
conversion_polynomial parameter is obtained from either comedi_get_hardcal_converter() or comedi_get_-
softcal_converter(). No range checking of the input data is performed. It is up to you to check for data values of 0 or
maxdata if you want to detect possibly out-of-range readings.
Return value
Physical value corresponding to the input sample value.
5.4.1.32 comedi_unlock
comedi_unlock — subdevice reservation
Synopsis
#include <comedilib.h>
int comedi_unlock(comedi_t * device, unsigned int subdevice);
Description
The function comedi_unlock() releases a subdevice locked by comedi_lock().
Return value
0 on success, otherwise -1.
5.4.2 Asynchronous commands
5.4.2.1 comedi_cancel
comedi_cancel — stop streaming input/output in progress
Synopsis
#include <comedilib.h>
int comedi_cancel(comedi_t * device, unsigned int subdevice);
Description
The function comedi_cancel() can be used to stop a command previously started by comedi_command() which is still in
progress on the subdevice indicated by the parameters device and subdevice.
Return value
If successful, 0 is returned, otherwise -1.
5.4.2.2 comedi_command
comedi_command — start streaming input/output
Przeglądanie stron 60
1 2 ... 56 57 58 59 60 61 62 63 64 65 66 ... 158 159

Komentarze do niniejszej Instrukcji

Brak uwag