14
6 DLL FUNCTIONS
6.1 Overview of the DLL Functions
6.1.1 General Functions
Description
Brief reference
Open device driver
integer UFC_OpenDrv
(void)
Close device driver
integer UFC_CloseDrv
(void)
Generate reset
integer UFC_SetReset
(unsigned char card)
Read out firmware version
integer UFC_GetFirmwareVersion
(unsigned char card,
unsigned char *major,
unsigned char *minor,
unsigned char *version,
unsigned char *revision)
Read out hardware version
integer UFC_GetHardwareVersion
(unsigned char card,
unsigned long *Version)
Read out serial number
(USB ID expansion)
integer UFC_GetSerialNumber
(unsigned char card,
unsigned long *Number)
Read out external
supply voltage
integer UFC_GetVoltExtern
(unsigned char card,
unsigned short *Volt)
Read out encoder
supply voltage
integer UFC_GetVoltEncoder
(unsigned char card,
unsigned short *Volt)
Table 12: General functions
6.1.2 Functions for Counter and Encoder Mode
Description
Brief reference
Write interpolation factor
integer UFC_SetInterpolMode
(unsigned char module,
unsigned char axis,
unsigned char mode)
Read out interpolation factor
integer UFC_GetInterpolMode
(unsigned char card,
unsigned char Axis,
unsigned char *Mode)
Write counting direction
integer UFC_SetDirectionMode
(unsigned char card,
unsigned char Axis,
unsigned char Mode)
Read out counting direction
integer UFC_GetDirectionMode
(unsigned char card,
unsigned char Axis,
unsigned char *Mode)
Initialize encoder switch limit
integer UFC_SetSwitchInit
(unsigned char card,
unsigned char Axis,
unsigned char Init)
Read out encoder limit switch
initialization
integer UFC_GetSwitchInit
(unsigned char card,
unsigned char Axis,
unsigned char *Init)
Table 13: Functions for counter and encoder mode