2010-09-20

ruby rmodbus serialport

I like to use ruby for make test. On some project I must use a serial modbus for testing. For that rmodbus is a fine lib. However the installation of it on windows can be a little tricky because the serialport lib has to be compiled. Here is how it done.

Install ruby with the one click installer:
http://rubyinstaller.org/

Then install the DevKit for ruby
http://rubyinstaller.org/add-ons/devkit/
http://github.com/oneclick/rubyinstaller/wiki/Development-Kit

run these commands in the directory in which DevKit has been extracted:
ruby dk.rb  init
ruby dk.rb install

The rmodbus lib is located the
http://rmodbus.heroku.com/
http://github.com/flipback/RModBus

Installation is however quite simple:
gem install rmodbus

No comments:

Post a Comment