ADLINK Technology PCI-8124 User Manual Download Page 63

54

Function Library

@ Syntax

C/C++ (Windows 2000/XP)

I16 _8124_set_trigger_source( I16 CardId, I16 

Channel, I16 GroupSel, I16 PwmInBit, I16 

TtlInInBit, I16 EzInBit );

I16 _8124_set_ttlOut_source( I16 CardId, I16 

Channel, I16 TtlOutSrc );

I16 _8124_set_ttlOut( I16 CardId, I16 Channel, 

I16 TtlOutValue );

Visual Basic (Windows 2000/XP)

B_8124_set_trigger_source (ByVal CardId As 

Integer, ByVal Channel As Integer, ByVal 

GroupSel As Integer, ByVal PwmInBit As 

Integer, ByVal TtlInInBit As Integer, ByVal 

EzInBit As Integer) As Integer

B_8124_set_trgOut_logic (ByVal CardId As Integer, 

ByVal Channel As Integer, ByVal Logic As 

Integer) As Integer

B_8124_set_ttlOut_source (ByVal CardId As 

Integer, ByVal Channel As Integer, ByVal 

TtlOutSrc As Integer) As Integer

B_8124_set_ttlOut (ByVal CardId As Integer, ByVal 

Channel As Integer, ByVal TtlOutValue As 

Integer) As Integer

@ Argument 

I16 CardId

: The PCI-8124 card’s ID number.

I16 Channel

: The channel’s number of TRG-OUT / TTL-OUT.

I16 GroupSel

: The TRG-OUT source.

X

0: Output according to SW2 setting

X

1: PWM / TTL-IN / EZ signal

I16 PwmInBit

: The source of PWM channel in bit format.

X

Ex: PwmInBit = 0x2, means PWM_1

I16 TtlInInBit

: The source of TTL-IN channel in bit format.

X

Ex: TtlInInBit = 0x6, means TTL-IN1 and TTL-IN_2

Summary of Contents for PCI-8124

Page 1: ...ADLINK PCI 8124 Manual Get Pricing Availability at ApexWaves com Call Today 1 800 915 6216 Email sales apexwaves com https www apexwaves com modular systems adlink technology inc motion control PCI 8124 ...

Page 2: ...Advance Technologies Automate the World Manual Rev 2 00 Revision Date February 12 2007 Part No 50 11138 1000 PCI 8124 4 Channel Encoder Compare and Trigger Board User s Manual ...

Page 3: ... or inability to use the product or documentation even if advised of the possibility of such damages This document contains proprietary information protected by copy right All rights are reserved No part of this manual may be repro duced by any mechanical electronic or other means in any form without prior written permission of the manufacturer Trademarks NuDAQ NuIPC DAQBench are registered tradem...

Page 4: ...vice adlinktech com TEL 886 2 82265877 FAX 886 2 82265717 Address 9F No 166 Jian Yi Road Chungho City Taipei 235 Taiwan Please email or FAX this completed service form for prompt and satisfactory service Company Information Company Organization Contact Person E mail Address Address Country TEL FAX Web Site Product Information Product Model Environment OS M B CPU Chipset BIOS Please give a detailed...

Page 5: ......

Page 6: ...ot selection 11 Installation Procedures 11 Troubleshooting 11 2 4 Software Driver Installation 12 2 5 CN1 Pin Assignments 13 2 6 CN2 Pin Assignments TTL Output 14 2 7 Board Index Switch Setting 14 2 8 Default Trigger Level 14 3 Signal Connections 15 3 1 Connector CN1 Pin Definition 16 3 2 Isolated Input Ports LTC INCOM 18 3 3 Isolated Encoder Differential Input 19 3 4 Isolated Output Ports TRG EGN...

Page 7: ...unction 35 4 3 Multiple Boards Operation 36 4 4 Interrupt Control 37 5 Function Library 41 5 1 List of Functions 41 5 2 System Initialization 45 5 3 Encoder Counter 47 5 4 PWM Configuration 50 5 5 TRG OUT TTL OUT Configuration 53 5 6 Comparator 56 5 7 FIFO Comparing 57 5 8 Linear Comparing 61 5 9 Manual Trigger 64 5 10 Digital Input 65 5 11 Latch 66 5 12 Timer 68 5 13 Interrupt 70 5 14 Return Erro...

Page 8: ...List of Tables iii List of Tables Table 2 1 CN1 Pin Assignments 13 Table 2 2 CN2 Pin Assignments TTL Output 14 Table 5 1 Data type definitions 41 ...

Page 9: ...iv List of Figures List of Figures Figure 1 1 PCI 8124 Block Diagram 2 Figure 2 1 PCI 8124 PCB Layout 10 ...

Page 10: ...ed by flat cable internally It is conve nient for system integrators and also reduces the possibility of signal interference With FPGA calculation it can also save CPU loading of host PC The PCI 8124 utilizes a FPGA and FIFO to realize the purpose All comparing points will automatically load into FIFO and be com pared with the internal comparators As a result users do not have to handle this with ...

Page 11: ... Introduction ADLINK provides a Windows WDM driver for users Users can use DLL function library to build up the application The block dia gram of PCI 8124 is as follows Figure 1 1 PCI 8124 Block Diagram ...

Page 12: ...Each encoder counter source is selected from encoder input pins or timers X Comparator data is updated by next FIFO data or linear data when encoder counter is compared and trigger is outputted X 14 comparators can select one of 4 trigger output channels individ ually X 4 channel TTL output pins for general purpose output or trigger output X 4 channel TTL input pins for general purpose or timer st...

Page 13: ...ler PS9115 X Isolated Voltage 2500 Vrms X Maximum input frequency 10 MHz X Supported modes AB phase x1 2 4 CW CCW OUT DIR X Data length 32 bit X Zero Operation EZ input Counter Comparators X Number of comparators 14 X Data length 32 bit X Trigger pulse width 0 1µs to 3 2765ms programmable Internal Timers X Number of timers 4 X Timer base 400ns X Resolution 14 bit X Synchronous start signal TTL inp...

Page 14: ...2bits X Interrupt type Empty full low 1 4 1 2 3 4 X Auto reload Yes auto reload next FIFO data to comparator when compared Comparator Linear Function X Number of Linear Functions 10 X Start Address length 32 bits X Repeat times length 32 bit X Interval length 13 bit X Direction length 1 bit X Interrupt Yes when repeat times count to 0 X Auto reload Yes auto reload next linear data to comparator wh...

Page 15: ...X TTL output mode General purpose output or trigger output General Specifications X Connectors 50 pin SCSI type connector X Operating Temperature 0 C 70 C X Storage Temperature 20 C 80 C X Humidity 5 85 non condensing Power Consumption X Slot power supply input 5V DC 5 450mA max X Slot power supply input 12V DC 5 100mA max X Isolation power is from PCI bus 12V to isolated 5V DC PCB Dimension 151mm...

Page 16: ... 1 3 Supported Software 1 3 1 Programming Library ADLINK provides Windows WDM driver and DLL function library for the PCI 8124 These function libraries are shipped with the board It supports for Windows 2000 XP Vista ...

Page 17: ...8 Introduction ...

Page 18: ...n 2 4 X Understanding the I O signal connections Chapter 3 and their operation Chapter 4 2 1 Package Contents Except this User s Guide the package also includes the following items X PCI 8124 4 channel encoder compare trigger board X ADLINK All in one Compact Disc If any of these items are missing or damaged contact the dealer from whom you purchased the product Save the shipping materi als and ca...

Page 19: ...10 Installation 2 2 PCI 8124 Outline Drawing Figure 2 1 PCI 8124 PCB Layout CN1 SCSI 50 pins Connector CN2 TTL output SW1 Board ID switch ID 0 to 15 SW2 Default Trigger Level ...

Page 20: ...n off all accessories printer modem monitor etc connected to computer Remove the cover from your computer 3 Select a 32 bit PCI expansion slot PCI slots are shorter than ISA or EISA slots and are usually white or ivory 4 Before handling the PCI 8124 discharge any static buildup on your body by touching the metal case of the computer Hold the edge of the card and do not touch the components 5 Posit...

Page 21: ...ot check the PCI settings in the BIOS or use another PCI slot 2 4 Software Driver Installation Using the All In One CD with PCI 8124 package and execute the following steps 1 Autorun the ADLINK All In One CD 2 Follow the procedures of the installer 3 After setup installation is completed restart windows ...

Page 22: ...se encoder 11 EB1 I B phase encoder 36 EB3 I B phase encoder 12 EB1 I B phase encoder 37 EB3 I B phase encoder 13 EZ1 I Z phase encoder 38 EZ3 I Z phase encoder 14 EZ1 I Z phase encoder 39 EZ3 I Z phase encoder 15 EA2 I A phase encoder 40 EA4 I A phase encoder 16 EA2 I A phase encoder 41 EA4 I A phase encoder 17 EB2 I B phase encoder 42 EB4 I B phase encoder 18 EB2 I B phase encoder 43 EB4 I B pha...

Page 23: ...h on pin 1 and switch off pin 2 3 and 4 2 8 Default Trigger Level The SW2 switch is used to set TRG pin s default level when power on Each bit represents one TRG channel ON position means default level of TRG channel is set to 5V and OFF position means it is set to 0V Manufacturing setting is ON No Name I O Function 1 5V 5V power supply 2 TTL OUT1 O TTL output signal 3 TTL OUT2 O TTL output signal...

Page 24: ...r before wiring any cables between the PCI 8124 and the end device This chapter contains the following sections Section 3 1 Connector CN1 Pin Definition Section 3 2 Isolated Input Ports LTC INCOM Section 3 3 Isolated Encoder Differential Input Section 3 4 Isolated Output Ports TRG EGND Section 3 5 TTL Input Ports Section 3 6 TTL Output Ports ...

Page 25: ...gger output 7 OUTCOM2 Trigger output reference 8 TRG2 O Trigger output 9 EA1 I A phase encoder 10 EA1 I A phase encoder 11 EB1 I B phase encoder 12 EB1 I B phase encoder 13 EZ1 I Z phase encoder 14 EZ1 I Z phase encoder 15 EA2 I A phase encoder 16 EA2 I A phase encoder 17 EB2 I B phase encoder 18 EB2 I B phase encoder 19 EZ2 I Z phase encoder 20 EZ2 I Z phase encoder 21 TTL IN1 I TTL input signal ...

Page 26: ...I B phase encoder 37 EB3 I B phase encoder 38 EZ3 I Z phase encoder 39 EZ3 I Z phase encoder 40 EA4 I A phase encoder 41 EA4 I A phase encoder 42 EB4 I B phase encoder 43 EB4 I B phase encoder 44 EZ4 I Z phase encoder 45 EZ4 I Z phase encoder 46 TTL IN3 I TTL input signal 47 TTL IN4 I TTL input signal 48 TTL OUT3 O TTL output signal 49 TTL OUT4 O TTL output signal 50 DGND TTL signal ground CN1No N...

Page 27: ... an internal resistor in the PCI 8124 circuit as figure shows below So it is not necessary to attach additional resistor con nected outside the PCI 8124 The forward current of input signal is 7 5mA to 12 5mA The typical forward voltage is 1 65V and the maximum forward voltage is 1 9V So users should calculate the appropriate voltage applied on LTCx and INCOMx CN1 Pin No Name Description 1 INCOM1 I...

Page 28: ...ode is 7 5mA to 12 5mA There is an internal resistor in the PCI 8124 circuit as figure shows below So if there is no additional resistor connected outside the PCI 8124 the voltage difference between Encoder and Encoder should be lower than 5VDC Note n 1 2 3 4 CN1 Pin No Name Description 9 15 34 40 EAn Isolated Encoder A 10 16 35 41 EAn Isolated Encoder A 11 17 36 42 EBn Isolated Encoder B 12 18 37...

Page 29: ... pull high is not needed The pin assignment of the isolated output ports on PCI 8124 is as follows and PS9115 output characteristics are described in the following figure CN1 Pin No Name Description 5 EGND Output reference 7 EGND Output reference 30 EGND Output reference 32 EGMD Output reference 6 TRG1 Trigger 1 8 TRG2 Trigger 2 31 TRG3 Trigger 3 33 TRG4 Trigger 4 ...

Page 30: ...Signal Connections 21 Outside PCI 8124 inside PCI 8124 TRGx 220Ω ...

Page 31: ...gnment of these TTL inputs The maximum input voltage of TTL level input ports is 4 6VDC So user should not apply signals over this limitation CN1 Pin No Name Description 21 TTL IN1 TTL Level Input port 1 22 TTL IN2 TTL Level Input port 2 46 TTL IN3 TTL Level Input port 3 47 TTL IN4 TTL Level Input port 4 25 50 DGND TTL Input reference GND ...

Page 32: ...TTL outputs The maximum output or sink current of each channel is 25mA And the maximum output voltage is D5V User should take care of these limitations CN1 Pin No Name Description 23 TTL OUT1 TTL Level Output port 1 24 TTL OUT2 TTL Level Output port 2 48 TTL OUT3 TTL Level Output port 3 49 TTL OUT4 TTL Level Output port 4 25 50 DGND TTL Input reference GND ...

Page 33: ...24 Signal Connections ...

Page 34: ...ter describes the detail operation of the PCI 8124 board Contents of the following sections are as follows Section 4 1 The trigger board overview Section 4 2 Trigger board operation Section 4 3 Multiple boards operation Section 4 4 Interrupt Control ...

Page 35: ...26 Operation Theory 4 1 Trigger Board Overview The input and output relationships are shown as follows ...

Page 36: ...ally Due to the mapping mechanism several combinations are provided for users to continuously send out the trigger pulse with isolation or non isolation channels Latch signal can let users retain and retrieve the position data at very short time Linear function will automatically load the next comparing points with a fixed incremental value into 32 bit comparator Just like FIFO s purpose the new c...

Page 37: ...s 2000 pulses per phase A or B phase then the value read from the counter will be 8000 pulses per turn or 8000 pulses per turn depending on its rotating direction The three options will be explained as follows Single Pulse Mode OUT DIR Mode In this mode EA is dedicated to the count the pulses and EB is to represent the direction Simply put we call it as PULSE DIR mode The DIR signal represents dir...

Page 38: ...kwise direction CW EB is dedicated to count the pulses from external source and view it as counterclock wise direction CCW Simply put EA counts up and EB counts down User can decide the normal high or normal low for those two channels according to users devices The following diagrams show the normal high and normal low cases individually ...

Page 39: ... the phase of EA signal leads the phase of EB signal The following diagram shows the waveform 4 1 2 Index Input EZ The index input EZ signals of the encoders are used as the ZERO reference This signal is common on most rotational motors EZ can be used to define the absolute position of the mechanism The input logic polarity of the EZ signals is program mable with ADLINK library With EZ signal user...

Page 40: ...ulse width requirement is different As for this reason the trigger pulse width can be adjust able The available values are from 0 1µs to 3 2765ms The maxi mum frequency is up to 5 MHz 4 1 5 Linear Function Linear function is used to generate a new comparing position by a fixed incremental value linear function Y Y A Y means a calcu lated comparing position the linear data Y means a previous compar...

Page 41: ...nction 4 1 7 PWM Mapping PWM is used for adjusting pulse width of trigger It could also be switched to a toggle mode In this mode the pulse level will change from low to high or high to low at every time when com pared Mapping means four trigger signals are not one to one mapping to four comparators For example Comparator 1 could be linked to trigger channel 2 Comparator 2 could be linked to trigg...

Page 42: ...urpose TRG is an open collector pin The comparing method is equal Consequently when the counter value is exactly equal to the preset value by users the trigger pulse will be generated At the same time the next compar ing points saved in FIFO or linear function will automatically loaded into comparator The following is an example for continu ous trigger application Example Using the continuous posi...

Page 43: ...users can produce many kinds of trigger modes Please see the following diagram Take three linear functions Set the trigger interval and range as shown in the diagram Set these three linear functions to counter3 and also comparator3 Set three linear functions to trigger output pin TRG1 TRG1 and TRG2 respectively After these settings when the counters start counting from 0 to 10 000 the trigger pins...

Page 44: ...are 4 timers on PCI 8124 The timer is started by TTL input and the timer can be set to counters to simulate encoder inputs It can also output to trigger pins directly The timer is designed by a down counter Users must set a counter value into timer for down counting Once the timer counter reaches zero the timer will out put a pulse to trigger pin or increase encoder counter by 1 The down counting ...

Page 45: ... the BIOS of the system when it is powered on When multiple cards are applied to a system user can select the unique index number with S1 With this benefit users can control each board accordingly without any confusion For example if three PCI 8124 cards are plugged in to PCI slots then the corre sponding channel number on each card will be Note The index number is not accumulated if you have more...

Page 46: ...pt to host PC 2 FIFO level When the status of FIFO is becoming FIFO level the you set by the function call _8124_set_fifo_level 3 FIFO empty When the FIFO is becoming empty 4 FIFO full When the FIFO is becoming full 5 LTC When the latch counter event is occurred an interrupt will be triggered 6 TTL IN When timer is triggered by TTL IN an interrupt will be gener ated 7 Linear function When linear c...

Page 47: ...with the interrupt process The following steps are described that how you use those interrupt functions Bit 0 1 2 3 4 5 6 7 8 9 CH 0 PWM0 FIFO0 Level FIFO0 Empty FIFO_0 Full LTC0 TTL IN0 1 PWM1 FIFO1 Level FIFO1 Empty FIFO1 Full LTC1 TTL IN1 2 PWM2 FIFO2 Level FIFO2 Empty FIFO2 Full LTC2 TTL IN2 3 PWM3 FIFO3 Level FIFO3 Empty FIFO3 Full LTC3 TTL IN3 4 LIN0 LIN1 LIN2 LIN3 LIN4 LIN5 LIN6 LIN7 LIN8 L...

Page 48: ...24_wait_single_int 3 In the end of interrupt process you should disable the interrupt service _8124_get_int_factor Example _8124_set_int_factor CardId Channel 0x4 FIFO empty FIFO operation wait FIFO empty interrupt FactorBitNum 2 10 seconds time out _8124_wait_single_int CardId Channel 2 10000 _8124_set_int_factor CardId Channel 0 Disable the interrupt service ...

Page 49: ...40 Operation Theory ...

Page 50: ...epresent the functions real meaning The naming convention rules are In a C programming environment X _ 8124 _ action_name lower case e g _8124_initial In order to recognize the difference between a C library and a VB library a capital B is placed at he beginning of each function name e g B_8124_initial Type Name Description Range U8 8 bit ASCII character 0 to 255 I16 16 bit signed integer 32768 to...

Page 51: ...or count down for counter _8124_set_ez_clear Configure the EZ clear operation _8124_set_counter_source Set the source of counter Function Name Description _8124_set_pwm_source Set the source of PWM _8124_set_pwm_mode Set the mode of PWM Pulse or Toggle output _8124_set_pwm_pulse_width Set the output pulse width _8124_set_pwm_toggle_dir Set the count direction to toggle the level output Function Na...

Page 52: ...IFO low level _8124_get_fifo_level Get the FIFO low level Function Name Description _8124_set_linear_compare Set the linear comparing function _8124_set_linear_source Set the trigger output sources for linear func tions _8124_enable_linear_set Enable Disable the linear set Function Name Description _8124_manual_trigger Set the trigger output manually Function Name Description _8124_get_di_sts Get ...

Page 53: ...nually Function Name Description _8124_set_int_factor Set Enable the interrupt factors _8124_get_int_factor Get the setting of interrupt factors _8124_wait_single_int Wait the single interrupt event _8124_reset_int Set the interrupt event to a non signaled state Function Name Description ...

Page 54: ...w 1 the output signal of TRG OUT and TTL OUT will output as SW2 On the contrary if DefaultSw 0 the TRG OUT will output as PWM default setting and TTL OUT will out put D5V as a digital output _8124_close This function is to close the PCI 8124 cards and release its resources which must be called at the end of your applica tions _8124_get_version Users can get the hardware and software version number...

Page 55: ...ver As Long As Integer Arguments I16 CardIdInBit The information of PCI 8124 cards card ID in bit format X Ex CardIdInBit 0x0009 It means there are two PCI 8124 cards in your system X Card_0 s ID 0 Card_1 s ID 3 I16 ManualId Cards ID decided by SW1 X 0 Decided by system X 1 Decided by dip switch SW1 I16 DefaultSw Default output setting X 0 Default output as PWM and Digital out X 1 Default output a...

Page 56: ...to set the specified encoder to count up or count down _8124_set_ez_clear This function is used to enable the function of counter clear by sensing EZ input signal If enabled you should choose falling edge or rising edge to clear counter On the contrary if dis abled the setting of ClrLogic will be ignored _8124_set_encoder_input_mode Set the pulse input decoded mode _8124_set_encoder_value Set the ...

Page 57: ...le I16 ClrLogic I16 _8124_set_counter_source I16 CardId I16 Channel I16 CtnSrc Visual Basic Windows 2000 XP B_8124_set_pls_iptmode ByVal CardId As Integer ByVal Channel As Integer ByVal IptMode As Integer As Integer B_8124_set_encoder_input_mode ByVal CardId As Integer ByVal Channel As Integer ByVal IptMode As Integer As Integer B_8124_set_encoder_value ByVal CardId As Integer ByVal Channel As Int...

Page 58: ... OUT DIR default X 1 CW CCW X 2 1x AB Phase X 3 2x AB Phase X 4 4x AB Phase I32 EncValue The encoder counter value I16 Inverse Encoder count direction inverse or not X 0 Not inverse default X 1 Inverse I16 Enable Enable EZ clear function X 0 Disable default X 1 Enable I16 ClrLogic Clear logic setting X 0 Photo couple OFF ON Falling edge clear default X 1 Photo couple ON OFF Rising edge clear I16 C...

Page 59: ..._pwm_pulse_width If you selected the pulse type output as the PWM output You can adjust the pulse width by this function _8124_set_pwm_toggle_dir If you selected the level switch output as the PWM output you can set the toggled condition by this function There are 3 con ditions count directions that the level output could be toggled Syntax C C Windows 2000 XP I16 _8124_set_pwm_source I16 CardId I1...

Page 60: ... As Integer B_8124_set_pwm_pulse_width ByVal CardId As Integer ByVal Channel As Integer ByVal WidthPara As Integer As Integer B_8124_set_pwm_toggle_dir ByVal CardId As Integer ByVal Channel As Integer ByVal ToggleDir As Integer As Integer Argument I16 CardId The PCI 8124 card s ID number I16 Channel The channel s number of PWM I16 CmpEn Enable CMP FIFO comparing source 0 Disable 1 Enable I16 Linea...

Page 61: ...52 Function Library I16 ToggleDir Toggled condition select X 0 Directionless X 1 Count up X 2 Count down ...

Page 62: ...et the logic of TRG OUT output sig nal _8124_set_ttlOut_source This function is used to set the source of TTL OUT output There are two sources of TTL OUT output One is DO output The other is output as the relative channel of TRG OUT output Caution Because of the logic of TRG OUT outputs can be inversed the logic of TRG OUT output and TTL OUT out put may opposite _8124_set_ttlOut When TTL OUT is se...

Page 63: ...4_set_trgOut_logic ByVal CardId As Integer ByVal Channel As Integer ByVal Logic As Integer As Integer B_8124_set_ttlOut_source ByVal CardId As Integer ByVal Channel As Integer ByVal TtlOutSrc As Integer As Integer B_8124_set_ttlOut ByVal CardId As Integer ByVal Channel As Integer ByVal TtlOutValue As Integer As Integer Argument I16 CardId The PCI 8124 card s ID number I16 Channel The channel s num...

Page 64: ... I16 EzInBit The source of EZ channel in bit format X Ex EzInBit 0x1 means EZ_0 I16 TtlOutSrc The TTL OUT output source X 0 use as Digital output X 1 Follow TRG OUT I16 TtlOutValue TTL OUT output control X 0 DGND X 1 D5V ...

Page 65: ...tor_data I16 CardId I16 Channel I32 CmpData Visual Basic Windows 2000 XP B_8124_set_comparator_data ByVal CardId As Integer ByVal Channel As Integer ByVal CmpData As Long As Integer B_8124_get_comparator_data ByVal CardId As Integer ByVal Channel As Integer CmpData As Long As Integer Argument I16 CardId The PCI 8124 card s ID number I16 Channel The channel s number of comparator CMP I32 CmpData Th...

Page 66: ... the current FIFO status There are four status this function would return The value meaning is as below figure _8124_reset_fifo Reset FIFO data _8124_get_fifo_sts Get the current FIFO status _8124_set_fifo_data Set a comparing data to FIFO _8124_set_fifo_array Set comparing data array to FIFO _8124_set_fifo_shift Shift the FIFO data to comparator _8124_set_fifo_level Set the FIFO low level _8124_g...

Page 67: ...manually via this function _8124_set_fifo_level This function is used to set the FIFO low level There are four conditions in FIFO low level selection The default setting is 512 elements remaining in FIFO _8124_get_fifo_level This function is used to get the setting of FIFO low level Syntax C C Windows 2000 XP I16 _8124_reset_fifo I16 CardId I16 Channel I16 _8124_get_fifo_sts I16 CardId I16 Channel...

Page 68: ...Integer As Integer B_8124_set_fifo_shift ByVal CardId As Integer ByVal Channel As Integer As Integer B_8124_set_fifo_level ByVal CardId As Integer ByVal Channel As Integer ByVal Level As Integer As Integer B_8124_get_fifo_level ByVal CardId As Integer ByVal Channel As Integer Level As Integer As Integer Argument I16 CardId The PCI 8124 card s ID number I16 Channel The channel s number of FIFO 0 3 ...

Page 69: ...ction Library I16 Level The FIFO low level setting remaining data numbers in FIFO X 0 Low level 0 Empty X 1 Low level 256 1 4 FIFO size X 2 Low level 512 1 2 FIFO size Default X 3 Low level 768 3 4 FIFO size ...

Page 70: ...utput pulse will be 11 The follow formula is show that how do you calculate the next triggering position X Next triggering position StartPoint Interval x N X N triggered times N RepeatTimes The Interval can be set as a negative value The comparing direction is depending on the signed of Interval Moreover if RepeatTimes is set to 0 the linear comparing will not stop until stopping counting or reset...

Page 71: ...ows 2000 XP B_8124_set_linear_compare ByVal CardId As Integer ByVal SetNum As Integer ByVal Channel As Integer ByVal StartPoint As Long ByVal RepeatTimes As Double ByVal Interval As Integer As Integer B_8124_set_linear_source ByVal CardId As Integer ByVal Channel As Integer ByVal SetNumInBit As Integer As Integer B_8124_enable_linear_set ByVal CardId As Integer ByVal SetNum As Integer ByVal Enable...

Page 72: ...Function Library 63 I16 Enable Enable Disable linear set X 0 disable 1 enable ...

Page 73: ...Syntax C C Windows 2000 XP I16 _8124_manual_trigger I16 CardId I16 Channel Visual Basic Windows 2000 XP B_8124_manual_trigger ByVal CardId As Integer ByVal Channel As Integer As Integer Argument I16 CardId The PCI 8124 card s ID number I16 Channel The channel s number of PWM 0 3 _8124_manual_trigger Set the trigger output manually ...

Page 74: ... Syntax C C Windows 2000 XP I16 _8124_get_di_sts I16 CardId I16 TtlStsInBit I16 LtcStsInBit I16 EzStsInBit Visual Basic Windows 2000 XP B_8124_get_di_sts ByVal CardId As Integer TtlStsInBit As Integer LtcStsInBit As Integer EzStsInBit As Integer As Integer Argument I16 CardId The PCI 8124 card s ID number I16 TtlStsInBit The TTL IN status in bit format I16 LtcStsInBit The LTC status in bit format ...

Page 75: ...upt function _8124_get_latch_event_sts This function is used to check the latch event status If the latch function is enabled and the latch condition is met the status will become 1 from 0 The event status is read clear _8124_get_latch_value When the latch event occurred you can use this function get the latched counter value Syntax C C Windows 2000 XP I16 _8124_set_latch I16 CardId I16 Channel I1...

Page 76: ...PCI 8124 card s ID number I16 Channel The channel s number of Latch 0 3 I16 Enable Enable the Latch function 0 Disable 1 Enable I16 EdgeSel Latching condition Z 0 Photo couple OFF ON Falling edge clear default Z 1 Photo couple ON OFF Rising edge clear I16 LatchEventInBit Latch event status in bit format Read clear X Bit0 Latch0 event status 1 Latched occurred 0 No Latched X Bit1 Latch1 event statu...

Page 77: ...t_Timer I16 CardId I16 Channel I16 WaitTtlIn I16 TtlTrigLogic I16 Interval I16 _8124_start_timer I16 CardId I16 Channel I16 Start Visual Basic Windows 2000 XP B_8124_set_Timer ByVal CardId As Integer ByVal Channel As Integer ByVal WaitTtlIn As Integer ByVal TtlTrigLogic As Integer ByVal Interval As Integer As Integer B_8124_start_timer ByVal CardId As Integer ByVal Channel As Integer ByVal Start A...

Page 78: ...Disable 1 Enable I16 TtlTrigLogic TTL IN start timer condition X 0 Falling edge of TTL IN signal X 1 Rising edge of TTL IN signal I16 Interval Timer interval 0 16383 X Timer tick interval Interval x 16 4 x 25 ns I16 Start Start timer X 0 Stop timer X 1 Start timer ...

Page 79: ...s by _8124_set_int_factor it could use this function to wait a specific interrupt When this function was running the pro cess would never stop until the event was be triggered or the _8124_set_int_factor Set Enable the interrupt factors _8124_get_int_factor Get the setting of interrupt factors _8124_wait_single_int Wait the single interrupt event _8124_reset_int Set the interrupt event to a non si...

Page 80: ...function Syntax C C Windows 2000 XP I16 _8124_set_int_factor I16 CardId I16 Channel I16 IntFactorsInBit I16 _8124_get_int_factor I16 CardId I16 Channel I16 IntFactorsInBit I16 _8124_wait_single_int I16 CardId I16 Channel I16 FactorBitNum I32 TimeOutMs I16 _8124_reset_int I16 CardId I16 Channel I16 FactorBitNum Visual Basic Windows 2000 XP B_8124_set_int_factor ByVal CardId As Integer ByVal Channel...

Page 81: ...I16 FactorBitNum Specified the bit number of the IntFactors InBit I32 TimeOutMs Specify the time out interval in milliseconds If TimeOutMs is zero the function tests the states of the specified event and returns immediately If TimeOutMs is 1 the function s time out interval never elapses infinite ...

Page 82: ...ailed Create driver interface failed 3 ERR_InsufficientMemory System memory insufficiently 4 ERR_DeviceNotInitial Cards not be initialized 5 ERR_NoDeviceFound Cards not found No card in your system 6 ERR_CardIdDuplicate Cards ID Number duplicate 7 ERR_DeviceAlreadyInitialed Cards have been initialed 8 ERR_InterruptNotEnable Cards interrupt events not enable 9 ERR_TimeOut Function time out 10 ERR_P...

Page 83: ...74 Function Library ...

Page 84: ...d party products not manufactured by ADLINK will be covered by the original manufactur ers warranty X For products containing storage devices hard drives flash cards etc please back up your data before send ing them for repair ADLINK is not responsible for any loss of data X Please ensure the use of properly licensed software with our systems ADLINK does not condone the use of pirated software and...

Page 85: ...of battery fluid during or after change of batteries by customer user X Damage from improper repair by unauthorized ADLINK technicians X Products with altered and or damaged serial numbers are not entitled to our service X This warranty is not transferable or extendible X Other categories not protected under our warranty 4 Customers are responsible for shipping costs to transport damaged products ...

Reviews: