beautypg.com

ADLINK ACL-8454/12 User Manual

Page 54

background image

46

High-Level Programming

5.7 W_8454_DO

@ Description

To write an 8 bits data to the digital output port.

@ Syntax

Microsoft C/C++ (Windows, Win95 & Win-NT)

int W_8454_DO (int DO_Value)

Visual Basic

Windows 3.11 Version:
W_8454_DO (ByVal DO_Value As Integer) As Integer
Win-95 or Win-NT Version:
W_8454_DO (ByVal DO_Value As Long) As Long

C/C++ (DOS)

int _8454_DO(int DO_Value )

@ Arguments

DO_Value : the value to write to digital output port, only the 8 LSBs

of the value are effective.

@ Return Value

Always no error

5.8 W_8454_DI

@ Description

To read the data of the digital input port. It is possible to read the 8
LSBs, 8 MSBs, or read only one bit channel by the DI relative
functions.

@ Syntax

Microsoft C/C++ (Windows, Win95 & Win-NT)

int W_8454_DI( UINT *DI_Value )
int W_8454_DI_L( UINT *DI_LValue )
int W_8454_DI_H( UINT *DI_HValue )
int W_8454_DI_bit( int Bit_No )

Visual Basic

Windows 3.11 Version:
W_8454_DI (DI_Value As Integer) As Integer
W_8454_DI_L (DI_LValue As Integer) As Integer
W_8454_DI_H (DI_HValue As Integer) As Integer
W_8454_DI_bit (ByVal Bit_No As Integer) As Integer
Win-95 or Win-NT Version:
W_8454_DI (DI_Value As Long) As Long