Rank: 45636 based on 0 downloads (last 30 days) and 0 file submitted

Nikola Stanchev

49.260635, -123.22403

Personal Profile:


Watch this Author's files


Comments and Ratings by Nikola Stanchev View all
Updated File Comments Rating
20 Jan 2010 Generating Waveforms on Agilent MXG, ESG, PSG Signal Sources using MATLAB MATLAB® example to download arbitrary waveform data on Agilent MXG, ESG, or PSG signal sources. Author: Vinod Cherian


Thank you for this script. It is very useful except a bug that should be corrected.
I have formatted/scaled waveform by using this script. I was successful to download it to Agilent Signal generator PSG E8267D.

Unfortunately, the PSG output signal (with ARB waveform modulation) was not as suppose to be. I expected to see burst spread spectrum signal but I've got flat signal with a few dB variations.

After a few hours investigation of the problem I found that the cause is the use of Two's complement formatting in the Matlab code.

wave = uint16(mod(modval + wave, modval));

I've got the correct PSG's output signal without 2's complement formatting.

If you go to the Agilent PSG programming guide (E8251-90255) you can see the following sentence "...Data must be in signed, 2’s complement (binary) format..." (very interesting combination, isn't it?)
There is no use of 2's complement formatting in the attached examples script in C/C++.

Best regards,

21 May 2009 peaks Find the peaks and troughs in a vector. Author: Nagi Hatoum

Excellent! The code is very helpful. Simple and genius.

Contact us