ADLINK ACL-8112 Series User Manual

Page 77

Advertising
background image

C Language Library

• 69

7.11 _8112_AD_Soft_Trig

Description

This function is used to trigger an A/D conversion using software trigger.
When the function is called, a trigger pulse will be generated and the
converted data will be stored at base address Base+4 and Base+5, and
can be retrieved using function _8112_AD_Acquire(). Refer to section
7.12.

Syntax

int _8112_AD_Soft_Trig( void )
int _8112pg_AD_Soft_Trig( void )

Argument:

None

Return Code:

ERR_NoError
ERR_BoardNoInit

Example:


#include “8112.h”

main()
{
_8112_Initial( CARD_1, 8112DG, 0x220 );
/* Assume NoError when Initialize ACL-8112 */

_8112_AD_Soft_Trig();
printf( "Now, AD is triggered.\n" );
.
.
_8112_AD_Aquire( &data);

}

Advertising