Constructing the semi-physical real-time simulation system with Matlab/Simulink, the interface cards are used to transmit information with the external equipments. The real-time operating system based on Matlab/xPC Target almost doesn't support the drivers provided by the interface card manufacturers. In order to meet the requirement to construct the semi-physical real-time simulation system with Matlab/Simulink and utilize effectively the newer kind interface cards, it is very significant to develop the interface card drivers based on xPC Target. With the example of PCI-1710 data acquistion card in the paper, the drivers were developed based on xPC Target with S-function. In addition, the performance of the drivers were tested. The results show that the drivers have the characteristics of convenient use, good real-time performance, strong portability etc. This has the certain guiding significance for developing drivers for the various interface cards based on xPC Target.