LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Syntax to use "CURVE" command to send waveform from PC to scope (TDS3034). I use GPIB and LabWindow CVI

Could anyone please help me what is the syntax to use "CURVE" command to send waveform from PC to the oscilloscope (TDS3034). I use GPIB and Labwindow CVI
0 Kudos
Message 1 of 2
(2,925 Views)
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
0 Kudos
Message 2 of 2
(2,925 Views)