background image

C/C++ Library 

 21 

C/C++ Library   

This chapter describes the software library for operating this card. 
Only the functions in DOS library and Windows 95 DLL are described. 
Please refer to the PCIS-DASK function reference manual, which 
included in ADLINK CD, for the descriptions of the Windows 
98/NT/2000 DLL functions. 
 
The function prototypes and some useful constants are defined in the 
header files LIB directory (DOS) and INCLUDE directory (Windows 
95). For Windows 95 DLL, the developing environment can be Visual 
Basic 4.0 or above, Visual C/C++ 4.0 or above, Borland C++ 5.0 or 
above, Borland Delphi 2.x (32-bit) or above, or any Windows 
programming language that allows calls to a DLL. It provides the 
C/C++, VB, and Delphi include files. 
 

5.1  Libraries Installation 

Please refer to the “

Software Installation Guide

” for the detail 

information about how to install the software libraries for DOS, or 
Windows 95 DLL, or PCIS-DASK for Windows 98/NT/2000. 
 
The device drivers and DLL functions of Windows 98/NT/2000 are 
included in the PCIS-DASK.  Please refer the PCIS-DASK user’s guide 
and function reference, which included in the ADLINK CD, for detailed 
programming information. 
 

5.2  Programming Guide 

Содержание PCI-6308 Series

Страница 1: ...NuDAQ PCI 6308 Series Isolated Analog Output Board User s Guide...

Страница 2: ......

Страница 3: ...ing out of the use or inability to use the product or documentation even if advised of the possibility of such damages This document contains proprietary information protected by copyright All rights...

Страница 4: ...O nupro Adlink com tw Software sw Adlink com tw AMB amb Adlink com tw TEL 886 2 82265877 FAX 886 2 82265717 Address 9F No 166 Jian Yi Road Chungho City Taipei 235 Taiwan R O C Please inform or FAX us...

Страница 5: ...1 4 7 PCIS ISG ISaGRAF T M driver 6 1 4 8 PCIS ICL InControl T M Driver 6 1 4 9 PCIS OPC OPC Server 6 Chapter 2 Installation 7 2 1 What You Have 7 2 2 Unpacking 8 2 3 PCI 6308V Layout 9 2 4 Hardware I...

Страница 6: ...Output and Range Control 19 4 4 Isolated Digital Output 19 4 5 Isolated Digital Input 20 Chapter 5 C C Library 21 5 1 Libraries Installation 21 5 2 Programming Guide 21 5 2 1 Naming Convention 22 5 2...

Страница 7: ...nstall the PCI 6308 The layout of PCI 6308 is shown the connectors specifications and the notes for installation are described Chapter 3 Register Format describes details on board register format It i...

Страница 8: ......

Страница 9: ...stable nichrome NiCr thin film resistors to provide monotonicity low distortion and low differential linearity error over long period of time The PCI 6304V is for large quantity OEM only It is fully c...

Страница 10: ...ustrial Process Control l Pressure Temperature Transmitter l Current Source for Testing Equipment l Servo Control 1 3 Specifications Voltage Output l Numbers of channel 8 channel for PCI 6308V and PCI...

Страница 11: ...te 1 3mA s l Non linearity 0 01 of Span l Span error 0 3 of initial Span l Output resistance 10 Ohms maximum l Output initial status 0mA after RESET or POWER ON Digital Input l Numbers of digital inpu...

Страница 12: ...A typical or 12VDC 530mA when all current output channels are 25mA l PCB Dimension Half sized 172 mm x 105 mm 1 4 Software Supporting ADLink provides versatile software drivers and packages for users...

Страница 13: ...Installation Guide to install these drivers 1 4 2 PCIS LVIEW LabVIEW Driver PCIS LVIEW contains the VIs which are used to interface with NI s LabVIEW software package The PCIS LVIEW supports Windows...

Страница 14: ...h any DDE client under Windows NT 1 4 7 PCIS ISG ISaGRAF TM driver The ISaGRAF WorkBench is an IEC1131 3 SoftPLC control program development environment The PCIS ISG includes ADLink products target dr...

Страница 15: ...s section 2 4 2 7 Install the software drivers and run utility to test section 2 5 Cabling with external devices section 2 6 2 8 2 1 What You Have In addition to this User s Manual the package include...

Страница 16: ...he same point as the anti static mat Inspect the card module carton for obvious damage Shipping and handling may cause damage to your module Be sure there are no shipping and handing damages on the mo...

Страница 17: ...Installation 9 2 3 PCI 6308V Layout Figure 2 1 PCI 6308V Layout...

Страница 18: ...Procedures 1 Turn off your computer 2 Turn off all accessories printer modem monitor etc connected to your computer 3 Remove the cover from your computer 4 Setup jumpers on the PCI or CompactPCI card...

Страница 19: ...22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 Figure 2 2 Pin Assignment of CN1 connector Legend Vn the voltage output of channel n for PCI 6308V 6308A n 0 7 for PCI 6304V n 0 4 An the current output...

Страница 20: ...rter s reference voltage source and output mode Bipolar or Unipolar The JP11 and JP12 are used to set reference voltage sources comes internally or externally The external reference voltage input ExtV...

Страница 21: ...sed 37 pin screw terminal The ACLD 9137 is with male DB 37 connector which is used to directly attach on the PCI 6308 l ACLD 9188 A general purposed 37 pin screw terminal which equipped with heavy dut...

Страница 22: ...the plug play PnP PCI BIOS User s can study the PCI BIOS specification to understand the operation of the PCR Please contact with PCISIG to acquire the specifications of the PCI interface The PCI bus...

Страница 23: ...A Channel 2 value Base 04h DA Channel 1 value Base 06h DA Channel 0 value Base 08h DA Channel 7 value Base 0Ah DA Channel 6 value Base 0Ch DA Channel 5 value Base 0Eh DA Channel 4 value Base 10h 3Eh R...

Страница 24: ...ess BASE 40 hex Attribute write only Data Format Bit 7 6 5 4 3 2 1 0 BASE 20 X X X X DO3 DO2 DO1 DO0 3 4 Digital Input Ports D4 D7 is digital input signal from CN1 D0 D3 is read back signal from digit...

Страница 25: ...DA converters used on the PCI 6308 are Burr Brown DAC4814AP This DAC is 12 bits resolution with bipolar or unipolar output The voltage output range is jumper selectable by JP1 JP8 Please refer to sect...

Страница 26: ...2048 0x800 Vuser 2 0 0x000 0 00000V Table 4 1 DA Voltage Output Format The following table shows the address of every analog output ports relative to the base address Note that the base address is ass...

Страница 27: ...t circuit The PCI 6308A provides an on board 15V power supply Each current output channel is a current source which is controlled by the voltage of the corresponding voltage output channel For example...

Страница 28: ...output and the host power signals is 5000 Vrms 4 5 Isolated Digital Input The isolated digital input circuits are as following The input is equipped with current limit resistor The input voltage could...

Страница 29: ...nment can be Visual Basic 4 0 or above Visual C C 4 0 or above Borland C 5 0 or above Borland Delphi 2 x 32 bit or above or any Windows programming language that allows calls to a DLL It provides the...

Страница 30: ...a capital W is put on the head of each function name of the Windows 95 DLL driver e g W_6308_Initial 5 2 2 Data Types We defined some data type in Pci_6308 h DOS and Acl_pci h Windows 95 These data t...

Страница 31: ...nt existCards number of existing PCI 6308 cards info relative information of the PCI 6308 cards Return Code ERR_NoError ERR_BoardNoInit ERR_PCIBiosNotExist 5 4 _6308_Software_Reset Description This fu...

Страница 32: ...lue range from 0 0x000 to 4095 0xFFF Please refer to section 4 1 2 for details of DA data format Syntax C C DOS U16 _6308_DA U16 cardNo U16 chn I16 DAData C C Windows 95 U16 W_6308_DA U16 cardNo U16 c...

Страница 33: ...6 cardNo I16 DA0_Data I16 DA1_Data I16 DA2_Data I16 DA3_Data c c Windows 95 U16 W_6308_DA_0_3 U16 cardNo I16 DA0_Data I16 DA1_Data I16 DA2_Data I16 DA3_Data Visual Basic Windows 95 W_6308_DA_0_3 ByVal...

Страница 34: ...ata As Integer ByVal DA5_Data As Integer ByVal DA6_Data As Integer ByVal DA7_Data As Integer Argument cardNo The card number of PCI 6308 card DA4_Data Channel 4 D A data value DA5_Data Channel 5 D A d...

Страница 35: ...nput channels on PCI 6308 The retrieved value is stored in DIData Note that Syntax C C DOS U16 _6308_DI U16 cardNo U16 DIData C C Windows 95 U16 W_6308_DI U16 cardNo U16 DIData Visual Basic Windows 95...

Страница 36: ...efer to section 3 3 for the detailed description of voltage to current conversion The three voltage to current modes are Mode Input Voltage Range Output Current Range I_0to20mA 0 10V 0 20 mA I_4to20mA...

Страница 37: ...its specifications or if the serial number has been removed Seller does not assume any liability for consequential damages as a result from our products uses and in any event our liability shall not...

Отзывы: