Mercurial > hg > ltpda
view m-toolbox/m/gui/ltpdv/callbacks/ltpdv_server_channellist.m @ 52:daf4eab1a51e database-connection-manager tip
Fix. Default password should be [] not an empty string
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 07 Dec 2011 17:29:47 +0100 |
parents | f0afece42f48 |
children |
line wrap: on
line source
function ltpdv_server_channellist(varargin) % Handles myh = varargin{1}; mainfig = varargin{end}; % Get selected channels idx = get(myh, 'Value'); if length(idx) == 1 % get channel strs = cellstr(get(myh, 'String')); channel = strs{idx}; % Get one second of data start = ltpdv_server_get_start_time(mainfig); stop = ltpdv_server_get_stop_time(mainfig); % Get server details [dtype, server, port, rds, cal, stat] = ltpdv_server_get_server(mainfig); switch dtype case 'frame data' pltype = 'FRAMES'; case 'h(t) frames' pltype = 'HFRAMES'; case 'raw data' pltype = 'RAW'; case 'hour trends' pltype = 'HOUR'; case 'day trends' pltype = 'DAY'; case 'chour trends' pltype = 'CHOUR'; case 'cday trends' pltype = 'CDAY'; end if start < 0 % get latest [start, chans] = ltpdv_server_get_latest_chans(mainfig); end % get AO a = geo2ao(plist('Type', pltype, 'SERVER', server, 'port', port, 'channels', channel, ... 'starttime', start, 'nsecs', 1, 'STAT', stat)); else end