I'm trying to use AWG in order to create gaussian pulses in a certain frequency, and then sweep the frequency of the pulses, let's say every few seconds.
What happens now is that the pulses remain on the Start frequency that I have set, and do not change.
I believe the problem is in the trigger, although I have tried changing the trigger's source and type, but no luck there.
Can someone please guide me on this? What seems to be the issue?
* The code is leaning on the example codes, but with adjustments that have tried.
When testing with the PicoScope 6, there's no need to even setup a trigger. I simply set a Sweep Mode and the signal is sweeping just like that, yet according to what I understand from the guide, by code a rigger must be set.
I would prefer to start the sweep by command (e.g. "sweep_now"), since there is no specific event that should trigger it for now.
I have also gone over the guide that you sent and tried setting up a software trigger (high gate), and then activate it using:
status = invoke(sigGenGroupObj, 'ps4000SigGenSoftwareControl' , 1);
Or something like that, but it doesn't run. It seems maybe I'm using a wrong handle, but I have tried the same line with ps4000DeviceObj and also triggerGroupObj , but none work, and I get an error (Status code: 48)
If you do not specify a trigger when calling the function to output the signal, the signal generator will start to sweep the frequency of the output.
If you specify a trigger, then the device will output at the start frequency until the trigger event occurs.
Gated triggers apply to the situation where the external trigger input (where available) is used. If you would like to start the sweep using a trigger, then please advise what type of trigger you wish to use (input channel, external trigger or software) and I can specify which parameters you need to set.
The error code 48 when converted to a hexadecimal value indicates PICO_SIGGEN_TRIGGER_SOURCE (refer to the PicoStatus.m file), so there seems to be an issue with the trigger source selected. In the case of using the software trigger you should be able to use something like:
How are you observing the output of the signal generator - are you using another oscilloscope to view the waveform or sending the output to an input channel on the PicoScope?
Hi Jasmine,
I meet the same problem .How do you solve the problem ?I use software trigger to control the generator ,but it's useless. Could you give me the code?
Thanks
YUTIAN