| |
|
| |
 |
| |
Technical Support
Software
ARKfit Programmers Guide
Introduction | interface IAutoFit | ARKfit Exceptions
Introduction
This document describes how to use the ARKfit Component and example application. It is intended as a reference for those who already have an understanding of programming with ARK. If you require an introduction to ARK please see the ARK Tutorial.
For more detail on the ARKfit API, please refer to the ARKfit Reference Guide.
Running FitEx
The first screen that appears when FitEx starts is the audiogram input screen. An audiogram can be entered by either clicking on the audiogram area, or by clicking on one of the buttons in the "Sample Audiograms" area. To continue with the fitting process, click on the "Fitting" tab.
On the fitting screen, the targets generated by the fig6 algorithm appear in the frequency response graph as a series of three thin lines, corresponding to 40 dBSPL, 60 dBSPL, and 80 dBSPL inputs. The heavier lines show the predicted performance of a hearing instrument configured with the default parameter selections. To change the product that will be fit, select a library and product in the drop down list boxes in the upper right hand corner of the window.
To adjust the hearing instrument's parameters to match the targets, click the "AutoFit" button. The fit can then be further fine-tuned by adjusting the thresholds, crossovers, and gains. To transfer the parameter settings to the Interactive Data Sheet application to allow for the full setting of parameters to be adjusted, click "Run IDS", then "Update Params". The IDS can also be used to program the parameters into a hearing instrument.
Developing applications with ARKfit
At present, there are some restrictions on the parameter maps that are compatible with ARKfit.
- Compression ratio must be the calculated parameter.
- The low level gain parameters must have the parameter names LLGAIN1, LLGAIN2, etc.
- The high level gain parameters must have the parameter names HLGAIN1, HLGAIN2, etc.
- The lower threshold parameters must have the parameter names LTH1, LTH2, etc.
- The upper threshold parameters must have the parameter names UTH1, UTH2, etc.
- The wideband gain parameter must have the name WidebandGain.
- For the best results, the default ranges and resolutions should be selected for each parameter.
In FitEx, the ARKfit component is accessed using the m_Fit reference. In Form_Load, m_Fit is initialized with the line:
Set m_Fit = New ARKfit.AutoFit
The set of frequencies at which the targets are specified are then passed to ARKfit as follows:
m_Fit.SetFrequenciesSafe MF
MF is an array of doubles containing frequencies in half octave steps. Other frequency points may also be used.
In the cmbProducts_Click event, which is called when a product is chosen, a reference to the product component is passed to the ARKfit component via the Product property assignment:
m_Fit.Product = m_Prod
In the cmdAutoFit_Click event, targets passed from the previous call are first cleared by executing:
m_Fit.ClearTargets
The new targets are then added via the AddTArgetSafe method as shown below:
m_Fit.AddTargetSafe 40, lowtargets_adj
m_Fit.AddTargetSafe 60, midtargets_adj
m_Fit.AddTargetSafe 80, hightargets_adj
The first argument to AddTargetSafe is the input level for the target in dBSPL. The second argument is an array of doubles containing the target gains in dB, one for each frequency point specified in the call to SetFrequenciesSafe.
Finally, the autofit routine is executed using the call:
m_Fit.AutoFit
The autofit routine adjusts the parameters in the product specified using the Product property so that the product performance matches the targets as closely as possible.
The autofit routine performs the following series of steps:
- The wideband gain is adjusted so that the highest input level target curve is matched as close as possible at 2 kHz.
- The crossovers (for 2 and 4 channel products) are adjusted so that they coincide with the steepest sloping regions in the lowest input level target curve.
- At the frequency in the centre of each channel, as determined by the crossovers, a best fit straight line is plotted between the input/gain points specified by the targets. It is assumed that all of the input levels specified in the targets are in the compression region, that is, between the lower and upper threshold.
- For each channel, the best fit input/gain curve is extrapolated to the lower threshold to determine the low level gain. Similarly, the best fit curve is extrapolated to the upper threshold to determine the high level gain.
It is important to note that the lower threshold and upper threshold are not adjusted by the autofit routine. It is expected that the fitting application will adjust these values to the desired input range before autofitting is performed.
As with other ARK components, the ARKfit component returns exceptions using the standard COM exception handling routines, which are transparently handled by Visual Basic as VB exceptions.
For more information on ARK, please visit the ARK web site at ark.gennum.com.
If you have any questions or comments, please e-mail us at software@gennum.com.
Copyright (c) 2002 Gennum Corporation.
Application Resource Kit, ARKbase, ARKsdk, and ARKonline are trademarks of Gennum Corporation.
|
|
|
|
|
|
|