We are using Picoscope 3406D MSO variant. Using the sample code provided with SDK, we are happy that picoscope measures the waveform values at high accuracy.
We would also like to use the build-in signal generator to generate PWM signal with different frequency & dutycycle values configured at runtime.
Kindly help us by providing some information how to generate PWM signal with different frequency & dutycycle.
Thanks in advance.
The PicoScope 3406D MSO had a 32768 sample buffer that can be used to specify arbitrary waveforms which are then passed to the ps3000aSetSigGenArbitrary() function.
In your program you can specify the waveform adjusting the duty cycle as required. The ps3000aSigGenFrequencyToPhase() function can be used to convert the frequency to a phase value to be passed to the ps3000aSetSigGenArbitrary() function.
Please refer to the Programmer's Guide for further information on these functions.
Yes, in Programmer’s Guide there are API methods for configuring Signal generator. Such as ps3000aSetSigGenArbitrary, ps3000aSetSigGenBuiltIn, ps3000aSetSigGenPropertiesArbitrary, ps3000aSetSigGenPropertiesBuiltIn, ps3000aSigGenFrequencyToPhase etc.
But in SDK’s C# sample code, there is no single method available to deal with Signal generator. Also no method is declared in PS3000Imports.cs file. So I don’t have any idea of how to implement those in C# .Net platform.
Please share some code snippets through which I can configure and make use of signal generator. For Example, Code to make the signal generator to generate one Standard wave (Sine wave, DC voltage etc) and one Arbitrary Wave. It would be very much helpful for me to proceed.