help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is best way to trigger Octave via ethernet?


From: Olaf Till
Subject: Re: What is best way to trigger Octave via ethernet?
Date: Thu, 31 Mar 2016 18:47:43 +0200
User-agent: Mutt/1.5.23 (2014-03-12)

On Thu, Mar 31, 2016 at 06:36:46PM +0200, Olaf Till wrote:
> On Thu, Mar 31, 2016 at 07:54:21AM -0700, Vision wrote:
> > I'm able to send TCP packets from the PLC to a specific IP and port.
> > Is there an option in octave to listen to this specific port and get
> > triggered when data is transferred. I also think that avoiding a loop is
> > better?
> 
> If you already have an .oct file which can read from the port, you can
> use the unix 'select()' call (see 'man 2 select') on this port.  It is
> just there for such a purpouse; it can be used in a way that it
> returns when data is readable.

But since you have only one port to read from, reading in blocking
mode could suffice for you without select.

Olaf

-- 
public key id EAFE0591, e.g. on x-hkp://pool.sks-keyservers.net

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]