TAMS

Home | Products | Support | How to Order | Contact Us | Search  

LOAD BIN: 

This is how you talk to the cards from BASIC for Windows:

First of course you have installed the drivers from the floppy disk, and SICL is installed, and also BASIC is installed.

Also you have to configure the interfaces within SICL.  

How to configure SICL for TAMS 60488
How to configure SICL for TAMS GPIO Cards

Once the interfaces are configured within SICL, then they can be configured for BASIC.  

 

NOTE for systems with more than one of each type of card:

Each interface needs to be associated with its own file in the HP  BASIC directory (typically C:\Hpbasic).  The system starts out with one copy of HPIBS.dw6 and one copy of GPIOS.dw6.  If you have two HPIB interfaces, you will need to make a copy of the HPIBS.dw6 file for the second card.  It must have the .dw6 extension, but it can have any name.  It is often easiest to name this file in a way that identifies which interface it will be used with. For instance, if you have an interface with a logical number 7 and have named it hpib7, you might want to associate it with a copy of HPIBS. dw6 that is called HPIBS7.dw6; vary it to best suit your needs.  The same procedure holds for GPIOS.dw6 files.

Associating the driver with the interface in BASIC:

Before the card can be used, you must associate the .dw6 driver with the SICL name.  You have the option of specifying what select code you would like to use.   The binary must  loaded exactly once each time the BASIC window is invoked, so it is a good idea to write an AUTOST program that loads the binary.  However, the loading can be done from the command line, or from within an application program.  

From the command line, to load an HPIB interface (where there is only one), type:

LOAD BIN "HPIBS;DEV hpib7 ISC 7" 

If the command completed, you will see a confirming message indicating the HPIBS driver and version.  Otherwise you will get an error.

 

Note:

Substitute the logical name you gave the interface in the SICL configuration utility, if it is not set to hpib7.

 Likewise, to load the driver for the GPIO interface, you might type

LOAD BIN "GPIOS;DEV gpio ISC 12"  

Again, you will either get an error or you will see confirmation that a binary was loaded.

Once the binaries are loaded, they are not needed again as long as the BASIC window is open.  When it is closed and reopened, they need to be added.  Therefore, it makes sense to write an AUTOST routine, like this one:

10   ! "AUTOST"
20   LOAD BIN "HPIBS;DEV hpib7 ISC 7"
30   LOAD BIN "GPIOS;DEV gpio ISC 12"
40   END

This program can be saved or stored in the same HPBASIC directory.  

 

 Home | Products | Distributors | Support | Company Info | How to Order | Contact Us | Search

 
All referenced prices are United States Dollars.
Copyright © 1997-2006 Test & Measurement Systems Inc.
Other products and companies referred to herein are trademarks or registered trademarks of their respective companies or mark holders.  Specifications are subject to change without notice.

Test & Measurement Systems Inc.
750 14th Street SW
Loveland, CO 80537

Tel:  + 970-669-6553
Fax: + 970-669-3090
sales @ tamsinc.com

 

06 Oct 2006