# IEEE-488 (GP-IB) Interface Lib for Ruby

**URL:** <https://www.ruby-forum.com/t/ieee-488-gp-ib-interface-lib-for-ruby/78641>\
**Category:** Ruby\
**Created:** [December 7, 2006, 2:58pm UTC](https://www.ruby-forum.com/t/ieee-488-gp-ib-interface-lib-for-ruby/78641 "2006-12-07T14:58:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![john\_old](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9f8e36/32.png) [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Post date:** [December 7, 2006, 2:58pm UTC](https://www.ruby-forum.com/t/ieee-488-gp-ib-interface-lib-for-ruby/78641/1 "2006-12-07T14:58:54Z")

</div>

Greetings,

Is anyone aware of a Ruby library for controlling IEEE-488 interface  
cards? The specific application that I am having to work with is  
running MS-Windows XP and uses National Instruments IEEE-488 interface  
cards. So far a search of this newsgroup and the general web hasn’t  
returned anything promising. NI normally provides several levels of  
drivers, ranging from direct port access through DLL and COM  
interfaces. Use of any of these would probably be acceptable.

Thanks,

John

* * *

Dr. John J.  
LIMS Manager  
Division of Consolidated Laboratory Services  
600 N. 5th St.  
Richmond, VA 23219

Mailto: removed\_email\_address@domain.invalid \<— Address Change  
Phone: 804-648-4480, X-384  
FAX: 804-692-0416

---

<div class="post-metadata">

**Author:** ![john\_old](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9f8e36/32.png) [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Post date:** [December 7, 2006, 11:55pm UTC](https://www.ruby-forum.com/t/ieee-488-gp-ib-interface-lib-for-ruby/78641/2 "2006-12-07T23:55:21Z")

</div>

John J. wrote:

> NI normally provides several levels of  
> drivers, ranging from direct port access through DLL and COM  
> interfaces.

Get the COM ones, and try WIN32OLE? Probably a fairly nice and  
effortless way if it works in the first place and portability to  
non-Windows is not an issue.

David V.

---

<div class="post-metadata">

**Author:** ![john\_old](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9f8e36/32.png) [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Post date:** [December 8, 2006, 1:35am UTC](https://www.ruby-forum.com/t/ieee-488-gp-ib-interface-lib-for-ruby/78641/3 "2006-12-08T01:35:32Z")

</div>

On 12/7/06, John J. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Greetings,
> 
> Is anyone aware of a Ruby library for controlling IEEE-488 interface  
> cards? The specific application that I am having to work with is  
> running MS-Windows XP and uses National Instruments IEEE-488 interface  
> cards. So far a search of this newsgroup and the general web hasn’t  
> returned anything promising. NI normally provides several levels of  
> drivers, ranging from direct port access through DLL and COM  
> interfaces. Use of any of these would probably be acceptable.

[http://raa.ruby-lang.org/project/ruby-gpib/](http://raa.ruby-lang.org/project/ruby-gpib/)

Have not tried these personally. We use the NI Ethernet / GPIB  
converter boxes here at work. Everything is just a socket call, but  
the transfer rates are slower than the PCI cards.

Blessings,  
TwP

---

<div class="post-metadata">

**Author:** ![john\_old](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9f8e36/32.png) [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Post date:** [December 8, 2006, 1:37am UTC](https://www.ruby-forum.com/t/ieee-488-gp-ib-interface-lib-for-ruby/78641/4 "2006-12-08T01:37:32Z")

</div>

On 12/7/06, David V. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> John J. wrote:
> 
> > NI normally provides several levels of  
> > drivers, ranging from direct port access through DLL and COM  
> > interfaces.
> 
> Get the COM ones, and try WIN32OLE? Probably a fairly nice and  
> effortless way if it works in the first place and portability to  
> non-Windows is not an issue.

There is some sample code here …

[http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-list/20748](http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-list/20748)

The code is readable if the Japanese is not 😉

TwP
