Advantech PCI-1718 Series user manual Clear System Interrupt*****/ Add you code here

Page 55

outportb(base_addr+0x02,0x00); //MUX Scan Channel Control outportb(base_addr+0x01,0x03); //Channel 1 Gain Setting outportb(base_addr+0x02,0x11); // MUX Scan Channel Control outportb(base_addr+0x01,0x08); // Channel 2 Gain Setting outportb(base_addr+0x02,0x10); //Scan Channel 0-1

/***** Set Pacer *****/

outportb(base_addr+0x0f,0x7e); outportb(base_addr+0x0d,10); //Divide By 1 outportb(base_addr+0x0d,0); outportb(base_addr+0x0f,0xbe); outportb(base_addr+0x0e,20); //Divide By 2 outportb(base_addr+0x0e,0);

/***** Set ISR *****/

Add your code here /********************/ /***** Set System Interrupt *****/

Add your code here /*********************************/

outportb(base_addr+0x09,0x00); // Disable Nor INT and Set Pacer Trigger

outportb(base_addr+0x06,0x01); // Enable FIFO INT outportb(base_addr+0x14,0x00); // Clear FIFO Interrupt

/***** Clear System Interrupt*****/ Add you code here /*********************************/

outportb(base_addr+0x19,0x00); // Clear FIFO outportb(base_addr+10,0); // Enable Pacer while(i<=AD_NO)

{

47

Chapter4

Image 55
Contents Bit Multifunction Cards with Universal PCI Bus PCI-1718 SeriesCopyright Acknowledgements Product Warranty 2 years Technical Support and Assistance Safety Precaution Static ElectricityPacking List Contents Appendix Specifications Appendix D Calibration Viii Introduction PCI-1718HDU/HGU is register-level- pro PCI-Bus Plug & Play FeaturesAutomatic Channel/Gain Scanning Onboard Fifo Onboard Programmable Timer/CounterBoardID Switch ApplicationsInstallation Guide Installation Flow Chart Register-level Programming Software OverviewProgramming choices for DA&C cards Device DriversProgramming Tools Device Driver Programming RoadmapProgramming with Device Drivers Function Library Troubleshooting Device Drivers ErrorPCL-10137 AccessoriesWiring Cables PCL-10120 Wiring BoardsInstallation Unpacking SETUP.EXE on the companion CD-ROM Driver InstallationSetup Screen of Advantech Automation Software Installation Hardware InstallationSetting Up the Device Device Setup & ConfigurationDevice Setting Dialog Box Configuring the DeviceTest Utility Dialog Box Signal Connections Overview Switch and Jumper SettingsBoard ID Setting SW1 Setting the BoardID Switch SW13 D/A Reference Voltage, int./ext. JP11 Channel Configuration, S/E or Diff SW2Summary of Switch SW2 Settings Summary of Jumper JP11 SettingsInternal Voltage Reference, -10 V or -5 V JP10 Summary of Jumper JP10 SettingsSummary of Jumper JP8 Settings Timer Clock Selection JP8Summary of Jumper Settings Digital Output, 20-pin or 37-pin Connector JP16 Ext. trigger and Counter Gate 0 Control JP5 JP1 first JP21 Jumper Settings Setting the Time to Reset Digital OutputsPin Assignment Signal ConnectionsI/O Connector Signal Descriptions 1 I/O Connector Signal DescriptionSingle-ended Channel Connections Analog Input ConnectionsDifferential Channel Connections Incorrect Connection Correct ConnectionExpanding Analog Inputs Analog Output Connections Analog Output ConnectionGND D.GND Digital Signal ConnectionsField Wiring Considerations Page Programming Guide Register Programming Programming with the DriverEOC=0 Software Trigger and PollingExample Code ISR Pacer Trigger Mode with InterruptExample Code Page Enable Pacer Trigger Mode with Interrupt and Fifo Add you code here Clear System Interrupt*****/ Add you code here Add your code here LabView Programming with LabVIEW and ActiveDAQActiveDAQ Page Specifications Analog Input Appendix a SpecificationsDigital Input Analog OutputDigital Output Counter/TimerGeneral Page Block Diagrams Appendix B Block Diagrams Register Structure & Format I/O Port Address Map Appendix C Register Structure & FormatTable C.1 PCI-1718HDU/HGU Register Format Part Table C.2 PCI-1718HDU/HGU Register Format Part Table C.3 PCI-1718HDU/HGU Register Format Part Software A/D Trigger BASE+00H A/D Data and Channels BASE+00H~01HTable C.5 Register for Software A/D Trigger PCI-1718HDU A/D Range Control BASE+01HG3 and G2 are not used for PCL-818L Table C.7 Register for MUX Scan Channel Control MUX Scan Channel Control BASE+02HProgramming example for PCI-1718HDU Table C.9 Register for Digital Output MUX Scan Channel Status BASE+02HDigital I/O Registers Base + 03/0BH Table C.8 Register for MUX Scan Channel StatusTable C.10 Register for Digital Output D/A Output BASE+04/05HTable C.11 Register for D/A Output Table C.12 Register for Fifo Interrupt Control Fifo Interrupt Control BASE+06HTable C.14 Register for A/D Status Clear Interrupt Request BASE+08H12 A/D Status BASE+08H Table C.13 Register for Clear Interrupt RequestMUX Table C.15 Register for A/D Control 13 A/D Control BASE+09HProgrammable Timer/Counter BASE+0C~0FH Timer/Counter Enable BASE+0AHTable C.16 Register for Timer/Counter Enable Table C.18 Register for A/D Data and Channel from Fifo Clear Fifo Interrupt Request BASE+14H17 A/D Data and Channel from Fifo Base + 17/18H Table C.17 Register for Clear Fifo Interrupt RequestTable C.20 Register for Fifo Clear Fifo Status BASE+19HFifo Clear BASE+19H Table C.19 Register for Fifo StatusSoftware Trigger Mode with Polling Register Programming Flow ChartPacer Trigger Mode with Interrupt Pacer Trigger Mode with Interrupt Fifo Used Page Calibration Appendix D Calibration Figure D.1 PCI-1718 VR Assignment VR AssignmentOutputs is recommended A/D CalibrationD/A Calibration

PCI-1718 Series specifications

The Advantech PCI-1718 Series represents a robust solution in the realm of data acquisition and control, designed to meet the demands of various industrial applications. This series is a prominent choice for engineers and system integrators looking to implement effective data monitoring and analysis in real-time conditions.

One of the notable features of the PCI-1718 series is its ability to handle multi-channel data acquisition, supporting up to 16 analog input channels. This capability allows for the simultaneous recording of multiple signals, which is critical in applications requiring comprehensive data analysis and monitoring. The device presents a sampling rate of up to 200 kHz, ensuring that even fast-changing signals are recorded with high fidelity.

The PCI-1718 Series also integrates 16-bit resolution for analog inputs, delivering precision that is essential for high-quality measurements. This level of resolution is particularly beneficial in industries such as medical instrumentation and scientific research, where the accuracy of data can significantly impact outcomes. Additionally, the device supports various input types, including voltage and current signals, making it adaptable to multiple sensing solutions.

In terms of connectivity, the PCI-1718 series is compatible with an array of I/O modules, enhancing its versatility. It supports both differential and single-ended input configurations, allowing users to select the most suitable measurement technique for their applications.

The series boasts built-in support for digital I/O and counters, facilitating the integration of control signals alongside data acquisition tasks. With 8 digital input lines and 8 digital output lines, the device allows for straightforward control over peripheral devices.

Advantech equipped the PCI-1718 with comprehensive software support, including drivers for popular programming environments, such as Visual Studio, LabVIEW, and MATLAB. This broad compatibility ensures that users can easily implement the hardware in their preferred software environments.

Another critical characteristic of the PCI-1718 Series is its robust design, featuring a low-profile PCI form factor that makes it suitable for various computer systems without compromising on performance. Its stable operation under fluctuating environmental conditions is facilitated through advanced engineering and high-quality components.

In conclusion, the Advantech PCI-1718 Series stands out with its multi-channel capabilities, high precision, extensive connectivity options, and solid software support. These features make it an exceptional choice for professionals in need of a reliable data acquisition system that can handle diverse and demanding applications efficiently.