Advantech PCI-1736UP Dokumentacja Strona 12

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 159
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 11
Comedi
1 / 148
1 Overview
Comedi is a free software project that develops drivers, tools, and libraries for various forms of data acquisition: reading and
writing of analog signals; reading and writing of digital inputs/outputs; pulse and frequency counting; pulse generation; reading
encoders; etc. The source code is distributed in two main packages, comedi and comedilib:
Comedi is a collection of drivers for a variety of common data acquisition plug-in boards (which are called ‘devices’ in Comedi
terminology). The drivers are implemented as the combination of (i) one single core Linux kernel module (called comedi’)
providing common functionality, and (ii) individual low-level driver modules for each device.
Comedilib is a separately distributed package containing a user-space library that provides a developer-friendly interface
to the Comedi devices. Included in the Comedilib package are documentation, configuration and calibration utilities, and
demonstration programs.
Kcomedilib is a Linux kernel module (distributed with the comedi package) that provides the same interface as comedilib
in kernel space, and suitable for use by real-time kernel modules. It is effectively a ‘kernel library’ for using Comedi from
real-time tasks.
Comedi works with standard Linux kernels, but also with its real-time extensions RTAI and RTLinux/GPL.
This section gives a high-level introduction to which functionality you can expect from the software. More technical details and
programming examples are given in the following sections of this document.
1.1 What is a ‘device driver’?
A device driver is a piece of software that interfaces a particular piece of hardware: a printer, a sound card, a motor drive, etc.
It translates the primitive, device-dependent commands with which the hardware manufacturer allows you to configure, read and
write the electronics of the hardware interface into more abstract and generic function calls and data structures for the application
programmer.
David Schleef started the Comedi project to put a generic interface on top of lots of different cards for measurement and control
purposes. This type of cards are often called data acquisition (or DAQ) cards.
Analog input and output cards were the first goal of the project, but now Comedi also provides a device independent interface to
digital input and output cards, and counter and timer cards (including encoders, pulse generators, frequency and pulse timers,
etc.).
Schleef designed a structure which is a balance between modularity and complexity: it’s fairly easy to integrate a new card
because most of the infrastructure part of other, similar drivers can be reused, and learning the generic and hence somewhat
‘heavier’ Comedi API doesn’t scare away new contributors from integrating their drivers into the Comedi framework.
1.2 Policy vs. mechanism
Device drivers are often written by application programmers, that have only their particular application in mind; especially in
real-time applications. For example, one writes a driver for the parallel port, because one wants to use it to generate pulses that
drive a stepper motor. This approach often leads to device drivers that depend too much on that particular application, and are
not general enough to be re-used for other applications. One golden rule for the device driver writer is to separate mechanism
and policy:
Mechanism. The mechanism part of the device interface is a faithful representation of the bare functionality of the device,
independent of what part of the functionality an application will use.
Policy. Once a device driver offers a software interface to the mechanism of the device, an application writer can use this
mechanism interface to use the device in one particular fashion. That is, some of the data stuctures offered by the mechanism
are interpreted in specific physical units, or some of them are taken together because this composition is relevant for the
application. For example, a analog output card can be used to generate voltages that are the inputs for the electronic drivers of
the motors of a robot; these voltages can be interpreted as setpoints for the desired velocity of these motors, and six of them
are taken together to steer one particular robot with six-degrees of freedom. Some of the other outputs of the same physical
device can be used by another application program, for example to generate a sine wave that drives a vibration shaker.
Przeglądanie stron 11
1 2 ... 7 8 9 10 11 12 13 14 15 16 17 ... 158 159

Komentarze do niniejszej Instrukcji

Brak uwag

Acer VL7860 podręczniki

Instrukcje obsługi i podręczniki użytkownika dla Nie Acer VL7860.
Dostarczamy 5 pdf podręczników Acer VL7860 do pobrania za darmo według typów dokumentów: Instrukcja Użytkownika






Więcej produktów i instrukcji dla Nie Acer

Modele Rodzaj dokumentu
KG271 Instrukcja Użytkownika   Acer KG271 Quick Start Guide (for KG271 C), 4 strony
Aspire 5320 Instrukcja Użytkownika   Acer Aspire 5720 User Manual, 121 strony
P196WV Instrukcja Użytkownika Acer P196WV Quick Start Guide, 2 strony
Aspire E1-410G Instrukcja Użytkownika   Acer Aspire E1-410 User Manual, 92 strony
X1261N Instrukcja Użytkownika   Acer D111 Guida per l’utente (3D Operation), 9 strony
Aspire 5040 Instrukcja Użytkownika   Acer Aspire 3040 Guida per l’utente, 84 strony
TravelMate P643-M Instrukcja Użytkownika   Acer TravelMate P643-MG Quick Start Guide, 10 strony
H223HQ Instrukcja Użytkownika   Acer H223HQ Guía del usuario, 30 strony
CB3-532 Instrukcja Użytkownika   Acer CB3-532 Guida per l’utente, 34 strony
X123PH Instrukcja Użytkownika    Acer H6520BD Quick Start Guide (3D), 13 strony
Aspire E1-532PG Instrukcja Użytkownika   Acer Aspire E1-530 Guía del usuario (Windows 8.1), 93 strony
H234H Instrukcja Użytkownika   Acer H234H Guía del usuario, 30 strony
G195HQV Instrukcja Użytkownika   Acer G195HQV Guia de Início Rápido, 2 strony
W701 Instrukcja Użytkownika   Acer W701P Guía del usuario, 107 strony
B273H Instrukcja Użytkownika   Acer B273H Quick Start Guide, 2 strony
W500 Instrukcja Użytkownika   Acer W500P Guía del usuario, 63 strony
TravelMate 8473 Instrukcja Użytkownika   Acer TravelMate 8473TG Quick Start Guide, 11 strony
P166HQL Instrukcja Użytkownika   Acer P166HQL Quick Start Guide, 1 strony
DA241HL Instrukcja Użytkownika   Acer DA241HL Guía de comienzo rápido, 4 strony
TravelMate P449-G3-MG Instrukcja Użytkownika   Acer TravelMate P449-G2-M User Manual W10 (Non-Touch), 96 strony