From: Vihang Patil on
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
From: Walter Roberson on
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?
From: Vihang Patil on
Walter Roberson <roberson(a)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.