advertisement
5.9 _8216_AD_Set_Channel
@ Description
This function is used to set AD channel by means of writing data to the channel multiplexer register. There are 16 single-ended A/D channels in ACL-8216, so the channel number should be set between 0 to 15 only. The initial state is channel 0 which is a default setting by the
ACL-8216 hardware configuration.
@ Syntax int _8216_AD_Set_Channel( int ad_ch_no )
@ Argument
ad_ch_no: conversion
0~15
0~7
@ Return Code channel number to perform AD
Single-ended mode: Channel no. is from
Differential mode: Channel no. is from
ERR_NoError
ERR_BoardNoInit
ERR_InvalidADChannel
@ Example
#include “aclerr.h”
#include "8216.h" main()
{
_8216_Initial( CARD_1, 0x220 );
/* Assume NoError when Initialize ACL-8216 */
_8216_AD_Set_Channel( 3 ); printf( "AD channel 3 is now selected.\n" );
/* the following A/D's operation is based on channel
3 */
}
48 • C/C++ Library
advertisement
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Related manuals
advertisement
Table of contents
- 10 Features
- 11 Specifications
- 13 Software Support
- 13 Programming Library
- 13 LabView Driver
- 14 What You Have
- 15 Unpacking
- 16 ACL-8216's Layout
- 17 Jumper and DIP Switch Description
- 17 Base Address Setting
- 19 Analog Input Channel Configuration
- 20 DMA Channel Setting
- 21 Internal/External Trigger Setting
- 22 Clock Source Setting
- 22 IRQ Level Setting
- 23 D/A Reference Voltage Setting
- 25 Connectors Pin Assignment
- 28 Daughter Board Connection
- 28 Connect with ACLD
- 30 I/O Port Address
- 31 A/D Data Registers & Status Control Register
- 33 A/D Channel Multiplexer Register
- 35 A/D Range Control Register
- 36 A/D Operation Mode Control Register
- 37 Clear Interrupt Register
- 37 Software Trigger Register
- 38 Digital I/O register
- 39 D/A Output Register
- 40 Internal Timer/Counter Register
- 41 A/D Conversion
- 41 A/D Conversion Procedure
- 42 A/D Trigger Modes
- 43 A/D Data Transfer Modes
- 44 D/A Conversion
- 45 Digital Input and Output
- 46 Timer/Counter Operation
- 49 Installation
- 50 _8216_Initial
- 51 _8216_Switch_Card_No
- 52 _8216_DI
- 52 _8216_DI _Channel
- 53 _8216_DO
- 54 _8216_DA
- 55 _8216_AD_Input_Mode
- 56 _8216_AD_Set_Channel
- 57 _8216_AD_Set_Range
- 58 _8216_AD_Set_Mode
- 59 _8216_AD_Soft_Trig
- 60 _8216_AD_Acquire
- 61 _8216_CLR_IRQ
- 62 _8216_AD_DMA_Start
- 64 _8216_AD_DMA_Status
- 64 _8216_AD_DMA_Stop
- 65 _8216_AD_INT_Start
- 66 _8216_AD_INT_Status
- 66 _8216_AD_INT_Stop
- 67 _8216_AD_Timer
- 68 _8216_Timer_Start
- 68 _8216_Timer_Read
- 69 _8216_Timer_Stop
- 70 What do you need
- 71 VR Assignment
- 71 A/D Adjustment
- 72 D/A Adjustment
- 72 Reference Voltage Calibration
- 72 D/A Channel Calibration
- 74 Warranty Policy