"serial" command not working on Windows Vista 64 bit

Hey all. I've worked with matlab on my XP computer, doing various serial communications things. I recently got a new computer with Vista, and for some reason, the "serial" command does not seem to be working, I get the response:
??? Error using ==> serial.serial at 57 The serial port object is supported on the Solaris, 32-bit Windows and 32-bit Linux platforms only.
It's very odd as http://www.mathworks.com/help/techdoc/ref/serial.html explicitly says that the serial command DOES work with 64bit windows. So what am I doing wrong? My code is simply:
comm = serial('COM8','BaudRate',9600, 'Parity', 'none','DataBits',8,'StopBits',1); fopen(comm);
Thanks!

 채택된 답변

Walter Roberson
Walter Roberson 2012년 1월 4일

0 개 추천

Which MATLAB version are you using? The reference to Solaris suggests that you are using an older version, as Solaris has not been supported in several releases. The documentation you reference is for the newest version; it could be that in the MATLAB version you are using, it was not yet supported.

댓글 수: 4

ZK
ZK 2012년 1월 4일
The version I am using is r2008a.
It appears that R2009a is required for that. See
http://www.mathworks.com/help/releases/R2009a/techdoc/index.html?/help/releases/R2009a/techdoc/rn/brvak9c-1.htm
ZK
ZK 2012년 1월 4일
Is there any way to update my r2008a to allow for it?
The only supported way would be to upgrade to R2009a or later. Mathworks seldom provides patches to add new functionality to older releases.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

질문:

ZK
2012년 1월 4일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by