Code for window with PWQ

Post discussions on applications you are writing
Post Reply
phgphd
Newbie
Posts: 0
Joined: Wed Jun 16, 2021 12:33 am

Code for window with PWQ

Post by phgphd »

Provided below is sample code using the picoscope libps2000A.so API for capturing transient waveform pulses with specified upper and lower thresholds and with pulse width qualifier enabled. The transient pulses are expected to be positive going or negative going. The minimum width is set at 20 microseconds. The code has been tested on a 2405A but should be applicable to any other picoscope model. This is not a complete program, but only the lowest level interface to the picoscope. To be a complete program, a higher level would be calling this lowest level to acquire data from the picoscope. The code is written in C++ with much commentary so I can pass on to you what knowledge I have garnered. I was never myself able to get windowing with PWQ working, and so had to have the support of Cedric Carteron of Picoscope support to get working.
The following files are attached:
psParams.h
acqpicoscope.h
acqpicoscope.cpp
Attachments
acqpicoscope.cpp
(23.76 KiB) Downloaded 559 times
acqpicoscope.h
(4.93 KiB) Downloaded 561 times
psParams.h
(1.92 KiB) Downloaded 583 times

Post Reply