|
From: Rui N. C. <rn...@rn...> - 2004-06-08 14:17:13
|
> > When the LSCP server gets a LOAD INSTRUMENT command > it fires up a new thread to handle the loading and immediately returns > the OK (or ERR in case of file not found etc) to the client. > Meanwhile the background loading thread loads the sample and constantly > updates the progress percentage (a private variable, passing external > int *sample_index, etc like proposed in my earlier solution is not > required anymore). > > Now when the GUI issues a INSTRUMENT_STATUS this LSCP command will > call the GetInstrumentStatus() associated to the instrument > which will simply return the value of the progress percentage > (since we use threading all variables are shared thus no additional > message passing etc is required). > Yeah, this is exactly what I've suggested, the only bit is that INSTRUMENT_STATUS would be a response field of the GET CHANNEL INFO command, not a command of it's own. > > everyone happy ? > I'm happy :-) Bye, -- rncbc aka Rui Nuno Capela rn...@rn... |