QuantAsylum QA401 User
’s
Manual
Page
63
Appendix 2: Visualizers
Content in this section is taken from
http://www.quantasylum.com/content/Home/tabid/40/EntryId/34/Visualizers-and-Examining-the-
Residual.aspx
Please refer to that post on line for more detail.
Background
Visualizers are plug-ins you can write that permit the author access to the acquired data for additional
processing. These plugs ins reside in a directory off the main installed directory called “Visualizers”.
When you add a visualizer DLL to that directory, the Visualizer will shows up in the Visualizer menu
menu list as shown below.
There is a DotNet interface embedded in the QA 401 executable that appears as below:
namespace
QA400NS
{
public
interface
IVisualizer
{
string
GetMenuName();
void
Start(
Form
parent);
bool
ShowData(
VisSettings
settings,
double
[] dataOutL,
double
[] dataInL,
double
[]
dataOutR,
double
[] dataInR);
}
public
class
VisSettings
{
public
double
SampleFreq;
public
double
Gen1Freq;
}
}
The visualizer writer must implement three functions:
GetMenuName()
is the name of the interface that appears on the visualizer menu drop down.
Start()
is called when the interface is first loaded. This allows the visualizer to do whatever it needs to
get setup. Usually, this will include creating a dialog box and positioning it as needed.