_8216_AD_Set_Channel. Adlink ACL -6128, ACL-8216


Add to my manuals
75 Pages

advertisement

_8216_AD_Set_Channel. Adlink ACL -6128, ACL-8216 | Manualzz

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

Was this manual useful for you? Yes No
Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Related manuals

advertisement

Table of contents