Hi,
A quick search of www.ni.com/idnet turns up a few drivers for that AWG. You might consider looking into those as an alternative to coding it yourself. If you are looking to code it yourself, you will need to take a look at the manual for your instrument and determine the correct commands to send. When the data is received you will then need to parse it into an array.
Hope this helps out!
Best Regards,
Aaron K.
Application Engineer
National Instruments