Measurement-computing Data Acquisition Systems rev.10.4 Instrukcja Użytkownika Strona 263

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 366
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 262
Programmer’s Manual 908794 Daq API Command Reference 4.5-33
Example of Calculating “whichDevice” for three DBK20 P2 Exp 8255-1 Port C banks.
For the first positioned card n= 0.
Thus for the first card’s P2 Exp 8255-1 Port C ….
whichDevice: (Note 1)
(nx8) + Diodp8255B + 4 =
n = 0
Result:
Diodp8255B + 4
For the second positioned card n= 1.
Thus for the second card’s P2 Exp 8255-1 Port C ….
(nx8) + Diodp8255B + 4 =
n = 1
Diodp8255B + 12
For the third positioned card n= 2.
Thus for the third card’s P2 Exp 8255-1 Port C ….
(nx8) + Diodp8255B + 4 =
n = 2
Diodp8255B + 20
Note 1: The equation is from the whichDevice column and “P2 Exp 8255-1” row (shaded), in the preceding table.
Prototypes
C/C++
daqIOReadBit(DaqHandleT handle, DaqIODeviceType devType, DaqIODevicePort
devPort, DWORD whichDevice, DaqIOExpansionPort whichExpPort, DWORD bitNum,
PBOOL bitValue);
Visual BASIC
VBdaqIOReadBit&(ByVal handle&, ByVal devType&, ByVal devPort&, ByVal
whichDevice&, ByVal whichExpPort&, ByVal bitNum&, bitValue&)
Program References
DAQEX.FRM (VB)
Przeglądanie stron 262
1 2 ... 258 259 260 261 262 263 264 265 266 267 268 ... 365 366

Komentarze do niniejszej Instrukcji

Brak uwag