Hello Chen, Please refer to the below doc page.
You will require Instrument Control Toolbox for this. Please elaborate your issue, so that we may help you further.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!