I´m not acquainted with xlread(). I've seen that there is a function xls_read() though. In any case, one (advanced!) possibility would be to get the source code of the function, try to insert waitbar() in an appropriate place and use genlib to compile it back into a library. I'm not quite certain whether this would work or not, but I can't imagine another approach since I think Scilab is not capable of multitasking except when triggering an external process such as in playsnd(), which can play a sound file as a background process and go on performing subsequent commands. If the waitbar could be launched as an external process you'd be done as far as you can kill it at the end.
Regards, Federico Miyara On 10/10/2023 20:13, Greg James wrote: The problem is that waitbar is designed to be called with in the computation loop. My issue is that I am calling a library function xlread that is very slow as it needs to load a large data set and I need to inform the user that something is happening. Cheers Greg From: users <users-boun...@lists.scilab.org><mailto:users-boun...@lists.scilab.org> on behalf of Federico Miyara <fmiy...@fceia.unr.edu.ar><mailto:fmiy...@fceia.unr.edu.ar> Date: Wednesday, 11 October 2023 at 8:12 am To: users@lists.scilab.org<mailto:users@lists.scilab.org> <users@lists.scilab.org><mailto:users@lists.scilab.org> Subject: Re: [Scilab-users] Periodic Timer I've just come across the function waitbar(); I think it could help. See https://help.scilab.org/docs/2023.1.0/fr_FR/waitbar.html You also have a variation, progression(). See https://help.scilab.org/docs/2023.1.0/fr_FR/progressionbar.html Regards, Federico Miyara On 10/10/2023 13:07, Steer Serge wrote: May be the realtime function may work as you expect. but I fear that the xlread function blocks the execution of realtime Serge Le 10/10/2023 à 01:31, Greg James a écrit : Hi Is there a periodic timer like the Matlab timer function ? The parallel run function does not seem to exist in the 2023.1.0 release , as I thought I may be able to use that instead. I am reading a large excel spreadsheet and it would be good to implement a progress bar . So, a periodic timer that runs in the background could be used to check a flag finish flag . If the finish flag is false increment the progress and fire the timer off again. Kind Regards Greg This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged. If you are not one of the named recipients or have received this email in error, (i) you should not read, disclose, or copy it, (ii) please notify sender of your receipt by reply email and delete this email and all attachments, (iii) Dassault Systèmes does not accept or assume any liability or responsibility for any use of or reliance on this email. Please be informed that your personal data are processed according to our data privacy policy as described on our website. Should you have any questions related to personal data protection, please contact 3DS Data Protection Officer https://www.3ds.com/privacy-policy/contact/ _______________________________________________ users mailing list - users@lists.scilab.org<mailto:users@lists.scilab.org> Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org><mailto:users-unsubscr...@lists.scilab.org> https://lists.scilab.org/mailman/listinfo/users This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged. If you are not one of the named recipients or have received this email in error, (i) you should not read, disclose, or copy it, (ii) please notify sender of your receipt by reply email and delete this email and all attachments, (iii) Dassault Systèmes does not accept or assume any liability or responsibility for any use of or reliance on this email. Please be informed that your personal data are processed according to our data privacy policy as described on our website. Should you have any questions related to personal data protection, please contact 3DS Data Protection Officer https://www.3ds.com/privacy-policy/contact/ _______________________________________________ users mailing list - users@lists.scilab.org<mailto:users@lists.scilab.org> Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org><mailto:users-unsubscr...@lists.scilab.org> https://lists.scilab.org/mailman/listinfo/users [Image removed by sender.]<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> Libre de virus.www.avast.com<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient> This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged. If you are not one of the named recipients or have received this email in error, (i) you should not read, disclose, or copy it, (ii) please notify sender of your receipt by reply email and delete this email and all attachments, (iii) Dassault Systèmes does not accept or assume any liability or responsibility for any use of or reliance on this email. Please be informed that your personal data are processed according to our data privacy policy as described on our website. Should you have any questions related to personal data protection, please contact 3DS Data Protection Officer https://www.3ds.com/privacy-policy/contact/ This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged. If you are not one of the named recipients or have received this email in error, (i) you should not read, disclose, or copy it, (ii) please notify sender of your receipt by reply email and delete this email and all attachments, (iii) Dassault Systèmes does not accept or assume any liability or responsibility for any use of or reliance on this email. Please be informed that your personal data are processed according to our data privacy policy as described on our website. Should you have any questions related to personal data protection, please contact 3DS Data Protection Officer https://www.3ds.com/privacy-policy/contact/ _______________________________________________ users mailing list - users@lists.scilab.org<mailto:users@lists.scilab.org> Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org><mailto:users-unsubscr...@lists.scilab.org> https://lists.scilab.org/mailman/listinfo/users This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged. If you are not one of the named recipients or have received this email in error, (i) you should not read, disclose, or copy it, (ii) please notify sender of your receipt by reply email and delete this email and all attachments, (iii) Dassault Systèmes does not accept or assume any liability or responsibility for any use of or reliance on this email. Please be informed that your personal data are processed according to our data privacy policy as described on our website. Should you have any questions related to personal data protection, please contact 3DS Data Protection Officer https://www.3ds.com/privacy-policy/contact/
_______________________________________________ users mailing list - users@lists.scilab.org Click here to unsubscribe: <mailto:users-unsubscr...@lists.scilab.org> https://lists.scilab.org/mailman/listinfo/users