function import_measured_plate_spectra(stack_index, layer_index : integer; t, rt, rb : string;file_format, option_t,option_rt,option_rb : integer) : integer

 

Navigation:  User guide > OLE automation > Methods >

function import_measured_plate_spectra(stack_index, layer_index : integer; t, rt, rb : string;file_format, option_t,option_rt,option_rb : integer) : integer

 

Previous pageReturn to chapter overviewNext page

This function is used to load measured spectra into a layer of type 'Measured plate'. The layer is specified by the index of the stack in which it exists (counting 1, 2, 3, ...) and the layer index (also counted like 1, 2, 3, ...).

The strings t, rt and rb are used to pass the filenames for the transmittance, top side reflectance and bottom side reflectance.

File_format sets the format of the file.

The integers option_t, option_rt and option_rb define file import options that are used if you are reading from a file containing several spectra. option_t=7 means that the transmittance spectra is the seventh spectrum in the file, for example.

 

The return value is 0 if the spectra have been successfully loaded. Otherwise a value larger than 0 is returned.

 

VisualBasic call:

 

dim r as integer

r = wcd.import_measured_plate_spectra(1,2,"c:\temp\t.spc","c:\temp\r_top.spc", "c:\temp\r_bottom.spc", 4, 1, 1, 1)

if r<>0 then

  msgbox "Error importing measured plate spectra!"

endif