Measurement-computing ADLIB WIN Instrukcja Użytkownika Strona 119

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 191
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 118
Chapter 39 Counter / Timer
26-1
26.3 AL_CounterIn
Prototype C\C++
STATUS AL_API AL_CounterIn(LHLD lhld);
Visual Basic for Windows
Function AL_CounterIn(ByVal lhld As Long,) As Long
LHLD lhld handle of the LDSD
After the Counter has been initialized, AL_CounterIn function immediately retrieves the current count of
a Counter Input port. The first time AL_CounterIn is called the return number is meaningless and returns
a value of zero; subsequent calls return the number of counts since the last call to AL_CounterIn in
PULSE_COUNTER_INCREMENTAL mode or the totalized number of counts for
PULSE_COUNTER_CUMMULATIVE mode. See the function AL_SetCtrMode for specific mode
settings.
Parameter Description
lhld Identifies the instance of the logical device subsystem.
Returns:
On success STATUS contains the current count, otherwise ERRNUM contains the negative error code that
occurred during the call.
Related Functions:
AL_SetCtrMode
AL_GetCtrMode
Supported Logical Device Subsystems:
Pci55xx Series: CTR0, CTR1
Note that CTR0, CTR1 Counters are referenced in the user manual as CNTR0/1.
Przeglądanie stron 118
1 2 ... 114 115 116 117 118 119 120 121 122 123 124 ... 190 191

Komentarze do niniejszej Instrukcji

Brak uwag