This paper propose a method to improve the interacting between MATLAB and NI-DAQmx, we built a new Matlab toolkit for data acquisition using the NI-DAQmx drivers. With this toolkit Matlab can support the full functionality of NI-DAQmx and the data acquisition will be more stabile and effective.