Re: Writing to the serial port at 25 Hz
- From: "Fort" <braines@xxxxxxxxx>
- Date: 29 Nov 2005 14:49:27 -0800
You'll want to use a few commands: serial(), fopen(), fprintf(), and
fclose()
It goes something like this:
s1 = serial('COM1', 'BaudRate', 9600, 'DataBits', 8, 'Parity', 'none',
'StopBits', 1, 'FlowControl', 'none');
fopen(s1);
%Now write to your device -- customize this part (write your own code
using fprintf() )
fprintf(s1, '%d', dataByte);
%Now close device
fclose(s1);
.
- References:
- Writing to the serial port at 25 Hz
- From: temlihemli
- Writing to the serial port at 25 Hz
- Prev by Date: Re: Numerical integrals over an indefinte interval
- Next by Date: How to optimize and estimate the parameters ?
- Previous by thread: Writing to the serial port at 25 Hz
- Next by thread: plot behavior in Matlab 7.1 on Linux
- Index(es):
Relevant Pages
|