How can I keep a function operating while the screen is locked?
    95 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Marta
 el 12 de En. de 2017
  
    
    
    
    
    Respondida: Azhar
 el 10 de Jul. de 2024
            using MATLAB 2014A on macOS 10.11.6, I am running a function from the command line, and when I lock the screen the function suspends activity until I unlock it again.
1 comentario
  John Chilleri
      
 el 12 de En. de 2017
				Not sure if this is possible; however, if your goal is to have the function run even when your computer naturally goes to sleep/lock screen, then you can always adjust your computer settings to never sleep.
Respuesta aceptada
  Walter Roberson
      
      
 el 13 de En. de 2017
        In OS-X System Preferences, Energy Saver, Power Adapter, increase your Computer sleep time.
0 comentarios
Más respuestas (2)
  O.Hubert
      
 el 11 de En. de 2018
        I think the question is unclear: does 'locked' mean 'sleep mode' or 'locked' as in 'you need a password to unlock this computer'?
For the first meaning, increasing (or disabling) sleep mode in Windows would do. If the computer goes to sleep mode, all programs stop running. For the second meaning, you can lock the computer and MATLAB will still be running. On Windows, you lock the computer by pressing Win+L. For OS-X or Linux computers, I am sure there is something similar.
0 comentarios
  Azhar
 el 10 de Jul. de 2024
        If the laptop was updated while the MATLAB program was running, is it possible to restore  the code running after running?
0 comentarios
Ver también
Categorías
				Más información sobre Introduction to Installation and Licensing en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!