Matlab, comdlg32.ocx, MSCOMM32.OCX (need help pleas)
Show older comments
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 Comments
Walter Roberson
on 4 Feb 2013
Are you using 32 bit MATLAB or 64 bit MATLAB?
Stan sdsd
on 4 Feb 2013
Answers (0)
Categories
Find more on Programming in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!