help-octave
[Top][All Lists]
Advanced

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

Re: RS232/Serial Comms


From: Søren Hauberg
Subject: Re: RS232/Serial Comms
Date: Thu, 26 Oct 2006 13:34:03 +0200
User-agent: Thunderbird 1.5.0.7 (X11/20060918)

If you're in some unix like system (e.g. GNU/Linux) you should just be able to open the device as a file. Assuming you want read and write to the device /dev/ttyUSB0 simply

  fid = fopen("/dev/ttyUSB0", "r+")
  fwrite(fid, your_data)
  out = fread(fid)

or something similar. If you using windows, then I can't help you.

Søren

Ben Griffiths skrev:
Is there anyway of reading or writing to the Serial/RS232 port from
within Octave/ I've had a search in the manual but been unable to find
anything?

Regards,

Ben G

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

_______________________________________________
Help-octave mailing list
address@hidden
https://www.cae.wisc.edu/mailman/listinfo/help-octave


reply via email to

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