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

3 ビュー (過去 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 Center および File ExchangeProgramming についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by