CIFER®-MATLAB Interfaces: Development and ... - Cal Poly
CIFER®-MATLAB Interfaces: Development and ... - Cal Poly
CIFER®-MATLAB Interfaces: Development and ... - Cal Poly
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
CIFER ® support utilities:<br />
Three functions are available to facilitate the retrieval of data from the CIFER ® database. The<br />
getfr function, when given a frequency response name, will return arrays for frequency,<br />
magnitude, phase <strong>and</strong> so on. The other function, writefr, allows the user to change values in these<br />
arrays <strong>and</strong> pass them back in to be saved to the CIFER ® database. The third function is called<br />
caselist <strong>and</strong> allows the user to query the database for which cases are stored for a particular<br />
program.<br />
Due to the simplicity of these functions, structures are not used to input data as is done for the<br />
other CIFER ® programs <strong>and</strong> utilities. Thus, these functions do not have the empty call feature that<br />
returns a list of structure field data types. They do still include help documentation which can also<br />
be found in Appendix G.<br />
getfr <strong>and</strong> writefr:<br />
The getfr function is designed to give users access to all the arrays that make up a full frequency<br />
response. The most complete call, shown below, will bring back arrays of all 10 frequency<br />
response fields. The order in which these are returned is fixed; therefore if only coherence were<br />
desired, variables to hold information for frequency, magnitude <strong>and</strong> phase would still be required<br />
as shown in the second function call, which only returns four of the frequency response data<br />
fields.<br />
>> name = 'XVLATSWP_COM_ABCDE_AIL_P';<br />
>> [frq,mag,pha,coh,gxx,gyy,gxy,rel,img,err] = getfr(name);<br />
>> [frq,mag,pha,coh] = getfr(name);<br />
Frequency responses can also be written back into the CIFER ® database through the writefr<br />
function. The example below shows the creation of a new frequency response with all 10 data<br />
arrays. Again, the order is fixed <strong>and</strong>, as above in the getfr example, not all the inputs need be<br />
provided. If all inputs are not provided the user should keep in mind that CIFER ® will not have<br />
access to any unspecified information in the event it must make calculations with the new<br />
responses. The response names do not have to conform to CIFER ® naming conventions, though<br />
doing so will help track new responses.<br />
>> name = 'NEW_FREQUENCY_RESPONSE';<br />
>> writefr(name, frq, mag, pha, coh, gxx, gyy, gxy, rel, img, err);<br />
81