Code covered by the BSD License  

Highlights from
Pico Technology PicoLog Recorder data acquisition (DDE)

Pico Technology PicoLog Recorder data acquisition (DDE)

by

 

20 May 2013 (Updated )

Retrieves data from a running instance of PicoLog Recorder via DDE.

tc08query(tc08Handle)
function response = tc08query(tc08Handle)
% TC08QUERY gets the values from a running instance of PicoLog
% tc08query(tc08Handle) returns the values of items from a running instance
% of PicoLog, given a handle generated by tc08connect.

% e.g. response = tc08query(tc08Connect) opens the PicoLog then returns all
% of the numbers in the PicoLog window

% checks the number of arguments
error(nargchk(1, 1, nargin))

% error handling
if ~isnumeric(tc08Handle) || ~isscalar(tc08Handle) || ~isreal(tc08Handle) || isnan(tc08Handle) || ~tc08Handle
    % errors
    error('Handle must be a real scalar number not equal to 0 obtained from tc08connect')
end

% fetches data
response = ddereq(tc08Handle, 'Value');

Contact us