Code covered by the BSD License  

Highlights from
Pico Technology TC-08 USB data acquisition

Pico Technology TC-08 USB data acquisition

by

 

20 May 2013 (Updated )

Files to connect, query, and disconnect from the Pico Technology USB TC-08, using DLL's.

usbtc08mininterval(handle)
function minInterval = usbtc08mininterval(handle)
% USBTC08MININTERVAL obtains the minimum sampling interval for USB TC-08
% minInterval = usbtc08mininterval(handle) returns the minimum possible
% sampling interval for USB TC-08 data recorders, in ms.  This will fail if
% a connection to the unit is not already open.

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


% checks validity of handle
if ~isvalidtc08handle(handle)
    
    % complains
    error('handle must be valid for use with USB TC-08 DLLs.')
    
% checks we can run this
elseif ~libisloaded('usbtc08')
    
    % complain
    error('TC-08 library is not loaded.')
end

% try to fetch
try
    
    % tries
    minInterval = calllib('usbtc08', 'usb_tc08_get_minimum_interval_ms', handle);

catch
    
    % it failed...
    error('Unable to retrieve minimum interval time.')
end

Contact us