Komunikasi Serial di Matlab

Berikut adalah kode untuk transmit

S1 = serial ('COM5', 'Baudrate', 9600, 'DataBits', 8, 'Parity', 'none');
fopen(S1);
serialbreak(S1,10);
fprintf(S1,'RS232? \n\r')
fclose (S1);
delete(instrfindall);

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s