- 积分
- 0
- 注册时间
- 2006-4-25
- 仿真币
-
- 最后登录
- 1970-1-1
|
发表于 2008-1-25 01:38:27
|
显示全部楼层
来自 加拿大
about the communication function!
There are several functions in MATLAB using for serial communication.
serial : create a object, such as "com1"
fopen: fread: fclose: free: delete: clear:
When you create the com1, you also need to set the parameters for this port, for a instance, set(s,'baudrate','9600')
All these you can get help from Matlab document.
The second problem is realtime, you can use the Xpc in MATlab and
use the hardware device, like ECU to communiate with the serial port.
Hope it can help!:) |
评分
-
1
查看全部评分
-
|