Home galaxy
galaxy
galaxy galaxy galaxy
spacer
spacer
Arrow
spacer
Arrow
spacer
Adv Correlation.csl
spacer
This script generates the correlation XY-Scatter report in the Advanced report section. When executed, you are prompted to enter a file to process, and the two tests (meaning both tests to correlate come from the same file). The script uses the function gexReportType('advanced') to display the advanced report page directly, instead of the standard home page. This saves you one mouse click!

Important note: this script doesn't overwrite your options and assumes your report type output is set to HTML. If you want the script to have full control of the options, merge it with the options.csl script.

The source code follows:

//////////////////////////////////////////
// Welcome to Galaxy Examinator Script
// Find more on www.galaxysemi.com
// File: adv_correlation.csl
//////////////////////////////////////////

// Function to setup the XY-Scatter Correlation report section
SetScatterReport()
{
sysLog('*** This script creates a Scatter/Correlation plot! ***');

// Select file name to process
var vFile = sysPrompt('Select the STDF file to process...');

// Edit test# to plot in X
var vXaxis = sysPrompt('Test# to plot in X:');

// Edit test# to plot in Y
var vYaxis = sysPrompt('Test# to plot in Y:');

// Compute the list of the two tests
var vTests = vXaxis + ' ' + vYaxis;

// Creates a group to hold the file to process!
var group_id = gexGroup('insert','Group1');

// Add selected file into that group.
gexFile(group_id,'insert',vFile,'all','all');

// Set options to all defaults
gexOptions('reset','all','default');

// Set Histogram report section: all tests
gexReportType('adv_correlation','test_over_range',vTests);

// Get report created+show report at XY-Scatter page !
gexBuildReport('advanced');
}

// Script entry point
main()
{
// Call function to setup the XY-Scatter report
SetScatterReport();
}

 
spacer