INFO:
The quick control interface makes it easy to work with function generators and oscilloscopes in MATLAB, without having to dig into communication protocols. This example demonstrates the syntax for communicating with function generators.
Simplified Programming of Function Generators Using the Quick Control Interface - MATLAB