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

3 Ansichten (letzte 30 Tage)
Stan sdsd
Stan sdsd am 4 Feb. 2013
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 Kommentare
Walter Roberson
Walter Roberson am 4 Feb. 2013
Are you using 32 bit MATLAB or 64 bit MATLAB?
Stan sdsd
Stan sdsd am 4 Feb. 2013
32 bit, R2009 a

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by