From: Steve on 16 Jun 2010 23:25 Hello, I would be very glad if somebody could help me! I have a "OMRON ES100P Digital Controller" to control the temperature of a furnace. On this Controller i have a rs232c interface which I have connected to a serial port on my pc. I have a software that is able to communicate with the controller, but I want to read the data from the controller via Matlab (R2010a). I use: s=serial('COM1'); fopen(s); fread(s); and then I always get a Timeout Message and nothing happens. I found the Data sheet of my controller and got the following information: Transmission method: None, half-duplex Synchronization method: Start-stop synchronization Baud Rate: 1200/2400/4800/9600/19200 Transmission code: ASCII (7 bit or 8 bit) Can somebody please help me to get this working, it would be a great help for me. Thanks very much in advance, Steve
From: Steve on 17 Jun 2010 20:59 Does nobody have an idea? Please.
From: Walter Roberson on 17 Jun 2010 22:49 Steve wrote: > Does nobody have an idea? Please. I'm wondering why you aren't setting a baud rate in your sample code. The default number of bits per word is probably fine, but if you don't set the baud rate you don't know what you are going to get.
From: Steve on 20 Jun 2010 21:51 Walter Roberson <roberson(a)hushmail.com> wrote in message <D8BSn.39326$7d5.31632(a)newsfe17.iad>... > Steve wrote: > > Does nobody have an idea? Please. > > I'm wondering why you aren't setting a baud rate in your sample code. > The default number of bits per word is probably fine, but if you don't > set the baud rate you don't know what you are going to get. I'm doing that, but it still doesnt work. Would it make a difference if I buy an adaptor to connect the Centroller via USB? Is it easier to read from USB then from the serial port? Thanks!
From: Walter Roberson on 20 Jun 2010 22:23 Steve wrote: > Walter Roberson <roberson(a)hushmail.com> wrote in message > <D8BSn.39326$7d5.31632(a)newsfe17.iad>... >> Steve wrote: >> > Does nobody have an idea? Please. >> >> I'm wondering why you aren't setting a baud rate in your sample code. >> The default number of bits per word is probably fine, but if you don't >> set the baud rate you don't know what you are going to get. > > I'm doing that, but it still doesnt work. Please post your exact current code. I don't like guessing what you really have. > Would it make a difference if > I buy an adaptor to connect the Centroller via USB? Is it easier to read > from USB then from the serial port? No, things are *worse* with USB to serial converters!
|
Next
|
Last
Pages: 1 2 Prev: estimating Laplace tranfer function that matches data Next: how to use princomp function |