Home > mml > links > tango > tango_get_db_property.m

tango_get_db_property

PURPOSE ^

TANGO_GET_DG_PROPERTY - Queries for a Database property

SYNOPSIS ^

function prop=tango_get_db_property(groupname,propertyname,dbserver)

DESCRIPTION ^

TANGO_GET_DG_PROPERTY - Queries for a Database property

  [prop]=tango_get_db_Property(groupname,propertyname,dbserver)

 INPUTS
 1. groupname -  name of the group in the property tree in Tango DB
 2. propertyname - property requested in the groupname 
 3. dbserver - TANGO database device serve  'sys/database/dbds' by default
  
 OUTPUTS
  1. prop cell array of strings with the system property 

 EXEMPLES
  prop = tango_get_db_property('anneau','tracy_bpm_mapping')
  
 See also tango_set_db_property

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function prop=tango_get_db_property(groupname,propertyname,dbserver)
0002 %TANGO_GET_DG_PROPERTY - Queries for a Database property
0003 %
0004 %  [prop]=tango_get_db_Property(groupname,propertyname,dbserver)
0005 %
0006 % INPUTS
0007 % 1. groupname -  name of the group in the property tree in Tango DB
0008 % 2. propertyname - property requested in the groupname
0009 % 3. dbserver - TANGO database device serve  'sys/database/dbds' by default
0010 %
0011 % OUTPUTS
0012 %  1. prop cell array of strings with the system property
0013 %
0014 % EXEMPLES
0015 %  prop = tango_get_db_property('anneau','tracy_bpm_mapping')
0016 %
0017 % See also tango_set_db_property
0018 
0019 %
0020 % Modified By Laurent S. Nadolski
0021 
0022 if (nargin < 2)
0023     help tango_get_db_property
0024     return;
0025 elseif nargin < 3
0026   dbserver = tango_get_dbname;
0027 end
0028 
0029 argin = {groupname,propertyname};
0030 res = tango_command_inout(dbserver,'DbGetProperty',argin);
0031 
0032 if (tango_error == -1)
0033   %- handle error
0034    tango_print_error_stack;
0035    return
0036 end
0037 
0038 %% Overhead 4 lines
0039 dim = 4;
0040 nb = str2num(char(res(dim)));
0041 
0042 %% return cell array of string
0043 prop = res(dim+1:dim+nb);

Generated on Mon 21-May-2007 15:29:18 by m2html © 2003