Hi guys, I am pretty much a newbie to toolkit. I went through the manual and its too much of information going in different directions. I need explicit answer from experienced people.

The is the description of my setup.

Matlab, Agilent Toolkit.

The Agilent Toolkit is connected to E4438C ESG via LAN.

I am trying to generate a rectangular signal with 20 MHz bandwidth modulated at 2.6 GHz carrier.

This is my script:

zeross1=zeros(1,6)

oness=ones(1,32762);

zeross=zeros(1,32768);

combined=[zeross1 oness zeross2];

Ichannel=comb.*cos(2*pi*20e6*t);

save my_data.txt combined -ASCII

The code above generate 6 zeros, 32762 ones and 32768 zeros, additional 6 zeros are for phase matching to avoid nonlinearity.

The total size is 65535 according to the DAC requirement of ESG.

I have attached the file that I recorded in an MXA. It seems like there is only a delta function and some spectral regrowth below the delta function. The frequency I set in ESG was 1 GHz and therefore the peak is correct.

I have no idea where I am going wrong, can someone please help.

Thank you.

The is the description of my setup.

Matlab, Agilent Toolkit.

The Agilent Toolkit is connected to E4438C ESG via LAN.

I am trying to generate a rectangular signal with 20 MHz bandwidth modulated at 2.6 GHz carrier.

This is my script:

zeross1=zeros(1,6)

oness=ones(1,32762);

zeross=zeros(1,32768);

combined=[zeross1 oness zeross2];

Ichannel=comb.*cos(2*pi*20e6*t);

save my_data.txt combined -ASCII

The code above generate 6 zeros, 32762 ones and 32768 zeros, additional 6 zeros are for phase matching to avoid nonlinearity.

The total size is 65535 according to the DAC requirement of ESG.

I have attached the file that I recorded in an MXA. It seems like there is only a delta function and some spectral regrowth below the delta function. The frequency I set in ESG was 1 GHz and therefore the peak is correct.

I have no idea where I am going wrong, can someone please help.

Thank you.