Download CIFER - MATLAB Interfaces: Development and Application

Transcript
The variables that support screen 8 are analogous to the fields in that FRESPID screen. The
general convention is that if a window length is specified as zero, then automatic calculations on
it will not be performed. However, if any of the other related variables, such as numbers of input
and output points, are set to zero while a window is turned on, they will be automatically
calculated using the same logic that CIFER® employs. If only window lengths are specified and
all other related fields set to zero, then the function will generate the same values that CIFER®
would if the screen were stepped through manually. Thus the following call would achieve the
same result as entering the window lengths in CIFER® screen 8 and pressing the PF1 key until
CIFER® finished filling in the fields.
>> in = frespid('NOWINS',1);
>> frespid(in, 2, 'name', 'NEWWINS', 'winlen', [45,40,30,20,15])
The example retrieves a theoretical template case that has no window data entered and copies it to
a case that now has fully specified window data. Users can specify their own values to fields such
as maximum frequency and the automatic calculations will not occur unless the specified values
violate the rules governing the variables. For instance, if the numbers of input and output points
do not add to a power of two, the function will adjust them and issue a warning. Care should be
used when using one case as a template for another and modifying the window lengths to make
sure that old values are not written into the new case.
misosa and composite:
The CIFER® programs MISOSA and COMPOSITE are less complicated than FRESPID.
Accordingly, the corresponding MATLAB functions have far fewer field entries and automatic
corrections. The main issue to be alert for is in specifying the input case name. The warning is
much the same as for the output case name previously stated. If the field is empty, it will be filled
in to match the case name. Otherwise it retains the old entry. Thus to fully change names from
one case to another, all three variables ‘casename,’ ‘caseout,’ and ‘casein’ must be modified.
73