Advantech PCI-1710 Uživatelská příručka

Procházejte online nebo si stáhněte Uživatelská příručka pro ne Advantech PCI-1710. Advantech PCI-1710 User`s guide Uživatelská příručka

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 199
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků

Shrnutí obsahu

Strany 1 - User’s Guide

32-bit LabVIEW Drivers User’s Guide (Windows 95&98/NT/2000 Version) 2st Edition December,25 2000 S/N:2053000201 Adva

Strany 2 - Table of Contents

Configure the device, and when you're satisfied with your entries, press OK. This will bring you back to the I/O Device Installation dialog box,

Strany 3 - About This Manual

4.2.10 FreeDMABuf Releases the buffer allocated by AllocateDMABuffer. Input: Data type Parameter Description

Strany 4 - Run tutorials

4.2.11 AllocINTBuf Allocates data buffer of Windows system for interrupt data acquisition. Input: Data type Parameter Description

Strany 5 - Functionality

4.2.12 FreeINTBuf Releases the buffer allocated by AllocateINTBuffer. Input: Data type Parameter Description

Strany 6 - Hardware Supporting

4.2.13 EnableEvent Enables or disables events. This funtion supports both interrupt and DMA features Input: Data type Parameter Description

Strany 7 - 1.1 Installation

4.2.14 CheckEvent Clears events and reads current status. Input: Data type Parameter Description DevHandle

Strany 8 - 1.2 Configuration

4.2.15 GetFIFOSize Get size of the FIFO. Input: Data type Parameter Description DevHandle The handler id of

Strany 9

4.2.116 DeviceNumToDeviceName Return name of the specified device. Input: Data type Parameter Description De

Strany 10

4.3. adSlowAI 4.3.1 AIConfig Configures the input range for the specified analog input channel. Input: Data type Parameter Description

Strany 11

4.3.2 AIGetConfig Retrieves analog input configuration data and returns it to a buffer. Input: Data type Parameter Description

Strany 12 - Chapter 2 Tutorials

4.3.3 MAIConfig Configures the input ranges for the specified analog input channels. Input: Data type Parameter Description

Strany 14 - 2.3 Tutorials

4.3.4 TCMuxRead Measures a temperature using an expansion board, for example, PCLD-788/789/789D/8115/889. Input: Data type Parameter Descript

Strany 15

4.3.5 AIVoltageIn Reads an analog input channel and returns the result scaled to a voltage (units = volts). Input: Data type Parameter Descri

Strany 16

4.3.6 AIBinaryIn Reads an analog input channel and returns the unscaled result. Input: Data type Parameter Description

Strany 17

4.3.7 AIScale Convert the binary result from an AIBinaryIn call to the actual input voltage. Input: Data type Parameter Description

Strany 18

4.3.8 AIVoltageInExp Reads an analog input channel using expansion board and returns the result scaled to a voltage (units = volts). This function s

Strany 19

4.3.9 MAIVolatgeIn Reads analog input channels and returns the results scaled to voltages (units = volts). Input: Data type Parameter Descripti

Strany 20

4.3.10 MAIBinaryIn Reads analog input channels and returns the unscaled results. Input: Data type Parameter Description

Strany 21

4.3.11 MAIVoltageInExp Reads an analog input channel with an expansion board and returns the result scaled to a voltage in units of volts. This func

Strany 22

4.4. adSlowAO 4.4.1 AOConfig Records the output range and polarity for each analog output channel selected. Its use is optional. Input: Data t

Strany 23

4.4.2 AOVoltageOut Accepts a floating-point voltage value, scales it to the proper binary number, and writes that number to an analog output channel

Strany 24

Chapter 2 Tutorials This chapter teaches you step-by-step how to create an application in LabVIEW. It also guides you through the Search Examples fe

Strany 25

4.4.3 AOScale Scales a voltage to a binary value that, when written to one of the analog output channels, produces the specified voltage. Input:

Strany 26

4.4.4 AOBinaryOut Writes a binary value to one of the analog output channels, changing the voltage produced at the channel. Input: Data type Pa

Strany 27

4.4.5 AOCurrentOut Accepts a floating-point current value, scales it to the proper binary number, and writes that number to an analog output channel

Strany 28

4.4.6 EnableSyncAO Enable synchronized analog output. Input: Data type Parameter Description DevHandle The

Strany 29

4.4.7 WriteSyncAO Write synchronized analog output. Input: Data type Parameter Description DevHandle The ha

Strany 30

4.5. adDIO 4.5.1 DIOSetPortMode Configures the specified port for input or output. This function only supports PCL-722/724/731. Input: Data typ

Strany 31

4.5.2 DIOGetConfig Reads digital input and output configuration data stored in the Registry or a configuration file. The application calls this func

Strany 32

4.5.3 DIOGetCurrentDOBit Returns the value stored at a specified bit position from the specified digital I/O port. The port is specified by port num

Strany 33

4.5.4 DIOGetCurrentDOByte Returns byte data from the specified I/O port of a device. The port is specified by port number which ranges from 0 to the

Strany 34

4.5.5 DIOWriteBit Writes digital output bit data to the specified digital port. The port is specified by the port number which ranges from 0 to the

Strany 35 - Chapter 3 Easy I/O VIs

6. Create a waveform chart by selecting Controls>>Graph>>Waveform Chart. This chart plots data one point at a time. 7. Place the chart on

Strany 36 - 3.1 SelectPop

4.5.6 DIOReadBit Returns the bit state of digital input from the specified digital I/O port. The port is specified by port number which ranges from 0

Strany 37

4.5.7 DIOWritePortByte Writes output byte data to the specified port. Input: Data type Parameter Description

Strany 38

4.5.8 DIOReadPortByte Returns input byte data from the specified I/O port. The port is specified by port number which ranges from 0 to the maximum n

Strany 39

4.5.9 WritePortByte Writes an 8-bit data to the specified I/O port. The port address is an I/O port address on the PC. Input: Data type Parameter

Strany 40

4.5.10 ReadPortByte Reads a 8-bit of byte data from the specified I/O port. The port address is an I/O port address on the PC. Input: Data type

Strany 41

4.5.11 WritePortWord Writes a 16-bit of word data to the specified I/O port. The port address is an I/O port address on the PC. Input: Data typ

Strany 42 - 3.2 EasyFastAI

4.5.12 ReadPortWord Reads a 16-bit of word data from the specified I/O port. The port address is an I/O port address on the PC. Input: Data typ

Strany 43

4.5.13 Outp Directly outputs byte data to a specified port of a defined device using the device number. Input: Data type Parameter Descriptio

Strany 44

4.5.14 Outpw Directly outputs word data to a specified port of a defined device using the device number. Input: Data type Parameter Descripti

Strany 45

4.5.15 Inp Directly inputs byte data from a specified port of a defined device using the device number. Input: Data type Parameter Descriptio

Strany 46

2.3 Tutorials 2.3.1 Tutorial 1 : Get voltage input from PCL-818L The purpose of this tutorial is to teach you how to build a LabVIEW application to

Strany 47

4.5.16 Inpw Directly inputs word data from a specified port of a defined device using the device number. Input: Data type Parameter Descripti

Strany 48

4.6 adCountTimer 4.6.1 CounterEventStart Configures the specified counter for an event-counting operation and starts the counter. Input: Data t

Strany 49

4.6.2 CounterEventRead Reads the current counter total without disturbing the counting process and returns the count and overflow conditions. Inp

Strany 50

4.6.3 CounterFreqStart Configures a specified counter for frequency measurement and starts the counter. Input: Data type Parameter Description

Strany 51

4.6.4 CounterFreqRead Reads the frequency measurement. Input: Data type Parameter Description DevHandle T

Strany 52

4.6.5 QCounterStart Configures the specified counter for an event-counting operation and starts the counter. This function only supports PCL-833.

Strany 53

4.6.6 QCounterRead Reads the current counter total without disturbing the counting process and returns the count and overflow conditions. Input:

Strany 54

4.6.7 CounterPulseStart Configures the specified counter for pulse output and starts the counter. Input: Data type Parameter Description

Strany 55

4.6.8 CounterReset Turns off the specified counter operation. This function supports boards with the timer/counter chip (i.e. Intel 8254 or AMD Am95

Strany 56

4.6.9 QCounterConfigSys Configures the system clock of the digital filter, time period for latching and cascade mode. This function only supports PC

Strany 57

4. Add a “DeviceOpen” VI from the Advantech 32-bit LabVIEW driver by clicking on user defined VIs. The path to get “DeviceOpen” VI is “User Defined

Strany 58 - Chapter 4 Advanced I/O VIs

4.6.10 QCounterConfig Configures the specified counter for an event-counting operation. This function only supports PCL-833. Input: Data type P

Strany 59

4.6.11 TimerCountSetting Change the Counter/Timer value dynamically. Input: Data type Parameter Description

Strany 60

4.7 adAlarm 4.7.1 AlarmConfig Configures the high and low limit value of the specified channel for alarm monitoring. This function only supports AD

Strany 61

4.7.2 AlarmEnable Enables the alarm in either momentary or latching mode. This function only supports ADAM modules. Input: Data type Parameter

Strany 62

4.7.3 AlarmCheck Checks the alarm status of the specified channel. Input: Data type Parameter Description D

Strany 63

4.7.4 AlarmReset Resets the alarm monitoring of the specified channel. Input: Data type Parameter Description

Strany 64

4.8 FastAI 4.8.1 FAIINTStart Initiates an asynchronous, single-channel data acquisition operation with interrupt transfer and stores its input in a

Strany 65

4.8.2 FAIINTScanStart Initiates an asynchronous, multiple-channel data acquisition operation with Interrupt and stores its input in an array and the

Strany 66

4.8.3 FAIDMAStart Initiates an asynchronous, single-channel data acquisition operation with DMA and stores its input in an array. Note: DMA buffer

Strany 67 - Analog Output Flow Chart:

4.8.4 FAIDMAScanStart Initiates an asynchronous, multiple-channel data acquisition operation with DMA and stores its input in an array and the gain

Strany 68 - Event Counter Flow Chart:

5. Move the mouse to the “DeviceOpen” VI and click on the mouse left button to invoke the “Create Constant” function. After creating a constant, a nu

Strany 69 - Pulse Output Flow Chart:

4.8.5 FAIDualDMAStart Initiates an asynchronous, single-channel data acquisition operation with Dual-DMA and stores its input in an array(for PCL-18

Strany 70

4.8.6 FAIDualDMAScanStart Initiates an asynchronous, mutiple-channel data acquisition operation with Dual-DMA and stores its input in an array and t

Strany 71 - High Speed Flow Chart:

4.8.7 FAITransfer Transfers the data from the buffer being used for the data acquisition operation to the specified data buffer. Input: Data ty

Strany 72

4.8.8 FAICheck Checks if the current data acquisition operation is complete and return current status. Input: Data type Parameter Description

Strany 73 - Single channel

4.8.9 ClearOverrun Clears overrunning flag. Input: Data type Parameter Description DevHandle The handler i

Strany 74

4.8.10 FAIStop Cancels the current data acquisition operation and resets the hardware and software. Input: Data type Parameter Description

Strany 75

4.8.11 FAIDMAExStart Initiates an asynchronous, multiple-channel data acquisition operation with PCI-Bus mastering DMA and stores its input in an ar

Strany 76

4.9 FastAO 4.9.1 FAOINTStart Initiates an asynchronous analog output operation with interrupt transfer. Input: Data type Parameter Description

Strany 77 - Multiple Channel

4.9.2 FAODMAStart Initiates an asynchronous analog output operation with DMA transfer. Input: Data type Parameter Description

Strany 78

4.9.3 FAOScale Translates an array of floating-point values that represent voltages into an array of binary values that produce those voltages when

Strany 79

9. Add “DeviceClose” VI from the Advantech 32-bit LabVIEW driver by clicking on User Defined VIs. The path to get “DeviceClose” VI is “User Defined

Strany 80

4.9.4 FAOLoad Transfers the data from the buffer being used for the data acquisition operation to the specified data buffer. Input: Data type Par

Strany 81 - Conditional conversion

4.9.5 FAOCheck Checks if the current analog output is complete and return current status. Input: Data type Parameter Description

Strany 82

4.9.6 FAOStop Cancels the current analog output operation and resets the hardware and software. Input: Data type Parameter Description

Strany 83

4.10 WatchDog 4.10.1 FAIWatchdogCfg Configures the hardware to acquire data before, before and after or after the signal triggers a analog watchdog

Strany 84 - Analog Output

4.10.2 FAIINTWatchdogStart Initiates an asynchronous data acquisition operation with analog watchdog by interrupt transfer and stores its input in a

Strany 85

4.10.3 FAIDMAWatchdogStart Initiates an asynchronous data acquisition operation with analog watchdog by DMA transfer and stores its input in an arra

Strany 86

4.10.4 FAIWatchdogCheck Checks if the current data acquisition with watchdog is triggered. Input: Data type Parameter Description

Strany 87

4.11 COM Port 4.11.1 COMOpen Opens 1 of 4 serial communication ports (9 serial ports if SuperCom is installed). This function must be called before

Strany 88

4.11.2 COMClose Close the serial port that is opened by COMOpen. Input: Data type Parameter Description De

Strany 89

4.11.3 COMGetConfig Retrieves the serial port settings; e.g. port number, baud rate, parity check. Input: Data type Parameter Description

Strany 90

12.Wire the DeviceHandle output of the AIConfig VI to the DeviceHandle input of AIVoltageIn VI.Wire the DeviceHandle output of AIVoltageIn VI to the

Strany 91 - 4.2. DeviceManager

4.11.4 COMSetConfig Set the port communication configuration; e.g. port number, baud rate, parity check. Input: Data type Parameter Descripti

Strany 92

4.11.5 COMRead Reads data from the specified serial port. Input: Data type Parameter Description DevHandle

Strany 93

4.11.6 COMWrite Writes data to the specified serial port according to the previous configuration stored in Registry. Input: Data type Parameter

Strany 94

4.11.7 COMEscape This routine provides “escape” services to the callers. Input: Data type Parameter Description

Strany 95

4.11.8 COMWrite232 Writes data to the specified RS-232 serial port according to the previous configuration stored in Registry. Input: Data type

Strany 96

4.12 PWM 4.12.1 CounterPWMEnable Enable PWM(Pulse Width Modulation) output operation. Input: Data type Parameter Description

Strany 97

4.12.2 CounterPWMSetting Config the setting value of PWM(Pulse Width Modulation) output. Input: Data type Parameter Description

Strany 98 - Error Codes

4.12.3 DICounterReset Reset the value of specified counter to be reset value. Input: Data type Parameter Description

Strany 99

4.12.4 EnableEventEx Enable or Disable PCI-1760 Event extension. Input: Data type Parameter Description DevH

Strany 100

4.12.5 FDITransfer Access hardware data while event interrupt happened. Input: Data type Parameter Description

Strany 101

14.After enabling the Block Diagram, you will find a “Chan&Gain” data terminal displayed on the Block Diagram. Wire the output of the “Chan&

Strany 102

4.12.6 PWMStartRead Enable PWM (Pulse Width Modulation) read operation. Input: Data type Parameter Description

Strany 103

Appendix A Card Gain Codes This appendix gives the card gains which correspond to the gain codes in the driver. PCL-711B gain code table Input rang

Strany 104

PCL-818 gain code table Input range Recommended gain Gain code ±10V x0.5 8 ±5 V xl 0 ±2.5 V x2 1 ±1.0 V x5 2 ±0.5 V x10 3 0 to 10V x1 4 0 to 5 V

Strany 105

PCL-818L gain code table (JP set to ±±±±5V) Input range Recommended gain Gain code ±5 V xl 0 ±2.5 V x2 1 ±1.25 V x4 2 ±0.625 V x8 3 PCL-818L gai

Strany 106

PCL-816 gain code table Input range Recommended gain Gain code ±10V x1 0 ±5 V x2 1 ±2.5 V x4 2 ±1.25 V x8 3 0 to 10V x1 4 0 to 5 V x2 5 0 to 2

Strany 107 - 4.3. adSlowAI

PCM-3718 gain code table Input range Recommended gain Gain code ±10V x0.5 8 ±5 V xl 0 ±2.5 V x2 1 ±1.25 V x4 2 ±0.625 V x8 3 0 to 10V x1 4 0 to

Strany 108

Appendix B Runtime Error Code Listings The following is a list of possible errors and warnings that you may encounter during Runtime. These error me

Strany 109

36 InvalidEventCount Invalid Number of Event Count On I/O=%XH 37 OpenEventFailed Create or Open Event Failed On I/O=%XH 38 InterruptProcessFailed

Strany 110

Error Code Error ID Description (Error Message) 201 DNInitFailed DeviceNet Initialization Failed 202 DNSendMsgFailed Send Message Failed On Port

Strany 111

Appendix C Reference Advantech 32-bit DLL Driver User’s Manual for Windows NT/95 Ver. 1.xx, MANUAL.PDF1 Advantech LabVIEW Driver User’s Manual f

Strany 112

Table of Contents About this manual Chap 1 Installation and Configuration 1.1 Installation 1.2 Configuration Chap 2 Tutorials 2.1 Search for examp

Strany 113

15.The basic steps to get AIVoltageIn data are now complete. You can change the window to the Front Panel window and click the “Run” or “Run Continu

Strany 114

17.The “Run Continuously” button executes the AIVoltageIn VI continuously. You can also add a “While Loop” to enhance your program. First, move mouse

Strany 115

between TF VI and COND VI. 20.Wire the output of the TF VI to the input of the NOT VI and wire the output of the NOT VI to the input of the COND VI.

Strany 116

2.3.2 Tutorial 2: Get Digital Input Data from PCL-818 The purpose of this tutorial is to teach you how to build a LabVIEW application to retrieve di

Strany 117

4. Move the Round LED icon into the Array icon and enlarge the Array icon to contain 8 round LEDs. 5. Switch to the Block Diagram window. You wil

Strany 118 - 4.4. adSlowAO

6. Create a constant for the device number of the DeviceOpen VI. Create another constant for the port of the DIOReadPortByte VI. 7. Wire the De

Strany 119

8. Compare the device number of the Advantech DEMO I/O with the device number value of the DeviceOpen VI. After checking, press the Run button to ex

Strany 120

2.3.3 Tutorial 3: Programming with Advantech EASY I/O VIs The purpose of this tutorial is to teach you how to build a LabVIEW application through EA

Strany 121

In Tutorial 1, you have to assign a constant value for the device number of the DeviceOpen VI before executing Tutorial 1. That means, you can not ch

Strany 122

6. Now, you can run Tutorial 1 immediately. A pop-up panel will be displayed on screen for selecting devices. 7. Proceed as in step 5 to add the Se

Strany 123

About This Manual The LabView for Windows Data Acquisition and Control VI(Virtual Instrument) user manual describes the VIs that support Advantech p

Strany 124

8. Press the “Run” button to execute the tutorial 3 program. Three pop-up windows will appear for selecting device, channel and gain:

Strany 126 - data

2.3.4 Tutorial 4. Error handling for error message The purpose of this tutorial is to teach you how to apply the error handling function (error in a

Strany 127

4. Switch to the Block Diagram window. You will find the Error Message data terminal added to the Block Diagram. Move the data terminal to the end o

Strany 128

6. Wire the output of the UnbundledByName VI to the input of the ErrorMassge data terminal to display messages in the Front Panel. 7. Press the Ru

Strany 129

Chapter 3 Easy I/O VIs This chapter contains reference descriptions of the EASY I/O VIs, which perform simple channel/device operations and Fast AI

Strany 130

Easy I/O VI Descriptions 3.1 SelectPop 3.1.1 SelectDevicePop Displays pop-up panel for selecting an installed device and outputting device number

Strany 131

3.1.2 SelectSubDevicePop Displays pop-up panel for selecting installed device by its device number, and outputting the module numbers of the expansi

Strany 132

3.1.3 SelectChannelPop Displays pop-up panel for selecting the channel of an installed device and outputting selected channel information and the ga

Strany 133

3.1.4 SelectGainPop Display pop-up panel for selecting the gain code from a gain list for the device specified at a previous VI. Input: Data typ

Strany 134

Install DLL and LabVIEW drivers The Tutorial sections will guide you through the several steps of installation and configuration to set up DLL drivers

Strany 135

3.1.5 GetGainInfo Gets the gain information of the specified device. The device is specified by DevHandle. (You can use DeviceOpen VI to get DevHand

Strany 136

3.1.6 EasyAIPopup Pops up a dialog windows for inputting Analog Input (AI) related configuration data and passes these data to next VI block. Inp

Strany 137

3.2 EasyFastAI 3.2.1 SingleChannelINTSetup Initiates an asynchronous, single-channel data acquisition operation with interrupt transfer and stores

Strany 138

3.2.2 SingleChannelDMASetup Initiates an asynchronous, single-channel data acquisition operation with DMA and stores its input in an array. Input:

Strany 139

3.2.3 MultiChannelINTSetup Initiates an asynchronous, multiple-channel data acquisition operation with interrupt transfer and stores its input in an

Strany 140

3.2.4 MultiChannelDMASetup Initiates an asynchronous, multiple-channel data acquisition operation with DMA and stores its input in an array. Input

Strany 141 - 4.6 adCountTimer

3.2.5 MultiChannelDMAExSetup Initiates an asynchronous, multiple-channel data acquisition operation with PCI-Bus mastering DMA and stores its input

Strany 142

3.2.6 WaitFastAIEvent Waits for FastAI event until specified time has elapsed and outputs the status of the buffer change, terminate, or overrun.

Strany 143

indicated an error, the status, code, and source elements of error out have the same values as the corresponding elements of error in

Strany 144

3.2.7 SingleChanDualDMASetup Initiates an asynchronous, single-channel data acquisition operation with Dual DMA transfer and stores its input in an

Strany 145

Chapter 1 Installation and Configuration This manual describes Advantech’s 32-bit LabVIEW driver designed to integrate Advantech PC-LabCards and

Strany 146

3.2.8 MultiChannelDualDMASetup Initiates an asynchronous, multiple-channel data acquisition operation with Dual DMA transfer and stores its input in

Strany 147

3.2.9 MultiChannelWatchdogINTSetup Initiates an asynchronous data acquisition operation with analog watchdog by interrupt transfer and stores its in

Strany 148

3.2.10 MultiChannelWatchdogDMASetup Initiates an asynchronous data acquisition operation with analog watchdog by DMA transfer and stores its input i

Strany 149

3.2.11 OverrunHandler Clears overrunning flag. Input: Data type Parameter Description DevHandle The handler

Strany 150

3.2.12 BufferChangeHandler Transfers the data from the buffer being used for the data acquisition operation to the specified data buffer Input:

Strany 151

3.2.13 EasyFAICheck Checks whether the single channel data acquisition operation is complete or not and return current status. Input: Data type

Strany 152 - 4.7 adAlarm

3.2.14 SplitIDArray Splits the input array to the output array based on the input NumOfChannel. Input: Data type Parameter Description

Strany 153

3.2.15 EasyDualFAICheck Checks whether the asynchronous, multiple-channel data acquisition operation is complete or not and return current status.

Strany 154

Chapter 4 Advanced I/O VIs The Advanced I/O VIs provide more hardware and software functionality, flexibility, and efficiency than the Easy I/O VIs.

Strany 155

FAIIntScanStart√√√√√√√√FAIDMAScanStart √ √ √ √ √ √ √FAIDualDMAStart √ FAIDualScanStart √ FAITransfer √ √ √ √ √ √ √ √FAICheck √ √ √ √ √ √ √

Strany 156 - 4.8 FastAI

Advantech’s 32-bit LabVIEW drivers provide two different sets of VIs: Easy I/O VIs and Advanced I/O VIs. The Easy I/O VIs are a collection of I/O bloc

Strany 157

AOVoltageOut√√√ √AOScale √ √ √ √EnableSyncAO √WriteSyncAO √AOCurrentOut √Port I/O functions WritePortByte √ √ √ √ √ √WritePortWord √ √ √ √

Strany 158

QcounterRead √ Table 4-1. VI Functions (Continued) Device Function PCL-813B PCL-726/727 PCL-728 MIC2728 Demo Board PCL-725 /730 PCL-733 MIC2730 /2732

Strany 159

DeviceClose√√√√√DeviceGetFeatures √ √ √ √ √Port I/O functions WritePortByte √ √ √ √ √WritePortWord √ √ √ √ √ReadPortByte √ √ √ √ √ReadPortWord √

Strany 160

High-speed EnableEvent √ √ √ √ √CheckEvent √ √ √ √TimerCountSetting √ √ EnableEventEx √ √ FDITransfer √ √Counter functions CounterEve

Strany 161

Table 4-1. VI Functions (Continued) Device Function ADAM-4011/ 4011D ADAM-4012 ADAM-4014D ADAM-4018/ 4018M/5018 ADAM-4017/ 4013/5017 ADAM-4021/ 5024

Strany 162

Table 4-1. VI Functions (Continued) Function ADAM-4060/5056/5060 ADAM-4080D ADAM-4530 ADAM-4521 ADAM-5050 ADAM-4050 Device functions DeviceOpen √ √

Strany 163

The advanced I/O VIs must be called in the following order: Fig 4-1. Function Flow Overview

Strany 164

Analog Input Flow Chart: Fig 4-2. Function Flow Overview Analog Output Flow Chart: Fig 4-3. Function Flow Overview

Strany 165

Digital Input /Output Flow Chart: Fig 4-4. Function Flow Overview Event Counter Flow Chart: Fig 4-5. Function Flow Overview

Strany 166

Frequency Measurement Flow Chart: Fig 4-6. Function Flow Overview Pulse Output Flow Chart: Fig 4-7. Function Flow Overview

Strany 167 - 4.9 FastAO

PCL-812PG, PCL-813B, PCL-816, PCL-818, PCL-818H/HD/HG/L/LS, PCL-833, PCL-836,PCI-1750/1751/1710/1710HG/1720/1760/1712/1713/1753/1752/1754/1756/1711/17

Strany 168

Quadratic Counter Flow Chart: Fig 4-8. Function Flow Overview

Strany 169

Alarm Operations Flow Chart: Fig 4-9. Function Flow Overview High Speed Flow Chart:

Strany 170

Fig 4-10. The Call Flow for Single-channel Data Acquisition with interrupt transfer

Strany 171

Single channelEnableEventCheckEventFAIStopFAITransferBuffer Full(complete)Repeated?NoYes YesNoFAIIntStart Fig 4-11. The Call Flow for Single-channel D

Strany 172

Fig 4-12. The Call Flow for Single-channel Data Acquisition with DMA transfer

Strany 173 - 4.10 WatchDog

AllocateDMABufferSingle channelFAIDmaStartCheckEventFAIStopEnableEventFAITransferBuffer Full(complete)Repeated?FreeDMABufferNoYes YesNo Fig 4-13. The

Strany 174

Fig 4-14. The Call Flow for Multiple-channel Data Acquisition with interrupt transfer

Strany 175

EnableEventMultiple ChannelCheckEventFAIIntScanStartFAITransferBuffer Full(complete)Repeated?NoYes YesNoFAIStop Fig 4-15. The Call Flow for Multiple-c

Strany 176

Fig 4-16. The Call Flow for Multiple-channel Data Acquisition with DMA transfer

Strany 177 - 4.11 COM Port

AllocateDMABufferMultiple ChannelCheckEventFAIDmaScanStartFAITransferBuffer Full(complete)Repeated?NoYes YesNoFAIStopEnableEventFreeDMABuffer Fig 4-17

Strany 178

2. From Program Manager, switch to LabVIEW driver directory and select “SETUP.EXE” file. Double click the mouse button to run it. 3. Supply the info

Strany 179

Fig 4-18. The Call Flow for Multiple-channel Watchdog Data Acquisition with interrupt transfer

Strany 180

EnableEventConditional conversionFAIWatchdogConfigFAIStopFAIIntWatchdogStartFAITransferBuffer Full(complete)Repeated?NoYesNoCheckEventYes Fig 4-19. Th

Strany 181

Fig 4-20. The Call Flow for Multiple-channel Watchdog Data Acquisition with DMA transfer

Strany 182

Conditional conversionAllocateDMABufferFreeDMABufferFAIDmaWatchdogStartFAITransferBuffer Full(complete)Repeated?NoYesCheckEventYesFAIWatchdogConfigFAI

Strany 183

Analog OutputFAOScaleFAOCheckFAOStopFAOScaleBuffer Empty(complete)Repeated?NoYesNoFAODmaStartYesFAOLoad Fig 4-22. The Call Flow for Single-Channel An

Strany 184

EnableEventAnalog OutputFAOScaleCheckEventFAOStopFAOLoadFAOScaleBuffer Empty(complete)Repeated?NoYesNoFAODmaStartYesFAOLoad

Strany 185 - 4.12 PWM

Fig 4-23 The Call Flow for Single-Channel Analog Output with DMA transfer and event function Analog OutputFAOScaleFAOCheckFAOStopFAOScaleBuffer Empty

Strany 186

Analog OutputFAOScaleCheckEventFAOStopFAOScaleBuffer Empty(complete)Repeated?NoYesNoFAOIntStartYesFAOLoadEnableEvent Fig 4-25. The Call Flow for Singl

Strany 187

The Advanced I/O VIs are actually composed of intermediate VIs, which are in turn composed of advanced VIs. Advanced I/O VIs Group VI

Strany 188

- DIOReadPortByte - WritePortByte - ReadPortByte - WritePortWord - ReadPortWord - outp - outpw - inp - inpw - DRV_DIOReadPortByte - DRV_WritePortByte

Strany 189

You can install as many I/O devices as you want. When you have completed your device installation and setup, there should be a listing reflecting yo

Strany 190

- COMClose - COMGetConfig - COMSetConfig - COMRead - COMWrite - COMWrite232 - COMEscape - COMClose - COMGetConfig - COMSetConfig - COMRead - COMWrite

Strany 191 - Appendix A Card Gain Codes

4.2. DeviceManager 4.2.1 DeviceGetNumOfList Gets number of the installed devices Input: None Output: Data type Parameter Description

Strany 192

4.2.2 DeviceGetList Gets a list of the installed devices not including the devices attached to COM ports. Input: None Output: Data type Parame

Strany 193

4.2.3 DeviceGetSubList Gets a list of the installed devices on COM port. Input: Data type Parameter Description

Strany 194

4.2.4 BoardName Get the item name of a specified device. Input: Data type Parameter Description BoardID Th

Strany 195

4.2.5 DeviceOpen Open the device specified by DevNum and installed in the system by “DEVINST.EXE”. Input: Data type Parameter Description

Strany 196

4.2.6 DeviceClose Close the device specified by DevHandle and installed in the system by “DEVINST.EXE”. Input: Data type Parameter Description

Strany 197

4.2.7 DeviceGetFeatures This function accepts a device handler id and returns the device features of the specified devices. Input: Data type Par

Strany 198

4.2.8 GetErrorMessage Retrieves an error message specified by an error code and returns it to the message buffer. Input: Data type Parameter Des

Strany 199 - Appendix C Reference

4.2.9 AllocDMABuf Allocates buffer for DMA data acquisition Input: Data type Parameter Description DevHan

Komentáře k této Příručce

Žádné komentáře