ADLINK Technology NuDAQ 723 Series User Manual Download Page 31

26 

••

 C/C++ Libraries

4.5 Digital Output

@ Description

This function is used to write data to digital output ports.  There are 16
and 32 isolated digital outputs on the PCI-7230 and PCI-7234
respectively,

@ Syntax

C/C++ ( DOS)

U16  _7230_DO(U16 cardNo,  U16  do_data )

U16  _7234_DO(U16 cardNo,  U32  do_data )

C/C++ (Windows 95/98)

U16 W_7230_DO ( U16 cardNo, U16  doData)

U16 W_7234_DO ( U16 cardNo, U32  doData)

Visual Basic (Windows 95/98)

W_7230_DO (ByVal cardNo As Integer, ByVal DOData As
Integer) As Integer

W_7234_DO (ByVal cardNo As Integer, ByVal DOData As
Integer) As Integer

@ Arguments:

cardNo :

card number to select board

do_data :

  value will be written to digital output port

@ Return Code:

ERR_NoError

StockCheck.com

Summary of Contents for NuDAQ 723 Series

Page 1: ...NuDAQ 723X Series 32 Channels Isolated Digital I O Card User s Manual S t o c k C h e c k c o m...

Page 2: ...en if advised of the possibility of such damages This document contains proprietary information protected by copyright All rights are reserved No part of this manual may be reproduced by any mechanica...

Page 3: ...S t o c k C h e c k c o m...

Page 4: ...and InTouch 6 1 5 5 ISaGRAF Driver 6 1 5 6 InControl Driver 6 1 5 7 Full Software Package 6 Chapter 2 INSTALLATION 7 2 1 WHAT YOU HAVE 7 2 2 UNPACKING 8 2 3 PCB LAYOUT 8 2 4 PCI CARD INSTALLATION OUTL...

Page 5: ...Chapter 4 C C LIBRARIES 21 4 1 INSTALLATION 21 4 1 1 MS DOS Software Installation 21 4 1 2 Windows 95 Software Installation 22 4 2 SOFTWARE DRIVER NAMING CONVENTION 23 4 3 INITIALIZATION 24 4 4 DIGIT...

Page 6: ...I 7233 provides 32 isolated digital input channels with COS change of state detection The high speed version PCI 7233H provides 32 CH isolated digital input The isolation voltage of PCI 7233H is high...

Page 7: ...D type connector 1 1 2 PCI 7233 H and Features 32 Isolated Digital Input Channels 5000 Vrms high voltage isolation Up to 24V voltage protection for isolated input Interrupt is generated by COS change...

Page 8: ...r device ON 8 370mA duty 10 for all transistors devices ON 8 140mA duty 50 for all transistors devices ON Note the pulse width is 25ms for one duty cycle Isolated voltage 5000 Vrms Throughput 10K Hz I...

Page 9: ...ital inputs Input Voltage up to 24Vdc 8 Logic L 0 3 2V 8 Logic H 3 5 24V Input resistance 1 2K 0 5W Isolated voltage 2500 V rms Throughput High speed 500 KHz Dual interrupt sources Change of state COS...

Page 10: ...nsing Power Consumption 5 V 190 mA typical Dimension Compact size only 95mm H X 143mm L 1 5 Software Supporting 1 5 1 Programming Library For the customers who are writing their own programs we provid...

Page 11: ...uded in the ADLink Wonderware InTouch 7 0 The DDE server can be used conjunction with any DDE client under Windows NT environment 1 5 5 ISaGRAF Driver The ISaGRAF is an IEC1131 3 SoftPLC control progr...

Page 12: ...section 2 1 w Unpacking section 2 2 w Check the PCB section 2 3 w Install the hardware section 2 4 w Install the software drivers and run utility to test section 2 5 w Cabling with external devices se...

Page 13: ...damage to your module Be sure there are no shipping and handing damages on the module before processing After opening the card module carton extract the system module and place it only on a grounded...

Page 14: ...rocedures 1 Read through this manual and setup the jumper according to your application 2 Turn off your computer Turn off all accessories printer modem monitor etc connected to computer 3 Remove the c...

Page 15: ...loppy drive A for the PCI 723x driver information After fail to find the information in drive A it will display the message Windows was unable to locate a driver for this device 2 Insert ADLink s All...

Page 16: ...IDI_8 IDI_9 IDI_10 IDI_11 IDI_12 IDI_15 IDI_14 IDI_13 IDI_4 ID0_0 EOGND EOGND EOGND ID0_1 ID0_4 ID0_2 ID0_6 ID0_3 ID0_8 ID0_10 ID0_12 ID0_14 ID0_7 ID0_5 ID0_9 ID0_11 ID0_15 ID0_13 VDD Legend IDI_n Is...

Page 17: ...3 19 18 24 23 21 22 20 25 49 40 38 39 41 46 42 45 43 44 47 48 50 EICOM IDI_7H IDI_6L IDI_6H IDI_5L IDI_5H IDI_4L IDI_4H EOGND EOGND EOGND VDD EOGND EOGND IDI_3L IDI_2H IDI_2L IDI_1H IDI_1L IDI_0H IDI_...

Page 18: ...18 16 37 24 23 21 22 20 25 28 26 27 29 34 30 33 31 32 35 36 17 IDI15 IDI0 IDI5 IDI2 IDI1 IDI3 IDI7 IDI6 IGND IDI8 IDI9 IDI10 IDI11 IDI14 IDI13 IDI12 IDI4 IDI18 IGND IDI17 IDI16 IDI19 IDI22 IDI20 IGND...

Page 19: ...27 29 34 30 33 31 32 35 36 17 IDO15 IDO0 IDO5 IDO2 IDO1 IDO3 IDO7 IDO6 IGND IDO8 IDO9 IDO10 IDO11 IDO14 IDO13 IDO12 IDO4 IDO18 IGND IDO17 IDO16 IDO19 IDO22 IDO20 IGND IDO21 IDO25 IDO27 IDO29 IDO31 ID...

Page 20: ...BIOS specification to understand how to get information from the PCR The LCR is specified by the PCI bus controller PCI 9050 It is not necessary for users to understand the details of the LCR if you u...

Page 21: ...7230 and cPCI 7230 The PCI 7233 requires one 32 bit address in the PC I O address space Table 3 2 shows the address Address Write Read Base 0 3 Isolated DI Table 3 2 I O Address Map of PCI 7233 PCI 72...

Page 22: ...IDI_16 Base 3 IDI_31 IDI_30 IDI_29 IDI_28 IDI_27 IDI_26 IDI_25 IDI_24 IDI_N Isolated Digital Input CH N 3 4 Digital Output Register There are total 16 and 32 digital output channels on the PCI 7230 c...

Page 23: ...nd PCI 7233 1 2 K O h m D I _ n H D I _ n L Figure 3 2 Differential Input circuits of cPCI 7233 3 6 Isolated Digital Output Circuits The connection of isolated digital output is shown as following dia...

Page 24: ...230 DD V Resistive Loading 5 35V EOGND VDD If the loading is a inductance loading such as relay you can use the following wiring diagram The VDD must connect to the external power to form a fly wheel...

Page 25: ...changed The INT2 is inserted when any channel of 16 31 is changed Fig3 6 1 show the interrupt system 32 Channel Isolated Input PLD1 PLD2 PCI Bridge PCI Bus INT1 INT2 Clear IRQ DI0 DI31 DI0 DI15 DI16...

Page 26: ...s software includes an utility software C language library and some demonstration programs which can help you reduce programming work The following procedures use the PCI 7230 as an example for insta...

Page 27: ...og box for you to specify the destination directory The default path is C ADLink 7230 w95 If you want to install PCI 7230 DLL for Windows 95 in another directory please click Browse button to change t...

Page 28: ...ision floating point 3 402823E38 to 3 402823E38 F64 64 bit double precision floating point 1 797683134862315E308 to 1 797683134862315E309 Boolean Boolean logic value TRUE FALSE The functions of PCI 72...

Page 29: ...O pciInfo U16 W_7234_Initial U16 existCards PCI_INFO pciInfo Visual Basic Windows 95 98 W_7230_Initial existCards As Integer pciInfo As PCI_INFO As Integer W_7233_Initial existCards As Integer pciInfo...

Page 30: ...Syntax C C DOS U16 _7230_DI U16 cardNo U16 di_data U16 _7233_DI U16 cardNo U32 di_data C C Windows 95 98 U16 W_7230_DI U16 cardNo U16 diData U16 W_7233_DI U16 cardNo U32 diData Visual Basic Windows 9...

Page 31: ...ata U16 _7234_DO U16 cardNo U32 do_data C C Windows 95 98 U16 W_7230_DO U16 cardNo U16 doData U16 W_7234_DO U16 cardNo U32 doData Visual Basic Windows 95 98 W_7230_DO ByVal cardNo As Integer ByVal DOD...

Page 32: ...ging INT2 of digital input channels Only one of interrupt sources can be set as enable Syntax C C DOS void _7230_Set_INT_Control U16 cardNo U16 int1Flag U16 int2Flag void _7233_Set_INT_Control U16 car...

Page 33: ...U16 int2Status C C Windows 95 98 void W_7230_Get_IRQ_Status U16 cardNo U16 int1Status U16 int2Status void W_7233_Get_IRQ_Status U16 cardNo U16 int1Status U16 int2Status Visual Basic Windows 95 98 W_72...

Page 34: ...wait operation to wait for the event When the event is signaled it means an interrupt is generated Please refer to the sample program 7230int c Please note that the PCI 7234 do not have any interrupt...

Page 35: ...refer to the sample program 7230int c Syntax C C Windows 95 98 U16 W_7230_INT_Disable U16 cardNo U16 W_7233_INT_Disable U16 cardNo Visual Basic Windows 95 98 W_7230_INT_Disable ByVal cardNo As Intege...

Page 36: ...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...

Reviews: