Matlab, comdlg32.ocx, MSCOMM32.OCX (need help pleas)

조회 수: 5 (최근 30일)
Stan sdsd
Stan sdsd 2013년 2월 4일
Okay, so, I would like to communicate via RS232 some ascii code. But to open the port, it seems that I don't have all the informations on HOW To. fwrite, fprintf doesn't work properly, maybe because the set of the communication protocole is not good (baudrate, stopbits etc..)
But I have a program, that work, but for only one purpose, I want to do the same thing, but with matlab. I try to decompile it, but it's uncomprehensible. So I have found Two files, comdlg32.ocx, MSCOMM32.OCX, in the program file (that work).
What I would like to do, is to call them, in matlab, to set the communication protocole instead of : s= 'com1', set.Baudrate etc...
Is it possible ?
PS : I cannot decompile those files, but it seems that they have been change for the program that work. (maybe I can use them with my matlab program)
Best regards
Stanislas
[Merged information from duplicate]
How can I use MSComm.ocx from windows, to set my rs232 communication protocol ?
Best regards
Stanislas
(I tried fprintf, fwrite, with many option, ... nothing). In a program (.exe) that works, there is a MSComm.ocx and a comdlg32.ocx files, that maybe is the key to correctly connect my computer to the treadmill, and send my ascii code)
  댓글 수: 2
Walter Roberson
Walter Roberson 2013년 2월 4일
Are you using 32 bit MATLAB or 64 bit MATLAB?
Stan sdsd
Stan sdsd 2013년 2월 4일
32 bit, R2009 a

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Programming에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by