PCIS-LVIEW LabVIEW? Interfaces of NuDAQ PCI Cards Windows 95/98/NT/2000/XP User’s Guide
@Copyright 1998-2002 ADLI NK Technology Inc. All Rights Reserved. Manual Rev. 3.33: August 23, 2002 The information in this document is subject to change without prior notice in order to improve reliability, design and function and does not represent a commitment on the part of the manufacturer.
Getting Service From ADLINK ? ? Customer Satisfaction is always the most important thing for ADLINK Tech Inc. If you need any help or service, please contact us and get it. ADLINK Technology Inc. Web Site Sales & Service Technical Support TEL Address http://www.adlinktech.com http://www.adlinktechnology.tw service@adlinktech.com NuDAQ nudaq@adlinktech.com NuDAM nudam@adlinktech.com NuIPC nuipc@adlinktech.com NuPRO nupro@adlinktech.com Software sw@adlinktech.com AMB amb@adlinktech.
Contents CHAPTER 1 Introduction to PCIS-LVIEW.....................................................................................1 1.1 1.1.1 1.1.2 1.2 USING PCIS-LVIEW VIS IN LABVIEW..............................................................................1 Windows NT/2000/98/XP Version...............................................................................................................................1 Windows 95 Version.......................................................................
5.15 5.16 5.17 5.18 5.19 5.20 5.21 5.22 5.23 7433 VIS ..........................................................................................................................18 7434 VIS ..........................................................................................................................18 8554 VIS ..........................................................................................................................18 9111 VIS .......................................................
How to Use This Manual This manual is designed to help you install the PCIS-LVIEW, the LabVIEW driver for NuDAQ PCI-bus data acquisition cards. For the detail description of PCIS-LVIEW VIs, please refer to PCIS-LVIEW on-line help or PDF file format Function Reference. This manual is organized as follows: ?? Chapter 1, "Introduction to PCIS-LVIEW" describes how to program your application by using PCIS-LVIEW.
1 Introduction to PCIS-LVIEW 1.1 1.1.1 Using PCIS-LVIEW Vis in LabVIEW Windows NT/2000/98/XP Version To use PCIS-LVIEW VIs, you may switch the palette to the adlink view. LabVIEW 4 / LabVIEW 5 Select Select Palette Set command in the Edit menu from panel or block diagram in LabVIEW. Then select the adlink view from the menu setup ring. LabVIEW 6 Click the Options button in the Controls or Functions palette toolbar to display the Function Browser Options dialog box.
Then you can find PCIS-LVIEW VIs in NuDAQ icon on the Functions palette. 1.1.2 Windows 95 Version You can find the PCIS-LVIEW VIs in the User Libraries icon in the Functions palette from your block diagram in LabVIEW.
1.2 PCIS-LVIEW NT/98/2000/XP Programming The chapter 4 PCIS-LVIEW 98/NT/2000/XP Overview briefly describes each VI in PCIS-LVIEW. All applications developed with PCIS-LVIEW are compatible across Windows 98, Windows NT, and Windows 2000/XP. You can find the detailed description of each VI by the following ways: 1. Select Show Help command of Help menu in LabVIEW. When you put the mouse cursor on PCIS-LVIEW VI, LabVIEW will show the description of the VI. 2.
2 Device Driver Handling in Windows NT/2000/98/XP 2.1 NT 4.0 Device Driver Driver Status After finishing the installation and re-entering Windows NT, make sure the PCI device drivers are already started. For PCIS-LVIEW to be able to communicate with NuDAQ PCI-bus card, device driver AdlDask as well as the card’s own device driver (e.g. PCI6208, PCI7200, PCI7230, PCI7234, PCI7250, PCI7248, PCI7296, PCI7300, PCI7432, PCI7433, PCI7434, PCI9111, PCI9112, PCI9113, PCI9114, PCI9118, or PCI9812, etc.
2.2 Win2000/XP or Win98 Device Driver Once Windows 98/2000/XP has started, the Plug and Play function of Windows 98/2000/XP system will find the new NuDAQ/NuIPC cards. If this is the first time to install NuDAQ/NuIPC cards in your Windows 98/2000/XP system, you will be informed to install the device driver.
3 PCIS-LVIEW NT/2000/98/XP Utilities 3.1 NuDAQ Registry/Configuration utility (PciUtil) PciUtil is used to register NuDAQ PCI card drivers (Windows NT4 only), remove installed drivers (Windows NT4 only), and modify the allocated buffer sizes of AI, AO, DI and DO (Windows NT/2000/98/XP). The default location of this utility is \Util directory. Because it has been mentioned in the previous chapter, we will not introduce it here.
You can select two types of destination file, Text file or CSV file. To change the default File path setting, type the file path you wish or click the Browser button from Output File frame to select the destination file location. DAQCvt provides three types of data format conversion. File with scaled data : The data in hexadecimal format is scaled to engineering unit (voltage, ample, … etc) according to the card type, data width and data range and then written to disk in text file format.
4 PCIS-LVIEW NT/2000/98/XP Overview This chapter briefly describes each VI in PCIS-LVIEW for Windows NT/2000/98/XP. The setup program detects the system (Windows NT, 2000/XP, or 98), and installs the correct platform drivers to the system. All applications developed with PCIS-LVIEW are compatible across Windows 98, Windows NT, and Windows 2000/XP. You can find the detailed description of each VI by the following ways: 3. Select Show Help command of Help menu in LabVIEW.
4.2 Analog Input Function Group 4.2.1 Analog Input Configuration VIs AI 9111 Config: Informs PCIS-LVIEW of the trigger source and trigger mode selected for the analog input operation of PCI9111. AI 9112 Config: Informs PCIS-LVIEW of the trigger source selected for the analog input operation of PCI9112. AI 9113 Config: Informs PCIS-LVIEW of the trigger source selected for the analog input operation of PCI9113.
4.3 4.3.1 Analog Output Function Group Analog output Configuration VIs AO 6208A Config: Informs PCIS-LVIEW of the current range selected for the analog output operation of PCI-6208A. AO 9111 Config: Informs PCIS-LVIEW library of the polarity (unipolar or bipolar) that the output channel is configured for the analog output of PCI-9111. You must call this function before calling function to perform voltage output operation.
4.4.4 Asynchronous Digital Input Monitoring VIs DI Async Check: Checks the current status of the asynchronous digital input operation. DI Async Clear: Stops the asynchronous digital input operation. DI Async Double Buffer Mode: Enables or Disables double buffer data acquisition mode. DI Async Double Buffer Half Ready: Checks whether the next half buffer of data in circular buffer is ready for transfer during an asynchronous double-buffered digital input operation.
DO Async Multi Buffer Next Ready : Checks whether the next buffer is ready for new data during an asynchronous multi-buffered digital output operation. 4.6 DIO Function Group DIO Port Config: Informs PCIS-LVIEW of the port direction selected for the digital input/output operation. 4.7 Timer/Counter Function Group CTR Read: Reads the current contents of the selected counter without disturbing the counting process. CTR Reset: Sets the output of the selected counter to the specified state.
5 PCIS-LVIEW/95 Overview This chapter briefly describes each VI in PCIS-LVIEW for Windows 95. You can find the detailed description of each VI by the following ways: 1. Select Show Help command of Help menu in LabVIEW. When you put the mouse cursor on PCIS-LVIEW/95 VI, LabVIEW will show the description of the VI. 2. Through PCIS-LVIEW/95 on-line help 3. PDF manual files in \Manual directory.
5.1 5.2 5.
5.4 5.5 5.6 5.7 7230 VIs 7230 Initial Initialize PCI-7230 cards. 7230 DI Read 16-bit digital input data from digital input port. 7230 DO Write data to digital output port. 7233 VIs 7233 Initial Initialize PCI-7233 cards. 7233 DI Read 32-bit digital input data from digital input port. 7234 VIs 7234 Initial Initialize PCI-7234 cards. 7234 DO Write data to digital output port. 7248 VIs 7248 Initial Initialize PCI-7248 card. 7248 Config Channel Configure the input or output of each channel.
5.10 7252 VIs 7252 Initial Initialize cPCI-7252 card. 7252 DI Read digital input data from digital input port. 7252 DO Write data to digital output port which can energized RELAY ON/OFF. 7252 DO Readback Read-back data from digital output port. 5.11 7296 VIs 7296 Initial Initialize PCI-7296 card. 7296 Config Channel Configure the input or output of each channel. 7296 Config Port Configure the input or output of each port. 7296 Digital Input Read 8-bit digital input data from digital input port.
7300 Set Sample Write the output data to the index-th position in output DMA buffer 5.13 7396 VIs 7396 Initial Initialize PCI-7396 card. 7396 Config Port Configure the input or output of each port. 7396 Digital Input Read digital input data from digital input port. 7396 Digital Output Write data to digital output port. 7396 Timer Read Read the current contents of the counter #0. 7396 Timer Start Configure the counter #0 to operate in the specified mode.
Reset 5.
9112 AD DMA Stop 9112 AD INT Start 9112 AD INT Status 9112 AD INT Stop Stop the DMA analog input operation Initializes and starts up A/D conversion with interrupt data transfer by using the pacer trigger (internal timer trigger) Check the status of interrupt analog input operation Stop the interrupt analog input operation 9112 AD Set Autoscan Set automatic hardware channel scan to be enable or disable 9112 AD Set Channel Set A/D channel 9112 AD Set Mode Set the A/D trigger and data transfer mode 91
9113 AD INT Status Check the status of EOC interrupt analog input operation 9113 AD INT Stop Stop the EOC interrupt analog input operation 9113 AD Set Channel Set A/D channel 9113 AD Set Mode Set A/D trigger mode 9113 AD Set Range Set A/D range 9113 Counter Read Read the count value of the counter#0 9113 Counter Start Program the counter #0.
5.22 9118 VIs 9118 Initial Initialize PCI-9118 card. 9118DGHG AD Acquire Software trigger the A/D conversion, then poll the A/D conversion data. 9118HR AD Acquire Software trigger the A/D conversion, then poll the A/D conversion data. 9118 AD Begin Set AFIFO After this VI is performed, the program can start to fill out A/D Channel/Gain register to set the A/D channel and range.
trigger). 9118 Enable/Disable About Trigger Mode Enable or disable About Trigger Mode. 9118 Enable/Disable AD Burst Mode Enable or disable AD Burst Mode. 9118 Enable/Disable AD Burst Mode with S&H Enable or disable AD Burst Mode with Sample and Hold. 9118 Enable/Disable Post Trigger Mode Enable or disable Post Trigger Mode. 9118 Free AI Memory Deallocate a system AI memory. 9118DGHG Get DMA Sample Retrieve the index-th data in system AI buffer for DMA transfer.
9812 Allocate DMA Memory Contact Windows 95 system to allocate a block of contiguous memory for DMA transfer. 9812 DMA Cont AD Perform A/D conversion N times with DMA data transfer. 9812 Free DMA Memory Deallocate a system DMA memory. 9812 Get Sample Retrieve the index-th data in DMA buffer. 9812 Set Clock Rate Specify the clock divider for ADC clock. 9812 Set Clock Source Specify the ADC clock source.
6 Distribution of Applications To install an application using PCIS-LVIEW on another computer, you also must install the necessary driver files and supporting libraries on the target machine. You can create an automatic installer to install your program and all of the files needed to run that program or you can manually install the program and program files.
Data Conversion utility DAQCvt.exe in \software\pcis-lview\w98nt2k\redist\daqcvt to convert the binary data file to the file format read easily. 6.3 Windows 2000 ?? LLB files: Plv.llb in \software\pcis-lview\w98nt2k\redist\llb ?? Required support DLLs: Plv.dll in \software\pcis-lview\w98nt2k\redist\dll. This file should be copied to Winnt\system32 directory. ?? Driver files The corresponding driver files in \software\pcis-lview\w98nt2k\redist\w2000\drivers, e.g. pci7200.sys for PCI-7200.
The corresponding INF files in \software\pcis-lview\w95\redist\Inf, e.g. pci7200.inf for PCI-7200. These files should be copied to Windows\system\inf\other directory.