/******************************************************************************/
/*								System Version								  */
/******************************************************************************/
/*			Naming rule:  totally 6 digits									  */
/*          =>  yy.mm.dd                                                      */
/******************************************************************************/
#define Software_Dll_Version   11108  // Y=1 means 2007 (YMMDD), Y=2 means 2008, Y=3 means 2006

//==========> 請記得一併更改 resources(rc) 的版本 <===================


// Version 3.00
// Add new function : W_HSL_Read_DIO_Out,W_HSL_Read_DIO_Channel_Out,W_HSL_Set_In_Out_Logic
// Modified functions which are designed to out/in data with the flag judgement.

// Version 4.00
// 1. These dll source codes could be run under Win 98/NT/2K/XP
// 2. AI16AO2 functions are added in the dll.
// 3. STI function is added in this source code, but the function could not be released to end users.
// 4. The head file has been examined. Redundant function calls are deleted. 

// Version 4.01
// 1. Modify the AI16AO2 command - Bit 15 of write-command is used. 

// Version 4.02
// 1. Add the AI16AO2 AO Gain Calibration function.
// 2. Modify the load config and save config function. AI16AO2 can save and load data
//    from EEPROM.
// 3. AO_Channel_Out function is limited to DA ch 1 and 2.
// 4. Trim_DAC function is internal use only.
// 5. AO gain calibration error could be reached under 3/1000 mv.

// Version 4.03
// 1. Add the AI16AO2-AV module.
// 2. The error of VV type module is less than 7mV.
// 3. The error of AV type module is less than 1.5%

// Version 4.04
// 1. Correctify the AI16AO2 start-reading and stop-reading function. The old algorithm 
//    will result in the error reading when the slave add is more than 1. The root cause
//    is the control loop used by AI16 and AI16AO2. 

// Version 5.00
// 1. Add HSL-4XMO Functions

// Version 5.01
// 1. Add HSL-4XMO Linux DLL

// Version 5.02
// 1. Define New HSL API functions

// Version 5.03
// 1. Add PCI-7853/54
// 2. Remove AI16_M_T related functions (PID...)

// Version 5.04
// 1. Correct W_HSL_Read_DIO_Out for OPC Server

// Version 5.05
// 1. Support PCI-7853/4 A2

// Version 5.06
// 1. Support HHT For Modes

// Version 5.07
// 1. Export set_scan_condition()

// Version 5.08
// 1. Add three function
//   I16 FNTYPE HSL_D_write_slave_output(I16 card_ID, I16 connect_index, I16 slave_No, U16 out_data);
//   I16 FNTYPE HSL_D_read_slave_output(U16 card_ID, U16 connect_index, I16 slave_No, U16 *data_out);
//   I16 FNTYPE HSL_D_read_slave_input(U16 card_ID, U16 connect_index, I16 slave_No, U16 *data_in);

// Version 5.09
// Add error code for set_scan_condition() : ERR_Slave_Not_Stop

// Version 5.10
// Add thread check routine to monitor the communication error of HSL-AI16AO2.
// Once the HSL-AI16AO2 error happens, it will check the communication.
// It will recover the reading value until the communication error is released.

// Version 5.11
// Modify the HSL_D_read_output 

// Version 5.12
// Fix PMC7852 Initial Problem

// Version 5.13
// Fix PCI7853/54 default scan rate 6M

// Version 5.14
// HSL-AI16AO2 - vv/av   Power Off->on  module will continue read (By Weitso 2005/10)

// Version 5.15
// Fix W_HSL_DIO_Memory_In Problem  (By Simon 2005/1027)

// Version 5.16 (by Weitso 2005/11/08)
// Fix HSL_set_scan_condition() (added relay control when switch duplex modes)

// Version 5.17 (by Weitso 2005/11/11)
// modify HSL_motion_done() (added 4 return messages about stop...)

// Version 5.18 (by weitso 2005/11/18)
// added DALU hotswap continue read AI...

// Version 5.19(by weitso 2005/11/21)
// added HSL_M_get_abnormal_stop_status() function

// Version 5.20(by weitso 2005/11/22)
// modify HSL_motion_done() (took off 4 return messages about stop...)

// Version 5.21(by weitso 2005/11/25)
// Fix Slave type Detect problem(especially for 4xmo's last ID )

// Version 5.22(by weitso 2005/11/28)
// Fix slave type Ddtect problem

// Version 5.23(by weitso 2005/12/22)
// modify _start() , auto_start() function

// Version 5.24(by weitso 2005/12/23)
// fix _start() function  when ID over 63...

// Version 5.25.00 (by weitso 2006/02/20)
//fix HSL_M_set_**_move_all()...

// Version 5.26.00 (by weitso 2006/03/01)
//fix the problem that get module type failed especially for DI32 /DO32
//modify the function "W_HSL_Start()"

// version 5.30.00 (by weitso 2006/03/28)
//fix the problems that functions will freeze when in a bad communication env
//upgrade rw_command(), In addition, fix the DSP kernel of 4xmo at the same time.

// version 5.31.00 (by weitso 2006/03/29)
// fix this function "W_HSL_TMRINT_Enable()" for win2k/xp 