Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
serial communication

Subject: serial communication

From: Vihang Patil

Date: 18 Jun, 2010 13:08:05

Message: 1 of 3

Hello, I am trying to use modbus communication on a RS232 (serial port), and able to successfully communicate with my device.
But the data acquisition speed is really slow
i.e when I tried
tic;fprintf(s,str,'async'); %write modbus;toc
It took approximately 0.065 to 0.1 sec to write to the serial port.
I wanted to know if there is any alternative to this command, as I have observed that modbus communication through VB is much faster. So, is Matlab slowing it down?
Vihang

Subject: serial communication

From: Walter Roberson

Date: 18 Jun, 2010 13:38:36

Message: 2 of 3

Vihang Patil wrote:
> Hello, I am trying to use modbus communication on a RS232 (serial port),
> and able to successfully communicate with my device. But the data
> acquisition speed is really slow
> i.e when I tried tic;fprintf(s,str,'async'); %write modbus;toc
> It took approximately 0.065 to 0.1 sec to write to the serial port. I
> wanted to know if there is any alternative to this command, as I have
> observed that modbus communication through VB is much faster. So, is
> Matlab slowing it down?

Is there a USB to serial converter somewhere in there?

Subject: serial communication

From: Vihang Patil

Date: 18 Jun, 2010 13:52:05

Message: 3 of 3

Walter Roberson <roberson@hushmail.com> wrote in message <wFKSn.37875
>
> Is there a USB to serial converter somewhere in there?

No, there is no USB to Serial Converter, but a RS485 to RS232 converter. My device has a RS485 port.

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us