MATLAB XPC TARGET 4 - DEVICE DRIVERS Spécifications Page 50

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 653
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 49
2 RS232 I/O Support
2-20
8 Click OK. The Block Parameters dialog box closes.
9 Repeat the previous setup for the second RS-232 Setup block and the COM2
port. Use the same Baudrate, Databits, Stopbits, Parity, and Protocol that
you entered in the first RS-232 Setup block.
10 Double-click the Send block. The Block Parameters dialog box opens.
11 From the Port list, choose either COM1 or COM2. For this example, choose
COM1. In the Message struct name box, enter the name for the MATLAB
structure this block uses to send messages to the COM1 port. In the
Sample
Time
box, enter the sample time or a multiple of the sample time you
entered in the RS-232 Receive block.
Your
Block Parameters dialog box should look similar to the figure shown
below.
For information on entering the block parameters, see “RS-232 Send Block
(Asynchronous)” on page 2-30. For the procedure to create the send
structure, see “RS-232 MATLAB Structure Reference” on page 2-31.
Vue de la page 49
1 2 ... 45 46 47 48 49 50 51 52 53 54 55 ... 652 653

Commentaires sur ces manuels

Pas de commentaire