I have a 2205 device. I want to capture a signal from one of the channels, "modify" it and then "play it back" using the AWG feature. In the PicoScope 6 documentation, I read the following: ".... you can even capture a waveform using your oscilloscope, modify it (if needed) using the AWG editor, and then play it back using the AWG."
How to achieve this using my own program? I need the help on the following specific points:
1. The sample value provided by the driver is a 16 bits signed number whereas the ps2000_set_sig_gen_arbitrary requires a buffer of "unsigned char". How to normalize a 16 bit signed value to "unsigned char". I used (127+(signed_16_bit_value/256)) to do this. Is it the correct way?
2. I use arbitraryWaveformSize as 4096. As I understand, the device will start outputting the voltage value based on the current value in the buffer (with pkToPk as its range). What is not clear to me is the interval at which these values are produced. Does the parameter dwellCount determines this? If yes then how?
3. If I dont want to have any delta phase and sweep (I just want to play the waveform as defined by the values in the buffer), then what should be the values of startDeltaPhase, stopDeltaPhase, deltaPhaseIncrement, sweepType, and sweeps. I read the programmer's guide but the description there was not clear to me.
If there is some code example already for the same then that would help greatly (the code in PS2000con.c is not of much help to me in this case).
Thanks in advance.