ADLINK ACL-8216 User Manual
Page 56

48 • C/C++ Library
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:
channel number to perform AD
conversion
Single-ended mode: Channel no. is from
0~15
Differential mode: Channel no. is from
0~7
@ Return Code
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 */
}
- USB-1901 (84 pages)
- USB-1210 (54 pages)
- USB-2401 (60 pages)
- USB-7230 (50 pages)
- USB-2405 (56 pages)
- DAQe-2010 (92 pages)
- DAQe-2204 (100 pages)
- DAQe-2213 (94 pages)
- DAQe-2501 (74 pages)
- PXI-2010 (84 pages)
- PXI-2020 (60 pages)
- PXI-2501 (62 pages)
- cPCI-9116 (98 pages)
- ACL-8112 Series (93 pages)
- ACL-8112 Series (94 pages)
- ACL-8112 Series (92 pages)
- ACL-8111 (61 pages)
- PCM-9112+ (94 pages)
- PCM-9112+ (10 pages)
- cPCI-6216V (47 pages)
- ACL-6126 (28 pages)
- ACL-6128A (40 pages)
- PCM-6308V+ (52 pages)
- PCM-6308V+ (4 pages)
- PCI-7444 (82 pages)
- PCI-7434 (48 pages)
- PCI-7234 (56 pages)
- PCI-7260 (66 pages)
- PCI-7258 (38 pages)
- PCI-7256 (48 pages)
- PCI-7250 (48 pages)
- LPCI-7250 (48 pages)
- PCI-7396 (65 pages)
- PCI-7296 (59 pages)
- PCI-8554 (67 pages)
- PCIe-7360 (94 pages)
- PCIe-7350 (86 pages)
- PCIe-7300A (114 pages)
- PCIe-7200 (51 pages)
- PCI-7300A (112 pages)
- PCI-7300A (83 pages)
- PCI-7200 (96 pages)
- cPCI-7300 (83 pages)
- cPCI-7300 (82 pages)