source: MML/trunk/mml/doc_html/mml/links/tango/tango_setattribute_properties.html @ 4

Last change on this file since 4 was 4, checked in by zhangj, 10 years ago

Initial import--MML version from SOLEIL@2013

File size: 4.9 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2                "http://www.w3.org/TR/REC-html40/loose.dtd">
3<html>
4<head>
5  <title>Description of tango_setattribute_properties</title>
6  <meta name="keywords" content="tango_setattribute_properties">
7  <meta name="description" content="TANGO_SETATTRIBUTE_PROPERTIES - set properties for device">
8  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
9  <meta name="generator" content="m2html &copy; 2003 Guillaume Flandin">
10  <meta name="robots" content="index, follow">
11  <link type="text/css" rel="stylesheet" href="../../../m2html.css">
12</head>
13<body>
14<a name="_top"></a>
15<div><a href="../../../index.html">Home</a> &gt;  <a href="../../index.html">mml</a> &gt; <a href="#">links</a> &gt; <a href="index.html">tango</a> &gt; tango_setattribute_properties.m</div>
16
17<!--<table width="100%"><tr><td align="left"><a href="../../../index.html"><img alt="<" border="0" src="../../../left.png">&nbsp;Master index</a></td>
18<td align="right"><a href="index.html">Index for mml/links/tango&nbsp;<img alt=">" border="0" src="../../../right.png"></a></td></tr></table>-->
19
20<h1>tango_setattribute_properties
21</h1>
22
23<h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../../../up.png"></a></h2>
24<div class="box"><strong>TANGO_SETATTRIBUTE_PROPERTIES - set properties for device</strong></div>
25
26<h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../../../up.png"></a></h2>
27<div class="box"><strong>function tango_setattribute_properties(DeviceList, AttributeList, PropertyList, ValueCell) </strong></div>
28
29<h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../../../up.png"></a></h2>
30<div class="fragment"><pre class="comment">TANGO_SETATTRIBUTE_PROPERTIES - set properties for device
31
32  INPUTS
33  1. DeviceList - Cell of tango device names
34  2. AttributeList - Cell of attribute names
35  3. PropertyList - Cell of property names
36  4. ValueCell - Cell of values
37
38  NOTES
39  1. there is a one to one correspondance between PropertyList and
40  ValueCell</pre></div>
41
42<!-- crossreference -->
43<h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../../../up.png"></a></h2>
44This function calls:
45<ul style="list-style-image:url(../../../matlabicon.gif)">
46</ul>
47This function is called by:
48<ul style="list-style-image:url(../../../matlabicon.gif)">
49</ul>
50<!-- crossreference -->
51
52
53<h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../../../up.png"></a></h2>
54<div class="fragment"><pre>0001 <a name="_sub0" href="#_subfunctions" class="code">function tango_setattribute_properties(DeviceList, AttributeList, PropertyList, ValueCell)</a>
550002 <span class="comment">%TANGO_SETATTRIBUTE_PROPERTIES - set properties for device</span>
560003 <span class="comment">%</span>
570004 <span class="comment">%  INPUTS</span>
580005 <span class="comment">%  1. DeviceList - Cell of tango device names</span>
590006 <span class="comment">%  2. AttributeList - Cell of attribute names</span>
600007 <span class="comment">%  3. PropertyList - Cell of property names</span>
610008 <span class="comment">%  4. ValueCell - Cell of values</span>
620009 <span class="comment">%</span>
630010 <span class="comment">%  NOTES</span>
640011 <span class="comment">%  1. there is a one to one correspondance between PropertyList and</span>
650012 <span class="comment">%  ValueCell</span>
660013 <span class="comment">%</span>
670014
680015 <span class="comment">%</span>
690016 <span class="comment">%% Written by Laurent S. Nadolski</span>
700017
710018 <span class="keyword">for</span> k1 = 1:size(DeviceList,2),
720019     DeviceList{k1}
730020     <span class="keyword">for</span> k2 = 1:size(AttributeList,2),
740021         
750022         <span class="comment">% get actual properties</span>
760023         attr_config = tango_get_attribute_config(DeviceList{k1}, AttributeList{k2});
770024         <span class="keyword">if</span> (tango_error == -1)
780025             <span class="comment">%- handle error</span>
790026             tango_print_error_stack;
800027         <span class="keyword">end</span>
810028
820029         <span class="comment">% set all poperties</span>
830030         <span class="keyword">for</span> k3 = 1:size(PropertyList,2),
840031             attr_config.(PropertyList{k3}) = ValueCell{k3};
850032         <span class="keyword">end</span>
860033         
870034         tango_set_attribute_config(DeviceList{k1},attr_config);
880035         <span class="keyword">if</span> (tango_error == -1)
890036             <span class="comment">%- handle error</span>
900037             tango_print_error_stack;
910038         <span class="keyword">end</span>
920039     <span class="keyword">end</span>
930040 <span class="keyword">end</span></pre></div>
94<hr><address>Generated on Mon 21-May-2007 15:29:18 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/">m2html</a></strong> &copy; 2003</address>
95</body>
96</html>
Note: See TracBrowser for help on using the repository browser.