background image

5-4

Programming

DriverLINX interface

For maximum portability and versatility, it is recommended that the DriverLINX 

interface be used. The DriverLINX interface has the following advantages:

Hardware independence

 — DriverLINX supports ISA, PCMCIA, and PCI 

digital I/O boards with a common interface as well as digital ports on analog 
I/O and counter/timer boards.

Operating system independence

 — DriverLINX supports Windows 95/98 

and Windows NT with a common interface.

Shared hardware access

 — DriverLINX allows multiple processes or 

threads to cooperatively share hardware resources.

Multi-tasking, multi-threading support

 — DriverLINX provides the syn-

chronization and coordination for multi-tasking, multi-threading applications 
to safely access shared hardware resources.

Portability

 — DriverLINX supports older and newer hardware with a 

common interface for 16- and 32-bit applications on Windows 95/98 and 
Windows NT.

Versatility

 — DriverLINX supports a wide variety of programming styles 

and languages including C/C++, Visual Basic, Delphi, and LabVIEW.

Background I/O

 — DriverLINX supports background I/O using interrupts or 

other techniques so your application can overlap processing and data 
acquisition.

Full hardware support

 — DriverLINX supports all the hardware’s features.

The DriverLINX interface has a few disadvantages compared to the alternative 

interfaces:

Software modifications

 — Existing applications will require rewriting to use 

DriverLINX.

No direct hardware access

 — Before Windows NT, Microsoft discouraged, 

but nevertheless allowed, direct application program access to hardware.

Speed of single-value I/O

 — Applications, especially those ported from 

DOS, that depend on rapid software polling of I/O ports will notice that the 
operating system time cost for multi-tasking, multithreading synchronization 
is higher than direct hardware access.

While writing your application to use a multi-product (portable application pro-

gramming interface is the best long-term solution) you should consider the alternative 
API only for special purpose or short-term needs.

Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com

Содержание PIO-24

Страница 1: ...service in house repair center WE BUY USED EQUIPMENT Sell your excess underutilized and idle used equipment We also offer credit for buy backs and trade ins www artisantg com WeBuyEquipment REMOTE IN...

Страница 2: ...PIO 24Parallel Digital Interface Board User s Guide A G R E A T E R M E A S U R E O F C O N F I D E N C E Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...

Страница 3: ...registered trademark of International Business Machines Corporation Acrobat is a registered trademark of Adobe Systems Incorporated All other brand and product names are trademarks or registered trad...

Страница 4: ...therefore Keithley does not warrant that operation of the Keithley Software will be uninterrupted or error free and or that the Keithley Software will be adequate for the customer s intended applicati...

Страница 5: ...CHINA Yuan Chen Xin Building Room 705 12Yumin Road Dewai Madian Beijing 100029 8610 6202 2886 Fax 8610 6202 2892 FINLAND Tiet j ntie 2 02130 Espoo Phone 09 54 75 08 10 Fax 09 25 10 51 00 FRANCE 3 all...

Страница 6: ...Board User s Guide 1991 Keithley Instruments Inc All rights reserved Cleveland Ohio U S A Third Printing April 2001 Part Number 64230 Rev C Artisan Technology Group Quality Instrumentation Guaranteed...

Страница 7: ...n a new Revision is created all Addenda associated with the previous Revision of the manual are incorporated into the new Revision of the manual Each new Revision includes a revised copy of this print...

Страница 8: ...ry II as described in the International Electrotechnical Commission IEC Standard IEC 60664 Most mea surement control and data I O signals are Installation Category I and must not be directly connected...

Страница 9: ...in the manual The symbol on an instrument shows that it can source or measure 1000 volts or more including the combined effect of normal and common mode voltages Use standard safety precautions to av...

Страница 10: ...2 4 Installing and configuring DriverLINX for PIO 24 boards 2 5 Before installing DriverLINX 2 5 Selecting the DriverLINX components to install 2 6 Installing DriverLINX 2 6 Configuration with DriverL...

Страница 11: ...guring the Direct I O Driver 5 6 Programming the Direct I O Interface 5 6 6 Troubleshooting General 6 2 Using the DriverLINX Event Viewer 6 2 Device initialization error messages 6 2 Problem isolation...

Страница 12: ...figuring DriverLINX Figure 4 1 An AIO Panel example 4 4 Figure 4 2 DIO channel tab example 4 5 Figure 4 3 Configuring the digital I O channels as inputs and outputs 4 6 Figure 4 4 Configuring channel...

Страница 13: ...address map 2 4 3 I O Address Map Table 3 1 PIO 24 locations 3 2 5 Programming Table 5 1 Mode 0 control words and port directions 5 3 6 Troubleshooting Table 6 1 Troubleshooting information 6 3 Artis...

Страница 14: ...1 Introduction Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...

Страница 15: ...ires an IBM PC or compatible AT 386 or Pentium CPU with minimum of 2 MB of memory at least one floppy disk drive and one fixed disk drive Microsoft Windows 95 98 or Windows NT 4 0 or higher a compiler...

Страница 16: ...you operate DriverLINX Supplemental Documentation on DriverLINX installation and config uration analog and digital I O programming counter timer program ming technical reference and information specif...

Страница 17: ...epends on this input load current being near the 450 A limit this change is important The reduc tion in input load current reduces the possibility of the input state being driven high if the input is...

Страница 18: ...activities such as communicating with peripherals operating relays reading switch inputs etc Keithley Instruments applications engineers welcome inquiries into installation operation and applications...

Страница 19: ...T 0 4mA Input Load High Current PA PB PC 70 a INTERRUPT ENABLE 20 a INTERRUPT 20 a Output low voltage PA PB PC Isink 64mA 0 55V Output high voltage PA PB PC Isource 15mA 2 0V Isource 3mA 2 7V Bus Load...

Страница 20: ...0 9 8 7 6 5 4 3 2 1 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 PC Power Supplies PB Port PA Port PC Port Interrupt Enable Interrupt Input Dig Com 5V Dig Com 5V Dig Com 12V Dig Com 12V Dig C...

Страница 21: ...2 Installation Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...

Страница 22: ...body thereby preventing damage to board components 2 Carefully unwrap the board from its antistatic wrapping material 3 Inspect the board for signs of damage If any damage is apparent return the boar...

Страница 23: ...itch S2 ON 1 2 3 4 5 6 7 8 9 8 7 6 5 4 3 2 BASE ADDRESS INTERRUPT LEVEL 2 3 4 5 6 7 X J8 SLOT ON 1 2 3 4 5 6 7 8 Address Line A9 A8 A7 A6 A5 A4 A3 A2 Address Line Values Decimal Hex 512 256 128 64 32...

Страница 24: ...cupy the J8 slot of an IBM PC XT the J8 slot is rightmost on the PC XT motherboard Placing the jumper on the lower two pins simply turns this option off Interrupt level selection You may select one of...

Страница 25: ...aged with the DriverLINX software They are accessed from the DriverLINX CD ROM after you have installed Adobe Acrobat Before installing DriverLINX 1 Inventory your PIO 24 board s configuration setting...

Страница 26: ...ait a few seconds for automatic start up Otherwise run the setup exe program from the CD ROM 3 The DriverLINX CD ROM Browser Map window appears on the screen Click Install Drivers and follow the serie...

Страница 27: ...ly tilt the cover upwards and remove 3 Choose an available option slot Loosen and remove the screw at the top of the blank adapter plate Then slide the plate up and out to remove 4 Hold the PIO 24 boa...

Страница 28: ...may find it more feasible to use the PIO 24 power outputs In most other cases however you are advised to power external devices from their own supplies NOTE Typically base addresses between 300h and...

Страница 29: ...3 I OAddressMap Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...

Страница 30: ...requires a full block of four I O addresses Table 3 1 PIO 24 locations Location Function Type Base Address 0 PA Port Read Write Base Address 1 PB Port Read Write Base Address 2 PC Port Read Write Bas...

Страница 31: ...4 ConfiguringDriverLINX Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...

Страница 32: ...LINX or enter drive DRVLNX LEARNDL in the Command Line edit box The command line edit box is activated by selecting the Run option drive is the letter of the hard disk drive where DriverLINX is insta...

Страница 33: ...ps starting at step 5 for each Logical Device you wish to configure You can use DriverLINX to verify board operation 1 To physically initialize the PIO 24 select Device Initialize from the main menu i...

Страница 34: ...similar to the example in Figure 4 1 If you have other DriverLINX devices installed in addition to the digital input output card you are test ing they will also be listed In that case select the desir...

Страница 35: ...registers will vary Bits displayed on the Digital Input Panel and the Digital Output Panel are numbered 0 7 for every channel Refer elsewhere in this manual for a description of the available ports a...

Страница 36: ...n OFF a bit in the same way To read an input channel bit use the Digital Input Panel First select the channel number to be checked by clicking the appropriate square under Channels Then read the numbe...

Страница 37: ...patterns set by software using a DriverLINX graphical interface AIO Panel NOTE This test is performed without user circuits being connected to the outputs Perform the output set test as follows 1 Rea...

Страница 38: ...nalog I O Panel should appear similar to the example in Figure 4 5 If you have other DriverLINX devices installed in addition to the digital input output card you are test ing they will also be listed...

Страница 39: ...lable will vary according to your hardware Figure 4 6 Configuring the digital I O channels as inputs and outputs NOTE In Figure 4 6 and subsequent drawings of digital I O controller panels the squares...

Страница 40: ...details on the output s electrical specification If the bit patterns set on the AIO Panel do not agree with the logic levels measured at the I O terminals the board is not functioning properly Stop h...

Страница 41: ...on in this user s guide for more details on the output s electrical specification If the bit patterns set on the AIO Panel do not agree with the logic levels measured at the I O terminals the board is...

Страница 42: ...5 Programming Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...

Страница 43: ...bit data output latch buffer and one 8 bit data input buffer Port C Consists of one 8 bit data output latch buffer and one 8 bit data input buffer This port can be divided into two 4 bit ports under...

Страница 44: ...match your programming needs The supported driver interfaces are DriverLINX An interface that is hardware and operating system indepen dent and supports multi tasking multi threading applications Dire...

Страница 45: ...styles and languages including C C Visual Basic Delphi and LabVIEW Background I O DriverLINX supports background I O using interrupts or other techniques so your application can overlap processing and...

Страница 46: ...tible with DriverLINX Applications cannot use this interface with DriverLINX for the PIO Series either in the same or another application 32 bit only interface 16 bit applications cannot use this inte...

Страница 47: ...Device long Device Opens a PIO device Device is the DriverLINX Logical Device number of the PIO board to open HRESULT CloseDevice Closes a previously opened PIO device The number of CloseDevice calls...

Страница 48: ...a list of libraries 5 Search for KISAPIOLib 6 The Object Browser shows the VB syntax for the KISAPIO class Creating a simple Visual Basic application 1 Create a Visual Basic form 2 Add the following s...

Страница 49: ...6 Troubleshooting Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...

Страница 50: ...LINX event log entries can help you or technical support troubleshoot data acquisition hardware and software problems Device initialization error messages During device initialization DriverLINX perfo...

Страница 51: ...stent with what the program is addressing Make sure no other computer device is using the interrupt level specified in your program If necessary reset the interrupt level The board configuration is in...

Страница 52: ...rd Check the I O assignments of other system resources and reconfigure if necessary Computer does not boot Board not seated properly Check the installation of the board The base address setting of the...

Страница 53: ...When you are sure that the computer is operating properly test the computer accessory slot and I O connections using another PIO 24 board that you know is functional To test the computer accessory sl...

Страница 54: ...ll PIO 24 board configuration Model Serial number Revision code Base address setting Interrupt level setting Number of channels Output signal V or I Mode uni or bip Output span Number SSH 8 boards Num...

Страница 55: ...outside of the package Repackage the equipment using the original anti static wrapping if possible and handle it with ground protection Ship the equipment to ATTN RMA _______ Repair Department Keithle...

Страница 56: ...nstalling and configuring 2 5 using to verify board operation 4 3 drivers installing for applications 2 6 E error messages device initialization 6 2 event log used to detect errors 6 2 event viewer in...

Страница 57: ...T technical support instructions for using 6 6 V verify board operation using DriverLINX 4 3 Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...

Страница 58: ...4 93 07 34 GREAT BRITAIN Unit 2 Commerce Park Brunel Road Theale Berkshire RG7 4AB 0118 929 7500 Fax 0118 929 7519 INDIA Flat 2B Willocrissa 14 Rest House Crescent Bangalore 560 001 91 80 509 1320 21...

Страница 59: ...service in house repair center WE BUY USED EQUIPMENT Sell your excess underutilized and idle used equipment We also offer credit for buy backs and trade ins www artisantg com WeBuyEquipment REMOTE IN...

Отзывы: