how to read data from serial port using matlab in pc
how to read data from serial port using matlab
"lingaraj athi" <firstname.lastname@example.org> wrote in message <email@example.com>...
> how to read data from serial port using matlab
Please find details with examples of IO using Serial Port in the documentation:
...problem with sending data using simulink and serial port
Dear every body,
I am dealing with the sending data from Matlab to
Microcontroller using serial port. For my project, I
intend to send data in the ASCII form, I used S- function
with the main code for sending data as follow:
curtime = cputime ;
data1 = u
data1s = char(data1)
I used another code to receive the sending data by connect
the serial port to another serial port with matlab running,
the main code for receiving as follow:
----------...sending and geting data to and from usb ports using matlab
Hello. i am a student. I use matlab 2011. i am working on a project where i control a simple 2 motor robot using my laptop. i wish to give orders to my robot wireless. so first i thought of using the bluetooth of my laptop. but i found out matlab does not support it. then i thought of using a bluetooth transmitter (bluetooth dongle) which will be connected to one of the usb ports. what shall i do in order to send data to that usb port. i read some of the answers and it seems it is not possible. if it is not possible then what alternatives are available.
...sending ascii and hex data using visa serial port
I am a noob to the whole labview development enviroment and have
searched all over the forum to try and find some answer but have had no
luck so far.
Currently I am trying to implement serial communications using the
serial port library vi (used in the basic serial read and write
example) with a board that requires both ascii and binary data to be
sent to it.
For example this is how it is sent out in Visual Basic
MSComm1.Output = "!B" + Chr$(IOVal)
where Chr$(IOVal) is equivalent to $00 to $FF
I have looked and started modifying the Basic Serial r...how to send any kind of data be it image,text to a usb port using matlab
i want to send data to usb port of my laptop. a usb to ttl cable connects the laptop to a circuit. the circuit is a LED driver system, it does not contain a micro controller.
which matlab functions and toolboxes will be required.?
...serial port reading the data but not displaying the read data in MATLAB
Scenario: i am currently doing a project on transmission of digital
video images using matlab. what i need to do is to transmit the image
data through the serial port of the computer. i have decompsed the
image into individual pixels and i have written a matlab program for
trnasmitting the image data. till this point i was sucessful.
problem: my radio transmitter which connected to the serial port of
the computer is transmitting the data the radio receiver connected to
the serial of the another computer and is controlled by MATLAB. though
my radio receiver is receiving the data matlab is r...sending data to serial port
i want to get binary data from serial port of a pc.how can i do this?
Just typing "serial port" in the Search tab of MatLab's help got me everything
you need to know.
I suggest you do the same.
"SADIK MANZAK" <firstname.lastname@example.org> schreef in bericht
| i want to get binary data from serial port of a pc.how can i do this?
...Serial Port send the same data
I'm interfacing a PC with the pic 18FXX via USB. I'm using a driver
that makes the USB port view as a COM port.
When I send data from the pic y have no problem with it; but when I
send data to the pic using the comand "fwrite" or "fprintf" I always
get a zero value. I suspect that Matlab adds bytes at the beginning
of the stream with 0 value.
At the pic I'm reading one char (a byte).
Does anybody know how Matlab frame it?
"Marttin" <email@example.com> wrote in message
> I'...serial port
i'm try to send/recive to/from a device but when i'm doing it i'm
getting an error report about "timeout period" i didn't found
anything about it and i need help!!
this is my code:
%converting a m*n matrix to one long row matrix
%bw = imread('C:\Documents and Settings\matanya\Desktop\r1.bmp');
%imfinfo('C:\Documents and Settings\matanya\Desktop\r1.bmp')
row=[1 2 3];
% for j=1:h
% row=[row bw(i,j)];
%transmit and receive
%1)creating a serial port object
s = serial('COM1');
%in the ...