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.
structure by calling the functions with no inputs <strong>and</strong> a single output. This template contains all the<br />
correct fields with arrays specified to the correct size <strong>and</strong> many fields set to a default value. For<br />
instance, the option in FRESPID to cross-correlate controls is set to ‘yes.’ Fields that require<br />
case-specific information, such as the case name, are not given default values. These functions<br />
make extensive use of cell arrays to store string information <strong>and</strong> users unfamiliar with cell arrays<br />
should review the topic.<br />
The following examples detail the basics of using the functions: opening, saving, <strong>and</strong> running<br />
cases. Details specific to individual functions will be covered in following sections. In addition to<br />
the short examples presented inline with the text, detailed examples of setting up <strong>and</strong> running a<br />
simple second order mass-spring-Damper system <strong>and</strong> the XVLATSWP case from the XV-15<br />
sample database “703” are presented in Appendices H <strong>and</strong> I, respectively. (This database should<br />
be provided with the installation of CIFER ® .)<br />
It is very important to keep in mind that the <strong>MATLAB</strong> calls can only save frequency responses<br />
into the CIFER ® database at this time. Due to complications with suppressing prompts from<br />
CIFER ® for information, the option to save frequency responses as files has not been<br />
implemented in the <strong>MATLAB</strong> comm<strong>and</strong> line.<br />
Creating a template structure:<br />
The call to create a template structure is very simple as shown below. After the calls, each of the<br />
‘out_x’ variables contains the basic skeleton used to create CIFER ® cases. This feature is useful<br />
to ensure that the field names <strong>and</strong> data types are correctly specified <strong>and</strong> the various arrays are the<br />
correct length. The fields are all initialized to the same defaults as found in a new case of the<br />
appropriate CIFER program with the exception of plotting which defaults off for all three.<br />
>> out_f = frespid;<br />
>> out_m = misosa;<br />
>> out_c = composite;<br />
Opening Cases (1 as second input):<br />
Retrieving case information from the CIFER ® database is accomplished by calling the <strong>MATLAB</strong><br />
functions with the case name specified as the first input <strong>and</strong> ‘1’ for the second input as shown<br />
below. All of these calls would write the information from the CIFER ® case XVLATSWP to the<br />
appropriate <strong>MATLAB</strong> structure ‘out_x’. ‘out_x’ can then be viewed <strong>and</strong> modified as needed.<br />
70