MATLAB supports serial devices including RS-232 when using Instrument Control Toolbox.
This MATLAB code example shows you how to communicate with a serial device.
This MATLAB code example was automatically generated with a device configuration tool provided by the toolbox. Type "tmtool" to start this tool. This is a basic code example to show you how to get started using MATLAB to communicate with a serial device.
Learn more about using MATLAB with serial devices at:
https://www.mathworks.com/products/instrument/supported/serial.html
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
I was able to connect my device to MATLAB using this code. But how to actually read and save the data which is sent from the device?
hello, quen I write pmode start or matlabpool('open',numberf of core) have one err. Do you know why:
only basic information.....
ooo lale e du mor burr ket program se e do profesori
Don't waste your time- this is just the most basic four-line example copied straight from the MATLAB help file.
Thank you,I was using:
"p=instrfind;
s1=Serial('COM1','baudrate',9600,'stopbits',1,
'Terminator','LF','timeout',Te);"
s1.ReadAsyncMode = 'continuous';
but acquisition can't go down .05s
I NEED IT FOR STUDY
thank you
good
it will help me to modify the project
hobby
22
its very good.
Solicito su orientación para conseguir el serial de matlab 2006.
good
good
it is good to have something to leaD US
j'ai besoin d'un programme en matlab pour identifier une trame avec le protocole RS232
sur le oport série de mon pc;
good application
while using Rs-232 of PLC & SCADA the micro controller programming is used , while used in m- file programming , we r using the concept of c language
Thangk You!
thank u
thankyou
Works for me. It is a basic example, but it shows how to use Matlab to talk to a serial device by using a tool, how the tool auto generates Matlab script for you, and how to generate a report.
Doesn't help me any! :(