background image

 

4. Application Development 

 

 

 

GP-IB(USB)FL 

21

 

4.

 

Application Development 

The API-GPIB(WDM), API-GPIB(98/PC), and API-GPLV(W32) driver libraries are provided for 

application development.  The following sections describe each and the main programming languages 

that can be used. 

API-GPIB(WDM) 

API-GPIB(WDM) is the GPIB driver for CONTEC's new API specification. 

It is simpler than API-GPIB(98/PC) in areas such as the setup for multiple GPIB communication 

converters. 

If you are developing a new application or are an existing user of the "GPIB Development Environment 

in API-USBP(WDM)", please install this library. 

API-GPIB(98/PC) 

The API-GPIB(98/PC) driver uses the same API specification as the GPIB driver in API-PAC(W32). 

If you want to use the same API specification as the GPIB driver in API-PAC(W32), please install this 

library. 

The "Runtime Only" part has a minimum configuration and provides an environment for running the 

applications you develop.  The "Develop" contains the files required for application development. 

(NOTE : Be sure to make the device recognized by the OS prior to the operation above with API-USBP (WDM) in the attached 

CD-ROM.) 

 

API-GPLV(W32) 

API-GPLV(W32) driver is the same driver as GPIB driver for LabVIEW in API-PAC(W32). 

If you want to use the same API specification as the LabVIEW driver in API-PAC(W32), please install 

this library.  Run the X:Apipac\Gplv\Disk1\setup.exe (X : CD-ROM drive) from the [Run] of start menu. 

The "Runtime Only" part has a minimum configuration and provides an environment for running the 

applications you develop.  The "Develop" contains the files required for application development.  Run 

the X:Apipac\Runtime\Gplv\Disk1\setup.exe (X : CD-ROM drive) from the [Run] of start menu. 

 

 

Summary of Contents for GP-IB(USB)FL

Page 1: ...PC HELPER High Speed IEEE 488 2 I F Micro Converter for USB2 0 GP IB USB FL User s Manual CONTEC CO LTD ...

Page 2: ...plete If you discover damaged or missing items contact your retailer Product Configuration List Micro Converter GP IB USB FL 1 USB Cable 1 8m 1 USB Cable Attachment 1 First step guide 1 CD ROM 1 API USBP WDM 1 1 The CD ROM contains the driver software and User s Guide this guide CD ROM API USBP WDM Micro Converter GP IB USB FL USB Cable 1 8m USB Cable Attachment First Step Guide ...

Page 3: ...ge without notice All relevant issues have been considered in the preparation of this document Should you notice an omission or any questionable item in this document please feel free to notify CONTEC CO LTD Regardless of the foregoing statement CONTEC assumes no responsibility for any errors that may appear in this document or for results obtained by the user as a result of using this product Tra...

Page 4: ... Information 4 Handling Precautions 4 Environment 6 Inspection 6 Storage 6 Disposal 6 2 SETUP 7 What is Setup 7 Installing the driver 7 Step 1 Setting the Hardware 8 Name of each parts 8 Step 2 Software Installation 10 Illustration of Menu Screen 10 Installation of API USBP WDM Development Environment 11 Step 3 Installing the Hardware 13 Connecting the converter 13 Setting with the Found New Hardw...

Page 5: ...grams 25 For using API GPLV W32 27 Accessing the Help File 27 Function List 28 Using Sample Programs 31 Diagnostic Program 32 Version Upgrade 33 How to Upgrade the Firmware 33 Driver Upgrade 34 Returning to Initial State 35 5 FUNCTIONS 39 Basic GPIB Functions 39 Master slave function 39 Communication function 39 Serial poll parallel poll SRQ send functions 39 My address setting 39 Additional Funct...

Page 6: ...lly as the bus power of USB is used With the USB cable 1 8 m included in this kit it can be connected to any equipment with GPIB interface without any GPIB cables Employs a buffer memory 2 Kbytes for transmission and 2 Kbytes for reception Employs a buffer memory 2 Kbytes dedicated to transmission and 2 Kbytes dedicated to reception in order to reduce the load to the CPU when transmitting receivin...

Page 7: ...s on the supported OS applicable language and new information please visit the CONTEC s Web site API GPLV W32 library supporting LabVIEW Supplied Stored on the API USBP WDM CD ROM API GPLV W32 is a driver created according to the National Instruments Corporation s GPIB function style The driver is software to control the CONTEC GPIB board using a LabVIEW based GPIB system or existing application p...

Page 8: ...when this device is returned freight prepaid with a copy of the original invoice and a Return Merchandise Authorization to the distributor or the CONTEC group office from which it was purchased This warranty is not applicable for scratches or normal wear but only for the electronic circuitry and original products The warranty is not applicable if the device has been tampered with or damaged throug...

Page 9: ...ion overheat cause a failure or breakage Do not touch this product s pin parts USB connector GPIB connector with your hands Otherwise this product may malfunction overheat or cause a failure If the pin parts are touched by someone s hands clean the parts with industrial alcohol Make sure that your PC can supply ample power to all the products installed Insufficiently energized products could malfu...

Page 10: ...FCC Rules These limits are designed to provide reasonable protection against harmful interference when the equipment is operated in a commercial environment This equipment generates uses and can radiate radio frequency energy and if not installed and used in accordance with the instruction manual may cause harmful interference to radio communications Operation of this equipment in a residential ar...

Page 11: ...he product periodically as follows to use it safely Check that the converter has no dust or foreign matter adhering Storage When storing this product keep it in its original packing form 1 Put this product in the storage bag 2 Wrap it in the packing material then put it in the box 3 Store the package at room temperature at a place free from direct sunlight moisture shock vibration magnetism and st...

Page 12: ...epare the software and hardware by operating in accordance with each step in this chapter using the bundled CD ROM Taking the following steps sets up the software and hardware You can use the diagnosis program later to check whether the software and hardware function normally Step 1 Setting the Hardware Step 2 Installing the Software Step 3 Installing the Hardware If Setup fails to be performed no...

Page 13: ...e to connect these pins to the earth for noise static electricity measure Figure 2 1 Name of each parts Front side Table 2 1 List of Status LED Functions Name Function Indicator color LED indicator ON Communication is established USB communication status OFF Communication is not established ON PC communication is established LINK Status PC connection status GREEN OFF PC communication is not establ...

Page 14: ...high bits and low bits of Module ID respectively Use a flathead screwdriver or similar to open the cover on the underside of the GP IB USB FL This exposes the rotary SW to set the Module ID As shown in Figure 2 2 an easy way to open the cover is to insert the tip of the screwdriver into the slot on the underside of the connection cable and then rotate the screwdriver Figure 2 2 How to open the cov...

Page 15: ...ministrator authorized account before proceeding to the following steps Illustration of Menu Screen Page 10 Page 13 Page 15 Setting Properties Using Device Manager Setting device name Software Installation API GPIB WDM Development Environment API GPIB 98 PC Runtime Development API GPLV W32 Runtime Development Utilities Connecting to a PC Installing USB driver Install the Development Environment su...

Page 16: ...a Logger Software for Analog Terminal This product don t need to install C LOGGER Utility is tools for USB Module This product don t need to install Utility Installation of API USBP WDM Development Environment Installation of development environment is namely installing supplied online help and sample program in all language in order to use API function 1 Clicking on Install Development or Executi...

Page 17: ...PIB communication For more details on installing API GPLV W32 refer to the P21 3 Clicking on Install Button Please perform installation following the directions on the screen And thus the installation is completed The screen design may be different ...

Page 18: ...has been up and running plug the USB interface connector to a USB port in the PC The converter can also be connected to the PC via a USB hub USB ports Figure 2 4 Connecting to a PC CAUTION It may cause a trouble in recognizing and operating the device according to the kind of USB hub If you use the USB hub we encourage you to take advantage of the CONTEC s product loan service to confirm operation...

Page 19: ...st or specific location Advanced then click on the Next button Detect setup information from supplied CD automatically for installing USB driver Point Please specify the path for supplied CD as follows in the case of failure in detecting automatically X INF WDM GPIB X CD ROM drive 3 Click on Finish button to complete the installation of USB driver The name of the converter you have just added is d...

Page 20: ...evice Manager and set properties 1 Starting Device Manager From Start menu click on Settings Control Panel System and then click on Device Manager button in Hardware tab In the case of Windows 98 Me Right click on My Computer and select Properties to start device manager The name of the converter you have just added is displayed GP IB USB FL ...

Page 21: ...ettings must be performed 3 Clicking on OK button Device name is set by clicking OK button Points When the application developed by users is running on another PC please perform foregoing operation on the target computer No need to install software introduced on next page Please use the device name specified in last step for initialization function when initialization is performed using API functi...

Page 22: ...e screw Applicable connector cable GPIB cable IEEE 488 rated 12 24 1 13 Figure 3 1 Interface Connectors Connector Pin Assignment CN1 12 11 10 9 8 7 6 5 4 3 2 1 24 23 22 21 20 19 18 17 16 15 14 13 Logic GND GND Ground GND Ground GND Ground GND Ground GND Ground GND Ground REN Remote Enable Management bus DIO8 Data bus DIO7 Data bus DIO6 Data bus DIO5 Data bus GND ATN SRQ IFC NDAC NRFD DAV EOI Data ...

Page 23: ...1901 1987 Note however the individual cables between devices must be within 4 m long Some examples are given below System with a total of two devices 2 m x Number of devices 2 20 m The maximum total length of cables for this system is therefore 4 m 3765 System with a total of three devices 2 m x Number of devices 3 20 m The maximum total length of cables for this system is therefore 6 m The two ca...

Page 24: ...can send messages to the listener 8 At least two thirds of all the devices connected must be turned on For EMC measures 1 For the radiation EMC measures attach the ferrite core to 1 2 For the transmission EMS measures attach the ferrite cores to 1 and 3 3 For the static electricity measures attach the ferrite cores to 1 and 3 Then attach a copper wire to 2 using copper foil tape to connect to the ...

Page 25: ...3 External Connection 20 GP IB USB FL ...

Page 26: ...ication as the GPIB driver in API PAC W32 please install this library The Runtime Only part has a minimum configuration and provides an environment for running the applications you develop The Develop contains the files required for application development NOTE Be sure to make the device recognized by the OS prior to the operation above with API USBP WDM in the attached CD ROM API GPLV W32 API GPL...

Page 27: ... for application development such as function reference is provided in API USBP W32 Help Detailed introduction to search method for help should be found from How to navigate Help in the help Printing Function Reference Clicking on Print button from online help prints the page being displayed It can be printed entirely as follows in the case of referencing to printing function As figure shown on th...

Page 28: ...USB FL 23 Sample Program To run a sample program click on Programs CONTEC API USBP WDM gpib Sample Name from Start menu Distributing Developed Application Please distribute the developed application with USB driver in supplied CD ROM ...

Page 29: ...ent 24 GP IB USB FL For using API GPIB 98 PC Accessing the Help File 1 Click on the Start button on the Windows taskbar 2 From the Start Menu select Programs CONTEC API PAC W32 GPIB API GPIB HELP to display help information ...

Page 30: ...W voltage generators and SONY Tektronix oscilloscopes Use these sample programs as references for program development and operation check The sample programs are stored in Program Files CONTEC API PAC W32 GPIB Samples Running a Sample Program 1 Click on the Start button on the Windows taskbar 2 From the Start Menu select Programs CONTEC API PAC W32 GPIB SAMPLE 3 A sample program is invoked ...

Page 31: ...and events to sample and display data Voltage Source control Allows the master to gain control of a digital voltmeter at fixed intervals Oscilloscope 1 Receives screen data from an oscilloscope and displays it in a graph Oscilloscope 2 Receives screen data from an oscilloscope and saves it in CSV format MultiLine Message Creates a multiline message for the remote device Master Mode MultiLine Messa...

Page 32: ...talled existing applications such as LabVIEW can operate CONTEC GPIB products For details refer to the help file The help file provides information such as operation specifications additional information and troubleshooting Accessing the Help File 1 Click on the Start button on the Windows taskbar 2 From the Start Menu select Programs CONTEC API PAC W32 GPLV API GPLV HELP to display help informati...

Page 33: ...nes ibln Check for the presence of a device on the bus ibloc Go to local ibnotify Asynchronously notify user when one or more GPIB events occur ibonl Place the device online or offline ibpad Change the primary address ibppc Parallel poll configure ibrd Read data from a device into a user buffer ibrda Read data asynchronously from a device into a user buffer ibrdf Read data from a device into a fil...

Page 34: ... notify user when one or more GPIB events occur ibonl Place the device online or offline ibpad Change the primary address ibpct Pass control to another GPIB device with Controller capability ibppc Parallel poll configure ibrd Read data from a device into a user buffer ibrda Read data asynchronously from a device into a user buffer ibrdf Read data from a device into a file ibrpp Conduct a parallel ...

Page 35: ...k ReadStatusByte Serial poll a single device Receive Read data bytes from a device ReceiveSetup Address a device to be a Talker and the interface product to be a Listener in preparation for RcvRespMsg ResetSys Reset and initialize IEEE 488 2 compliant devices Send Send data bytes to a device SendCmds Send GPIB command bytes SendDataBytes Send data bytes to devices that are already addressed to lis...

Page 36: ...am development and operation check The sample programs are stored in Program Files CONTEC API PAC W32 GPLV Samples Running a Sample Program 1 Click on the Start button on the Windows taskbar 2 From the Start Menu select Programs CONTEC API PAC W32 GPLV SAMPLE GPLV 3 A sample program is invoked Program example GpibTest Executes initialization transmission reception and polling ...

Page 37: ... if abnormality exists in hardware or software Run diagnostic program open Properties for converter of device manager and then click on Diagnosis button in Common Settings tab Diagnostic program allows you to check send and receive executions as well as to diagnose in detail by clicking Diagnosis S button ...

Page 38: ... be performed at the same time 0 12 3 4 6 9 A B C E 8 Module ID x1 Module ID x16 Module ID FFh 0 12 3 4 6 9 A B C E 8 F F 3 Connecting converter with USB Port Please connect converter with USB Port 4 Starting Firmware Upgrade Tools When API GPIB WDM environment Click on Programs CONTEC API USBP WDM Firmware upgrade tool from Start menu When API GPIB 98 PC environment API GPLV W32 environment Click...

Page 39: ...backup the old firmware before downloading the new firmware 1 Click the Start backup button and specify where to save the uploaded file 2 Click the OK button to start the upload Driver Upgrade If there is up to date driver it is supplied in the homepage of our company http www contec com download ...

Page 40: ...nstall procedure for Windows 7 Vista and Windows Server 2008 Uninstall of device driver 1 Run Device Manager From My Computer Control Panel select System and then select the Device Manager tab You can also open Device Manager by right clicking on My Computer and selecting Properties 2 All of the hardware that uses the API TOOL WDM driver is registered under the CONTEC Devices tree Open the device ...

Page 41: ...ows XP and Windows Server 2003 Uninstall of device driver Use My Computer Control Panel Add and Remove Programs to uninstall the device driver Select Windows driver package CONTEC and then click Change Remove contains the driver category name caio ccnt cdio csmc etc Uninstall of development environment Use My Computer Control Panel Add and Remove Programs to uninstall the development environment S...

Page 42: ...ronment and then click Add Remove contains the driver category name AIO CNT DIO etc Uninstall procedure for Windows 98 98SecondEdition Uninstall of device driver Use My Computer Control Panel Add and Remove Applications to uninstall the device driver Select CONTEC API WDM driver and then click Add Remove contains the driver category name AIO CNT DIO etc Uninstall of development environment Use My ...

Page 43: ...4 Application Development 38 GP IB USB FL ...

Page 44: ...an send and receive data in accordance with the IEEE 488 Standard You can add delimiters and EOI End of Identify to outgoing data depending on the software settings Serial poll parallel poll SRQ send functions The following functions can be used depending on the master slave configuration Master Serial poll Parallel poll Slave Status byte setting SRQ Service ReQuest transmission Response to parall...

Page 45: ...ata can also be read Communication using FIFO memory The converter can use on converter FIFO memory for communication As the converter controls this form of communication it can be performed at high speed irrelevant to the PC s CPU speed Note however that the actual communication speed is set to the speed of the slowest device in compliance with the GPIB standard ...

Page 46: ...tween device 4m or less 1 Total cable length 20m or less Connectable number of device 15 devices Max USB Bus specification USB Specification 2 0 1 1 standard USB transfer rate 12Mbps Full speed 480Mbps High speed 2 Cable length 1 8m Power supply Bus power Common Current consumption 5VDC 450mA Max Operating conditions 0 50 C 10 90 RH No condensation Physical dimensions mm 62 W x 64 D x 24 H Weight ...

Page 47: ... Basic talker serial polling MLA talker release L4 Basic listener MTA listener release TE0 No extended talker functions LE0 No extended listener functions SR1 Service request function RL1 Remote function DC1 Device clear function DT1 Device trigger function PP1 Configuration by remote message C1 System controller function C2 IFC send C3 REN send C4 Response to SRQ C26 Interface message send parall...

Page 48: ...55 0025 Japan Japanese http www contec co jp English http www contec com Chinese http www contec com cn No part of this document may be copied or reproduced in any form by any means without prior written consent of CONTEC CO LTD 05202010 07062005 Management No A 46 987 05202010_rev6 Parts No LYEQ215 ...

Reviews: