Hi,
It seems that there was a really good conversation that already took place on this question. You can see it at http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RNAME=ViewQuestion&HOID=506500000008000000B3270000&ECategory=Instrument+Connectivity.GPIB
This is cut from that thread, but answers your question:
"Send(0, 2, "CURVE?", 6, NLend);
wich tells to the scope, at address 2, that sends the waveform to the device at address 0, the GPIB. The command has 6 characters and the termination mode, of the command, is the character"\n".
Then I read the waveform from the GPIB with,
Receive(0, 2, *buffer, 2507, STOPend);
wich means that 2507 bytes will be readout from the device at address 2, the scope, and put into the character string buffer, and the d
ata termination mode, STOPend, will be the STOPend character."
Hope this helps,
Aaron K.
Application Engineer
National Instruments