beautypg.com

Add new external library – Ocean Optics SpectraSuite User Manual

Page 118

background image

8: Tools Menu Functions

106

000-20000-300-02- 201110

int

numberOfPixels) {

// handling code here

}

}

Examples of C functions that can be invoked are as follows:

// A function that takes an integer as an argument

void

run(

int

argument) {

// handling code here

}

// A function that takes a spectrum as an argument
// Note here that the parameters must be pointers to arrays of

// the appropriate type – e.g. (double *) instead of (double[])

void

run(

double

* wavelengths,

double

* pixels,

int

numberOfPixels) {

// handling code here

}

Add New External Library

Use this function to add an external library of your choice.

Procedure

1. Select Tools | Custom Libraries | Add New External Library from the menu.

3. Browse to the desired library.