PicoScope 7 Software
Available on Windows, Mac and Linux
PicoScope 7 Software
Available on Windows, Mac and Linux
OEM & custom applications
PicoScope, Pico data logger and RF products can be used as components in custom applications and OEM projects.
A to Z of PC oscilloscopes
Everything you need to know about PC oscilloscopes from Advanced Triggers to Zooming.
A to Z of Data Loggers
Everything you need to know about PC-based data loggers from Alarms to Zooming.
Application Notes
Details of some of the many applications for Pico data logger and oscilloscope products.
How do I measure...?
Find out how you can measure using Pico products
Videos
Showing you how to get the most out of PicoScope oscilloscope software.
Documentation
Up-to-date versions of the documentation supplied with your products in PDF format.
Educational Experiments
Our library of science experiments suitable for use with oscilloscope and data logging products.
PicoApps
Want to share hints, tips and code with other developers? Show your Pico-based products to the world.
Newsletter
Archive of our monthly Test and Measurement Newsletters.
Post by hugiandreas »
Code: Select all
function correct_trigger_jitter(obj)
%Could not generate enPS4000TimeUnits pointer to an arry in
%MATLAB, result Buffer Overflows
segment_low = cast(0,'uint16');
segment_up = cast(obj.Settings.NSegments-1,'uint16');
pointer = libpointer('int64Ptr',zeros(obj.Settings.NSegments,1));
ptr_timeUnits = libpointer('enPS4000TimeUnits',0);
[status,a,b]=calllib('PS4000','ps4000GetValuesTriggerTimeOffsetBulk64',obj.unitHandle,pointer,ptr_timeUnits,segment_low,segment_up)
end
Code: Select all
>> ptr_timeUnits = libpointer('enPS4000TimeUnits',zeros(2,1))
Parameter must be scalar.
Error in libpointer (line 18)
ptr=lib.pointer(varargin{:});
Has that been done in the function definition?Guidelines for Passing Arguments
Nonscalar arguments must be declared as passed by reference in the library functions.
Post by Hitesh »
[The extension m has been deactivated and can no longer be displayed.]
Code: Select all
loadlibrary 'PS4000.dll' 'PS4000MFile'