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

3 visualizzazioni (ultimi 30 giorni)
Stan sdsd
Stan sdsd il 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)

Risposte (0)

Categorie

Scopri di più su Programming in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by