Author Topic: Controlling test equipment with HP-IB using QB64  (Read 3624 times)

0 Members and 1 Guest are viewing this topic.

Offline Ernie49

  • Newbie
  • Posts: 3
    • View Profile
Controlling test equipment with HP-IB using QB64
« on: October 28, 2018, 03:50:03 pm »
Could anyone help me with this problem, please. I had done this in my job about 30 years ago using Quick Basic,
but unfortunately the code is lost and I have no idea how I did it.

Now I use a hp 82357B (HP-IB to USB) interface which works well with some other programs.

So it would help me much, if somebody has written some code that gives me startpoint.

Regards
Ernie49

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Controlling test equipment with HP-IB using QB64
« Reply #1 on: October 28, 2018, 04:08:52 pm »
Welcome to the forum Ernie,

This is out of my expertise but might be of help for you:
http://qb64.org/wiki/Port_Access_Libraries

You should find plenty of help with general QB64 programming here. Is that what you are looking for?

Offline Ernie49

  • Newbie
  • Posts: 3
    • View Profile
Re: Controlling test equipment with HP-IB using QB64
« Reply #2 on: October 29, 2018, 12:18:19 pm »
Thanks for info. However this does not exactly fit my needs.

Meanwhile I found some good examples for HP-IB communication using QB45. But all are using National Instruments GPIB adaptor with a file QBdecl.bas, none of them use the HP adaptor. So I have to find out if QBdecl.bas works wit the HP adaptor, if not I hope I will be able to modifiy.

It is quite a long time I have done programming, so I am on a learning curve agaain.
« Last Edit: October 30, 2018, 03:29:42 pm by Ernie49 »

Offline doppler

  • Forum Regular
  • Posts: 241
    • View Profile
Re: Controlling test equipment with HP-IB using QB64
« Reply #3 on: October 29, 2018, 04:09:16 pm »
However this does not exactly fit my needs.

Actually I think it can.  You need the documentation for the HP bus controller.  It won't be interrupt driven, with today's fast computers it's possible to poll the devices. Good enough.  There maybe open source code and docs to use as a basis to talk IB.  Hell look at the Linux world, somebody has drivers/source code to use.  Maybe old but it's a kick start.

Offline Ernie49

  • Newbie
  • Posts: 3
    • View Profile
Re: Controlling test equipment with HP-IB using QB64
« Reply #4 on: October 30, 2018, 03:33:58 pm »
@doppler: I read your comment after I modified my first comment. Thanks