[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-patch-tracker] [patch #8263] Instrument control package: add mod
From: |
Stefan Mahr |
Subject: |
[Octave-patch-tracker] [patch #8263] Instrument control package: add modbus capabilities |
Date: |
Sat, 11 Jan 2014 19:35:22 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:26.0) Gecko/20100101 Firefox/26.0 |
Follow-up Comment #1, patch #8263 (project octave):
Just looked to the code. It's a very low level interface to libmodbus. I would
prefer a more high level interface, similar to the existing interfaces with
own data type.
For example:
a = modbus('192.168.1.1','tcp'); % to create a new type, using tcp in this
case
fopen(a); % allocate resource and connect (modbus_new_tcp, modbus_connect)
fflush(a); % (modbus_flush)
fprintf/fwrite(a,bits); % read/write bits
fread(a,bits);
get(a,'registers'); % reading/writing registers
set(a,'registers',registerset);
fclose(a); % close modbus (modbus_close, modbus_free)
clear(a); % clears variable from memory (and closes it if not done with
fclose)
I've never worked with modbus yet, so what's your opinion? Does it make
sense?
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/patch/?8263>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-patch-tracker] [patch #8263] Instrument control package: add modbus capabilities,
Stefan Mahr <=