EMGLAB FORUM

EMGLAB FORUM >ERROR: Erase mode property no longer supported

  Subject:   ERROR: Erase mode property no longer supported
 
From:   Martin Date:   10 Jan 2016 2:05 am  
Reply via e-mail to Martin.  
  Hi all,

I am having trouble opening emglab in MATLAB. Every time I input the function 'emglab' the emglab window opens and I am faced with lines of script in the command window repeatedly saying:

Warning: The EraseMode property is no longer supported and will error
in a future release. Use the ANIMATEDLINE function for animating
lines and points instead of EraseMode 'none'. Removing instances of
EraseMode set to 'normal', 'xor', and 'background' has minimal
impact.
> In emgscreen>emgscreen2 (line 459)
In emgscreen (line 160)
In emgscreen>emgscreen2 (line 253)
In emgscreen (line 160)
In emgscreen (line 109)
In emglab (line 63)

If anyone has any advice, that would be much appreciated. Thanks in advance.
  >> Reply to this message  

  Subject:   Re: ERROR: Erase mode property no longer supported
 
From:   AelesJ Date:   29 Jan 2018 3:04 pm  
Reply via e-mail to AelesJ.  
  Martin wrote:
>Hi all,
>
>I am having trouble opening emglab in MATLAB. Every time I input the function 'emglab' the emglab window opens and I am faced with lines of script in the command window repeatedly saying:
>
>Warning: The EraseMode property is no longer supported and will error
>in a future release. Use the ANIMATEDLINE function for animating
>lines and points instead of EraseMode 'none'. Removing instances of
>EraseMode set to 'normal', 'xor', and 'background' has minimal
>impact.
>> In emgscreen>emgscreen2 (line 459)
> In emgscreen (line 160)
> In emgscreen>emgscreen2 (line 253)
> In emgscreen (line 160)
> In emgscreen (line 109)
> In emglab (line 63)
>
>If anyone has any advice, that would be much appreciated. Thanks in advance.

It should not be an error but a warning. As such, the script should work without crashing, yet I agree that it can be quite annoying/ drastically slow things down. Here's what you can do:

Deleting this parameter in all the lines that include it worked for me. Go to the first line when you get the error Eg 459 in emgscreen -> you often have to delete both the parameter and the property value (quite often 'erase', 'xor'). save the script and try to evoke the warning again (should be a new line) and continue until you've got them all. You could also just use the "find" tool in one script (I believe emgscreen has the most).

Also the "drawmode" parameter is not supported by newer versions of Matlab and has been changed to "sortmethod".
  >> Reply to this message  

sponsors:
Veterans Affairs Palo Alto Rehabilitation Research and Development Center
|
National Institute of Neurological Disorders and Stroke