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:
Post discussions on applications you are writing
1 post • Page 1 of 1