WasatchPhotonics/Wasatch.NET

want to UpdateGraph at every 'T' integration time (ms) when ScanAverage is more than one

Closed this issue · 2 comments

The UpdateGraph() works well when ScanAverage =1.
If we increase the ScanAverage > 1, the graph updates completely only after (integration time x ScanAverage).
The graph should be shown after every ScanAverage value before its completion , so that user can terminate acquisition whenever required.

mzieg commented

Hi, I understand what you're requesting. However, the graphing capability you're discussing is a feature of the WinFormDemo, a sample application which shows the functioning of the WasatchNET application driver.

Essentially, the purpose of the feature you're describing is to demonstrate that the driver is able to perform internal scan averaging if desired.

The most straightforward way to implement the observable behavior you describe would be to disable scan averaging in the driver (set spectrometer.scanAveraging = 1), instead pulling each individual spectrum from the driver and then manually graphing and averaging them in the application code.

That is of course straightforward to do, but it would not demonstrate the driver's ability to encapsulate and automate scan averaging, which is the point of the demo application. Therefore I do not intend to make the requested change at this time.

Nevertheless, thank you and congratulations on being the first person to actually open an issue against Wasatch.NET (so much so that I missed the notification in my email)! Please continue letting us know if you find problems with the driver and supporting files, and we will do our best to respond in a timely fashion.

Thanks for help and i will consider your suggestion.