Advance Technologies; Automate the World.Manual Rev. 2.00Revision Date: March 05, 2007Part No: 50-11224-2000PCIS-DASKData Acquisition Software Deve
iv Table of ContentsPCIS-DASKTrigger Mode Data I/O Through DMA DataTransfer or Interrupt Operation ... 1238 Distribution of Appl
90 UtilitiesPCIS-DASKWin32 UtilitiesNOTE The default destination for the converted file with a .cvt extension is in the same directory as the source f
Utilities 91PCIS-DASKWin32 UtilitiesZ Binary codes to text file. The data in hexadecimal for-mat or converted to a decimal value is written to disk in
92 UtilitiesPCIS-DASKWin32 UtilitiesSample Programs BrowserThe PCIS-DASK comes with Examples.exe — a sample programbrowser that allows you to view and
Utilities 93PCIS-DASKPCIS-DASK/X Utilities6.2 PCIS-DASK/X UtilitiesThis section introduces the tools that comes with the PCIS-DASK/X package for Linux
94 UtilitiesPCIS-DASKPCIS-DASK/X Utilitiesnumber of pages of contiguous initially allocated memory for con-tinuous analog input, analog output, digita
Utilities 95PCIS-DASKPCIS-DASK/X Utilities
96 UtilitiesPCIS-DASKModule Installation Script6.3 Module Installation ScriptThe PCI-bus architecture allows automatic detection of PCIdevices right a
Utilities 97PCIS-DASKModule Installation ScriptBecause the current modules are designed based on Uni-Proces-sor kernel, these modules may not work wit
986.4 Uninstallation ScriptThe dask_remove.pl removes the PCIS-DASK/X installed in Linux.By default, this script is located at pci-dask_xxx/util direc
Utilities 99PCIS-DASKData File Converter (DAQCvt)Options for data format conversionDAQCvt provides three data format options.-st : text file with scal
Introduction 1PCIS-DASK1 IntroductionThe PCIS-DASK is a software development kit for NuDAQ dataacquisition cards utilizing the PCI bus. With high perf
100 UtilitiesPCIS-DASKData File Converter (DAQCvt)
Sample Programs 101PCIS-DASKBrief Program Descriptions7 Sample ProgramsSeveral sample programs are provided in the software CD. Thesesample program ar
102 Sample ProgramsPCIS-DASKBrief Program DescriptionsPCI-7200C7200File1. Digital input of PCI-7200/cPCI-7200 through DMA transfer2. Storing the data
Sample Programs 103PCIS-DASKBrief Program DescriptionsPCI-7248SDK7248D/I, and D/O of PCI-7248/cPCI-7248Visual C/C++ ProgramSDK7248IntD/I, and D/O of P
104 Sample ProgramsPCIS-DASKBrief Program DescriptionsPCI-7296SDK7296D/I, and D/O of PCI-7296Visual C/C++ sample programSDK7296IntD/I, and D/O of PCI-
Sample Programs 105PCIS-DASKBrief Program DescriptionsPCI-7300 Rev.BSDK7300WaveDigital input of PCI-7300A_Rev.B/cPCI-7300A_Rev.B through DMA transferV
106 Sample ProgramsPCIS-DASKBrief Program DescriptionsPCI-7348/PCI-7396SDK7348D/I, and D/O of PCI-7348Visual C/C++ sample programSDK7348IntD/I, and D/
Sample Programs 107PCIS-DASKBrief Program DescriptionsPCI-7432SDK7432D/I, and D/O of PCI-7432/cPCI-7432Visual C/C++ sample programSDK7432IntD/I, and D
108 Sample ProgramsPCIS-DASKBrief Program DescriptionsPCI-7442 C7442TTL_LineProgrammable D/I and D/O of PCI-7442Visual C/C++ ProgramC7442TTL_PortProgr
Sample Programs 109PCIS-DASKBrief Program DescriptionsPCI-7444 C7444TTL_LineProgrammable D/I and D/O of PCI-7444Visual C/C++ ProgramC7444TTL_PortProgr
2IntroductionPCIS-DASKHardware Support1.1 Hardware SupportThe PCIS-DASK currently supports the following NuDAQ dataacquisition and NuIPC CompactPCI ca
110 Sample ProgramsPCIS-DASKBrief Program DescriptionsPCI-9112SDK9112A/D conversion, D/A conversion, D/I, and D/O of PCI9112/cPCI-9112Visual C/C++ pro
Sample Programs 111PCIS-DASKBrief Program DescriptionsPCI-9114SDK9114A/D conversion, D/A conversion, D/I, and D/O of PCI-9114 Visual C/C++ ProgramSDK9
112 Sample ProgramsPCIS-DASKBrief Program DescriptionscPCI-9116SDK9116A/D conversion of cPCI-9116Visual C/C++ ProgramSDK9116ScanDmaSoftware trigger wi
Sample Programs 113PCIS-DASKBrief Program DescriptionsPCI-9118SDK9118HRDbfDmaDouble buffer mode analog input of PCI-9118HR through DMA data transferV
114 Sample ProgramsPCIS-DASKBrief Program DescriptionsPCI-9812SDK9812SoftTrgSoftware trigger with Single buffer mode analog input of PCI-9812/cPCI-981
Sample Programs 115PCIS-DASKBrief Program DescriptionsNOTE The PCIS-DASK comes with Examples.exe - a sample program browser that allows you to view an
116 Sample ProgramsPCIS-DASKDevelopment Environments7.2 Development EnvironmentsVisual Basic Sample ProgramsSeveral Visual Basic sample programs are p
Sample Programs 117PCIS-DASKDevelopment EnvironmentsYou can use any Microsoft® Visual C++ 4.0 editor to view or mod-ify these source files. However,
118 Sample ProgramsPCIS-DASKExecute Sample Programs7.3 Execute Sample Programs To run the sample programs:1. Open the sample programYou can use Micros
Sample Programs 119PCIS-DASKDetailed Descriptions of Programs7.4 Detailed Descriptions of ProgramsFour types of sample programs are provided together
Introduction 3PCIS-DASKLanguage Support1.2 Language SupportThe PCIS-DASK is a DLL (Dynamic-Link Library) version for use-with Windows® and Linux envir
120 Sample ProgramsPCIS-DASKDetailed Descriptions of ProgramsA/D Conversion, D/A Conversion, D/I, and D/OThis sample illustrates how to use the PCIS-D
Sample Programs 121PCIS-DASKDetailed Descriptions of ProgramsData I/O Through DMA Data Transfer or Interrupt OperationThis program demonstrates the us
122 Sample ProgramsPCIS-DASKDetailed Descriptions of ProgramsDouble Buffer Mode Data I/O Through DMA Transfer or Interrupt OperationThis program tells
Sample Programs 123PCIS-DASKDetailed Descriptions of ProgramsTrigger Mode Data I/O Through DMA Data Transfer or Interrupt OperationThese programs tell
124 Sample ProgramsPCIS-DASKDetailed Descriptions of Programs
Distribution of Applications 125PCIS-DASKRequired Files8 Distribution of Applications8.1 Required FilesWhen installing an application that uses PCIS-D
126 Distribution of ApplicationsPCIS-DASKRequired Filesfor PCI-7200). These files must be copied to Winnt\system32\drivers directory.X Corresponding I
Distribution of Applications 127PCIS-DASKAutomatic Installers8.2 Automatic InstallersSeveral programming environments provide setups or distributionki
128 Distribution of ApplicationsPCIS-DASKManual Installation8.3 Manual InstallationIf the programming environment does not include a setup or distri-b
4IntroductionPCIS-DASKLanguage Support
Function Classes 5PCIS-DASK2 Function ClassesThis chapter describes the classes of functions that the PCIS-DASK supports.All PCIS-DASK functions are g
6 Function ClassesPCIS-DASKGeneral Configuration Function Group2.1 General Configuration Function GroupThese functions initialize and configure data a
Function Classes 7PCIS-DASKAnalog Input Function Group2.3 Analog Input Function GroupAnalog Input Configuration FunctionsAI_9111_Config Informs PCIS-D
8 Function ClassesPCIS-DASKAnalog Input Function Grouplog input operation of PCI9118. Youmust call this function before callingfunction to perform con
Function Classes 9PCIS-DASKAnalog Input Function GroupAI_GetView Gets the mapped buffer address of theanalog input memory that is available inthe dev
Copyright 2007 ADLINK TECHNOLOGY INC.All Rights Reserved.DisclaimerThe information in this document is subject to change without priornotice in order
10 Function ClassesPCIS-DASKAnalog Input Function GroupAI_ContReadMultiChannelsPerforms continuous A/D conversionson the specified analog input channe
Function Classes 11PCIS-DASKAnalog Input Function GroupThe notification is performed through auser-specified callback function.AI_ContBufferReset Rese
12 Function ClassesPCIS-DASKAnalog Output Function Group2.4 Analog Output Function GroupAnalog Output Configuration FunctionsAO_6208A_Config Informs P
Function Classes 13PCIS-DASKAnalog Output Function GroupOne-Shot Analog Output FunctionsAO_WriteChannel Writes a binary value to the specifiedanalog o
14 Function ClassesPCIS-DASKDigital Input Function Group2.5 Digital Input Function GroupDigital Input Configuration FunctionsDI_7200_Config Informs PC
Function Classes 15PCIS-DASKDigital Input Function GroupContinuous Digital Input FunctionsDI_ContReadPort Performs continuous digital input on thespec
16 Function ClassesPCIS-DASKDigital Input Function GroupAsynchronous Digital Input Monitoring FunctionsDI_AsyncCheck Checks the current status of the
Function Classes 17PCIS-DASKDigital Output Function Group2.6 Digital Output Function GroupDigital Output Configuration FunctionsDO_7200_Config Informs
18 Function ClassesPCIS-DASKDigital Output Function GroupOne-Shot Digital Output FunctionsDO_WriteLine Sets the specified digital output line inthe sp
Function Classes 19PCIS-DASKDigital Output Function GroupContinuous Digital Output FunctionsDO_ContWritePort Performs continuous digital output onthe
Getting serviceCustomer satisfaction is our top priority. Contact us should yourequire any service or assistance.ADLINK TECHNOLOGY INC.Web Site http:/
20 Function ClassesPCIS-DASKTimer/Counter Function Group2.7 Timer/Counter Function GroupTimer/Counter FunctionsCTR_Setup Configures the selected count
Function Classes 21PCIS-DASKTimer/Counter Function GroupGPTC_Status Reads the latched GPTC status of thegeneral-purpose counter/timer fromGPTC status
22 Function ClassesPCIS-DASKDigital Input/Output Function Group2.8 Digital Input/Output Function GroupDigital Input/Output Configuration FunctionsDIO_
Function Classes 23PCIS-DASKDigital Input/Output Function GroupDual-Interrupt System Setting FunctionsDIO_SetDualInterrupt Controls two interrupt sour
24Local Interrupt Setting FunctionsDIO_7300SetInterrupt Controls the interrupt sources (AUXDIand Timer2) of local Interrupt system ofPCI-7300A/cPCI-73
Function Classes 25PCIS-DASKEmergency Shutdown Function Group2.9 Emergency Shutdown Function GroupEMGShutDownControl Controls emergency shutdown.EMGSh
26 Function ClassesPCIS-DASKCalibration Function Group
Building Applications 27PCIS-DASKContiguous Memory Allocation3 Building Applications3.1 Contiguous Memory AllocationThe PCIS-DASK features continuous
28 Building ApplicationsPCIS-DASKApplication Building Fundamentals in Windows3.2 Application Building Fundamentals in WindowsThe following sections pr
Building Applications 29PCIS-DASKApplication Building Fundamentals in WindowsUsing Microsoft® Visual Basic®Follow the steps in the succeeding sections
ADLINK TECHNOLOGY BEIJINGSales & Service [email protected] No. +82-2-20570565Fax No. +82-2-20570563Mailing Address 4F, Kostech Bu
30 Building ApplicationsPCIS-DASKApplication Building Fundamentals in Windowsstants that can be used to develop the data acquisition application.To ad
Building Applications 31PCIS-DASKApplication Building Fundamentals in WindowsDesign the interfaceTo design the interface for the application, place al
32 Building ApplicationsPCIS-DASKApplication Building Fundamentals in Linux3.3 Application Building Fundamentals in LinuxThe following sections provid
Building Applications 33PCIS-DASKApplication Building Fundamentals Using .NET3.4 Application Building Fundamentals Using .NETThe following sections pr
34 Building ApplicationsPCIS-DASKApplication Building Fundamentals Using .NETtory. By default, the DASK.vb file is installed at C:\ADLINK\PCIS-DASK\IN
Building Applications 35PCIS-DASKApplication Building Fundamentals Using .NETUsing Microsoft C#To create a data acquisition application using PCIS-DAS
36 Building ApplicationsPCIS-DASKApplication Building Fundamentals Using .NETtory. By default, the DASK.cs file is installed at C:\ADLINK\PCIS-DASK\IN
Building Applications 37PCIS-DASKApplication Building Fundamentals Using .NETCreating Windows® PCIS-DASK Application Using Microsoft VB.net.To create
384. Run your application. Do one of the following to run theapplication:Z Choose Start from the Run menuZ Click the Start icon from the toolbarZ Pr
Building Applications 39PCIS-DASKApplication Building Fundamentals Using .NETUsing Callback Functions in a C# Application with PCIS-DASKTo use callbac
Using this manualAudience and scopeThis manual guides you when using the PCIS-DASK softwaredriver for NuDAQ PCI bus data acquisition cards. This manua
40 Building ApplicationsPCIS-DASKApplication Building Fundamentals Using .NET
Application Hints 41PCIS-DASK4 Application HintsThis chapter provides the programming schemes showing thefunction flow of that PCIS-DASK performs anal
42 Application HintsPCIS-DASKAnalog Input4.1 Analog InputPCIS-DASK provides two kinds of analog input operation: nonbuf-fered single-point analog inpu
Application Hints 43PCIS-DASKAnalog InputOne-Shot Analog InputThis section describes the function flow typical of non-buffered sin-gle-point analog in
44 Application HintsPCIS-DASKAnalog InputSynchronous Continuous Analog InputThis section describes the function flow typical of synchronousanalog inpu
Application Hints 45PCIS-DASKAnalog InputNon-Trigger Non-double-buffered Asynchronous Continuous Analog InputThis section describes the function flow
46 Application HintsPCIS-DASKAnalog InputExample code fragmentcard = Register_Card(PCI_9112, card_number);…AI_9112_Config(card,TRIG_INT_PACER);AI_Asyn
Application Hints 47PCIS-DASKAnalog InputNon-Trigger Double-buffered Asynchronous Continuous Analog InputThis section describes the function flow typi
48 Application HintsPCIS-DASKAnalog InputExample code fragmentcard = Register_Card(PCI_9112, card_number);…AI_9112_Config(card,TRIG_INT_PACER);AI_Asyn
Application Hints 49PCIS-DASKAnalog InputTrigger Mode Non-double-buffered Asynchronous Continuous Analog InputThis section describes the function flow
ConventionsTake note of the following conventions used throughout the man-ual to make sure that you perform certain tasks and instructionsproperly.NOT
50 Application HintsPCIS-DASKAnalog InputExample code fragmentcard = Register_Card(PCI_9118, card_number);…AI_9118_Config(card, P9118_AI_BiPolar|P9118
Application Hints 51PCIS-DASKAnalog InputTrigger Mode Double-buffered Asynchronous Continuous Analog InputThis section describes the function flow typ
52 Application HintsPCIS-DASKAnalog InputNOAI_ContReadChannel/ AI_ContReadChannelToFileAI_ContScanChannels/ AI_ContScanChannelsToFileSample multiple c
Application Hints 53PCIS-DASKAnalog InputExample code fragmentcard = Register_Card(PCI_9118, card_number);…AI_9118_Config(card,P9118_AI_BiPolar|P9118_
54 Application HintsPCIS-DASKAnalog Output Programming Hints4.2 Analog Output Programming HintsThis section describes the function flow typical of sin
Application Hints 55PCIS-DASKDigital Input Programming Hints4.3 Digital Input Programming HintsThe PCIS-DASK provides two types of digital input opera
56 Application HintsPCIS-DASKDigital Input Programming HintsOne-Shot Digital InputThis section describes the function flow typical of non-buffered sin
Application Hints 57PCIS-DASKDigital Input Programming Hints:card = Register_Card(PCI_7442, card_number);//line configured DIO_LineConfig(card ,P7442_
58 Application HintsPCIS-DASKDigital Input Programming HintsSynchronous Continuous Digital InputThis section describes the function flow typical of sy
Application Hints 59PCIS-DASKDigital Input Programming HintsNon-double-buffered Asynchronous Continuous Digital InputThis section describes the functi
Table of Contents iPCIS-DASKTable of Contents1 Introduction ... 11.1 Hardware Su
60 Application HintsPCIS-DASKDigital Input Programming HintsExample code fragment:card = Register_Card(PCI_7200, card_number);…DI_7200_Config(card,TRI
Application Hints 61PCIS-DASKDigital Input Programming HintsDouble-buffered Asynchronous Continuous Digital InputThis section describes the function f
62 Application HintsPCIS-DASKDigital Input Programming HintsExample code fragment:card = Register_Card(PCI_7200, card_number);…DI_7200_Config(card,TRI
Application Hints 63PCIS-DASKDigital Input Programming HintsMultiple-buffered Asynchronous Continuous Digital InputThis section describes the function
64 Application HintsPCIS-DASKDigital Input Programming HintsDI_XXXX_Config(XXXX = card type)DI_ContMultiBufferSetup repeatedly…Next half bufferready?
Application Hints 65PCIS-DASKDigital Input Programming HintsExample code fragment:card = Register_Card(PCI_7300A_RevB, card_number);…DI_7300B_Config(c
66 Application HintsPCIS-DASKDigital Output Programming Hints4.4 Digital Output Programming HintsThe PCIS-DASK provides three types of digital output
Application Hints 67PCIS-DASKDigital Output Programming HintsOne-Shot Digital OutputThis section describes the function flow typical of non-buffered s
68 Application HintsPCIS-DASKDigital Output Programming Hints:card = Register_Card(PCI_7442, card_number);//Lines configured DIO_LineConfig(card, P744
Application Hints 69PCIS-DASKDigital Output Programming HintsSynchronous Continuous Digital OutputThis section describes the function flow typical of
ii Table of ContentsPCIS-DASK3.1 Contiguous Memory Allocation ... 273.2 Application Building Fundamentals in W
70 Application HintsPCIS-DASKDigital Output Programming HintsAsynchronous Continuous Digital OutputThis section describes the function flow typical of
Application Hints 71PCIS-DASKDigital Output Programming HintsPattern Generation Digital OutputThis section describes the function flow typical of patt
72 Application HintsPCIS-DASKDigital Output Programming HintsMultiple-buffered Asynchronous Continuous Digital OutputThis section describes the functi
Application Hints 73PCIS-DASKDigital Output Programming HintsExample code fragment:card = Register_Card(PCI_7300A_RevB, card_number);…DO_7300B_Config
74 Application HintsPCIS-DASKDAQ Event Message Programming Hints4.5 DAQ Event Message Programming HintsDAQ Event Message functions are efficient ways
Application Hints 75PCIS-DASKDAQ Event Message Programming HintsExample code fragment:card = Register_Card(PCI_9118DG, card_number);AI_9118_Config(car
76 Application HintsPCIS-DASKInterrupt Event Message Programming Hints4.6 Interrupt Event Message Programming HintsThe PCIS-DASK comes with two method
Application Hints 77PCIS-DASKInterrupt Event Message Programming HintsThrough user-defined callbacks and Windows MessagequeueExample code fragment:car
78 Application HintsPCIS-DASKInterrupt Event Message Programming HintsThrough a Win32 wait functionExample code fragment:card = Register_Card(PCI_7230
Continuous Data Transfer 79PCIS-DASKMechanisms5 Continuous Data TransferThe continuous data transfer function in the PCIS-DASK inputs oroutputs blocks
Table of Contents iiiPCIS-DASKAsynchronous Continuous Digital Output ... 70Pattern Generation Digital Output ...
80 Continuous Data TransferPCIS-DASKDouble-Buffered AI/DI Operation5.2 Double-Buffered AI/DI OperationThe PCIS-DASK uses double-buffering techniques i
Continuous Data Transfer 81PCIS-DASKDouble-Buffered AI/DI OperationAI_AsyncDblBufferHalfReady or DI_AsyncDblBufferHalfReadyto check if data in the cir
82 Continuous Data TransferPCIS-DASKDouble-Buffered AI/DI OperationSingle-Buffered Versus Double-Buffered Data TransferSingle-buffered data transfer i
Continuous Data Transfer 83PCIS-DASKTrigger Mode Data Acquisition for Analog Input5.3 Trigger Mode Data Acquisition for Analog InputA trigger is an ev
84
Utilities 85PCIS-DASKWin32 Utilities6 UtilitiesThis chapter introduces the tools that came with the PCIS-DASKpackage.6.1 Win32 UtilitiesNuDAQ Registry
86 UtilitiesPCIS-DASKWin32 UtilitiesA Driver Configuration window appears.From the Card Type drop-down menu, select the driver you wantto register, th
Utilities 87PCIS-DASKWin32 UtilitiesAfter setting the driver configuration, click OK to register the driverand return to the PciUtil main window. The
88 UtilitiesPCIS-DASKWin32 UtilitiesUsing PciUtil in Windows® 98/2000/XP/Server 2003The PciUtil sets or modifies the allocated buffer sizes of AI, AO,
Utilities 89PCIS-DASKWin32 UtilitiesData File Converter (DAQCvt)When performing continuous data acquisition followed by storageto a disk operation, th
Kommentare zu diesen Handbüchern