Other Parts Discussed in Thread: DLPC150
I am writing an application that simple needs to read the spectrum after a scan. Configuration and setup would be done using the standard GUI.
Does the InterpretScan provide this functionality?
It appears that based upon MainWindow::InterpretScanData, that this can be done by the following sequence of "commands" (leaving out details relate to device status, error checking... and all other required programming)
1 .NNO_InterpretScan() which will initiate a scan
(assume don't need NNO_PerformScan() and NNO_InterpretScan() actually enables the DLPC150 and light sources)
2 . NNO_GetFileSizeToRead(NNO_FILE_INTERPRET_DATA)
3. NNO_GetFile() which grabs the serialized data as an array of char
4. which is interpreted by Spectrum::SetInterpretData () by sequentially reading the wavelength and intensity value from the serialized data.(double read, inc sizeof (double), int read, inc sizeof(int)
So it appears the spectrum data from a scan can be read as "interpret data"without using dlpspec_scan_interpret() from the Spectrum Library to deserialize and entire scanResults structure??
Is there a way to just grab the spectrum ("interpreted data") for the reference as well? (for example using the NNO_FILE_REF_CAL_DATA file type)?
Jim Stafford
Doggonics