generating a staircase signal script with AWG

Forum for discussing PicoScope version 6 (non-automotive version)
Post Reply
yves_mazzon
Newbie
Posts: 0
Joined: Tue Oct 15, 2019 2:26 pm

generating a staircase signal script with AWG

Post by yves_mazzon » Tue Oct 15, 2019 2:50 pm

Hello all,
I have the Picoscope 2206B unit. I like to generate a slow staircase signal for example 20mV increments with a stair of about 0.20 seconds. I'm new in this I like a bit of push start. how will I write on excel let say 20mV, 0.2 seconds then 40mV, 0.2 seconds, then 60mV,0.2 seconds, and so on for 10 steps. If someone could just tell me how it is done. Many thanks.

Regards,
Yves

Gerry
PICO STAFF
PICO STAFF
Posts: 506
Joined: Mon Aug 11, 2014 11:14 am

Re: generating a staircase signal script with AWG

Post by Gerry » Wed Oct 30, 2019 4:42 pm

Hi yves_mazzon,

Before I discuss how to get the values you mentioned, you should make sure that you have enabled the Properties Pane in PicoScope 6 (which allows you to see, at a glance, all of the currently set values for the most important properties regarding how the scope is set up to capture data). You enable the Properties Pane by going to 'Views->Properties' and selecting 'View Properties'.

Because you want just 10 steps of 20mV, for a rising staircase waveform from left to right (that I'm going to assume that you want to repeat) all you need to do is divide the 32k sample AWG waveform buffer of the PicoScope 3206B by 10, giving you 3.2k samples per step. When creating a waveform in excel for use in the Arbitrary Waveform Generator, all you need for the AWG import is a set values scaled between 0 and 1 to define the waveform. So, for 10 steps you will need 11 values giving you a step size of 1 / 11 = 0.091, i.e in Excel you would create a column of data that would be incrementing from 0 by 0.091 every 3.2k samples. As you would have 3.2k samples per step, for a step duration of 200ms you would need to set the Timebase and 'Number of Samples' (the value in the text box just to the right of the Timebase drop down list) so that you have a sample interval of 200/3,200 = 62.5us (which you can do using a Timebase of 5s/div, and 'Number of Samples' value of 800kS).

Regards,

Gerry
Gerry
Technical Specialist

yves_mazzon
Newbie
Posts: 0
Joined: Tue Oct 15, 2019 2:26 pm

Re: generating a staircase signal script with AWG

Post by yves_mazzon » Fri Nov 01, 2019 2:09 pm

Hello Jerry,
I will try these. Is there any existing excel example even with other functions than what I try to achieve on the forum or other places so I can grasp the idea? Many thanks for your time.

Regards,

Yves

Post Reply