LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How was it wrong?CVI with agilent ESG!help

Hi,everybody
I have a question ,when I use CVI to programme with Agilent ESG(E4421B) through GPIB,there always be a error
called "menomic too long"
The code see below:
"
char write_buffer[]="SG_SetFrequency (0, 900)";
device = ibdev (0, 7, NO_SAD, T10s, 1, 0);
ibwrt (device, write_buffer, strlen(write_buffer));
"
Thx!
0 Kudos
Message 1 of 3
(3,112 Views)
Hi Steven,

I am not familiar with that error you are obtaining. Is there a number associated with the error?

You can actually download an instrument driver for this instrument for CVI at our Instrument Driver Network (www.ni.com/idnet). This driver will take care of all the details for you and allow you to easily use the instrument from the CVI environment. You also may be able to take a look at the driver and see why you are getting that error. Here is a link to the download page:

Agilent Technologies E4400B - Instrument Drivers - NI Developer Zone

Hope this helps in your application!

John M
Applications Engineer
0 Kudos
Message 2 of 3
(3,097 Views)
Hi Steven

I am not sure abt the instrument that u are using but itseems like u are mixing SCPI and instrument driver functions. USe either one of them. Either use only the instrument driver (which is the easier way out) or use the mnemonics (it might be sth like ":FREQ:CW 125 MHZ;") based on the programmer reference manual for ur instrument.

That was my 2 cents worth. Hope that helps.

cheers
COM_ROCKS
0 Kudos
Message 3 of 3
(3,091 Views)