GSinghParticipantGSingh October 19, 2021 at 10:19 am
I am working on a project involving generating a multi-tone signal in VSG60A in Python and then measuring the IMDs in SA124B. This is possible using the provided software which generates clean tones, but i am not able to create such tones using python. Request if some code can be provided for generating a multi-tone signal using python.
AndrewModeratorAndrew October 19, 2021 at 11:02 am
You could use PyVISA to control the VSG60 software using SCPI commands. You can read about our SCPI commands and see some examples in the SDK.
If you are using the API directly to control the instrument, you will need to generate your own complex I/Q waveform to output to the device. For a multi-tone signal, you could sum your complex sines/tones into an I/Q buffer to transmit. Just ensure that you scale the final result so that the peak magnitude of any given sample doesn’t exceed 1.0, and ideally, select a final buffer size that allows all of your complex sines to phase wrap nicely.
Unfortunately we don’t have any Python sample code for doing this. There are probably RF/DSP libraries that make it easy to generate complex sine waves with a given frequency.
Let us know if you have follow up questions.
GSinghParticipantGSingh October 20, 2021 at 11:24 pm
Thank you for the reply sir..
You must be logged in to reply to this topic.