MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Uživatelský manuál Strana 381

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 408
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 380
Using Control Pins
8-61
Example: Using Software Handshaking
Suppose you want to use software flow control with the example described in
“Example: Reading Binary Data” on page 8-45. To do this, you must configure
the oscilloscope and serial port object for software flow control.
fprintf(s,'RS232:SOFTF ON')
s.FlowControl = 'software';
To pause data transfer, you write the numerical value 19 to the device.
fwrite(s,19)
To resume data transfer, you write the numerical value 17 to the device.
fwrite(s,17)
Zobrazit stránku 380
1 2 ... 376 377 378 379 380 381 382 383 384 385 386 ... 407 408

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

Žádné komentáře