Forums › VSG Series Discussions › Creating multitone signal using Python › Reply To: Creating multitone signal using Python
Andrew
GSingh,
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.
Andrew
