Code covered by the BSD License  

Highlights from
CO2gui - lab control and automation

CO2gui - lab control and automation



06 Jan 2010 (Updated )

Software used for controlling and data logging lab equipment.

function response = bprobjtestconnect(serialObject)
% BPROBJTESTCONNECT tries to send the connect command to the BPR

% e.g. bprtestconnect(bprobj(5)) returns a response if both connection and
% disconnection were successful

% if either of the commands fail, it will error

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

% sends command to connect
bprobjcomm(serialObject, '#1')

% pause between for robustness

% attempt to disconnect from RC mode
    % send command
    bprobjcomm(serialObject, '#2')
    % display a warning if it didn't like it
    warning('bprDisconnect:rcError', 'Did not properly exit RC mode.')

% if it got this far, both were successful - response is 1 (doesn't matter
% what it is as long as it doesn't error)
response = true;

Contact us