If you have the knowledge that you say you do then it should be quite easy as long as you know the GPIB commands.Here is a little VI that I wrote to do this on an HP analyzer maybe it will give you some insight as to what you need.
Joe.
"NOTHING IS EVER EASY"