Remote-processing CAMBASIC Uživatelský manuál Strana 59

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 208
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 58
Commands - 26
COUNT
Process Function
SYNTAX: n = count(channel)
PURPOSE: To return the count in the software event counters and r eturn the count of the hardware counters.
REMARK S: The COUN T function returns the accum ulated high to low transitions at a specified input,
independent of program execution.
The softw are counters are set up using the O N COUN T statement. channel is the counter number,
and ranges from 0 to 7. The RPC-2350 ranges from 0 to 8. Counter 8 is hardware.
See the Multitasking Chapter for more information.
RELATED: CLEAR COUNT, CONFIG COUNT, ON COUNT, RESUME COUNT, START COUNT, STOP
COUNT
EXAMPLE: 10 CONFIG COUNT 0,0,1
20 START COUNT 0
30 PRINT COUNT(0)
40 GOTO 30
This example continiously prints counter 0 value.
ERROR: < Illegal argument> if counter> 7
< Data negative> for counter
Zobrazit stránku 58
1 2 ... 54 55 56 57 58 59 60 61 62 63 64 ... 207 208

Komentáře k této Příručce

Žádné komentáře