Micha1982
Posts: 268
Joined: Wed Oct 03, 2012 11:18 am

Output: $Aborted ?

Thu Jul 09, 2015 3:29 pm

I am using Mathematica on a Pi 2, found some code-examples (for sure most of them were made on other computers), try them on my Pi - and some of them give only "$Aborted" out (cpu-usage goes down after that and nothing seems to happen anymore)....but why? Is it possibly Pi-(ram/speed/space)-related? Or code-related?

This here for example:

Code: Select all

S[n_, t_] := Sin[n*3 Pi/50 + t];

Manipulate[
 Show[Table[
   Plot[100 - 
     n + (20*Abs[S[n, t]] + .02)*
      Exp[-(x - 4*S[n, t])^2/Abs[S[n, t]]], {x, -10, 10}, 
    PlotStyle -> Directive[White, Thick], 
    PlotRange -> {{-7, 7}, {0, 100}}, Filling -> Axis, 
    FillingStyle -> White, Axes -> False, AspectRatio -> Full, 
    ImageSize -> {500, 750}, 
    Background -> RGBColor[54/255, 70/255, 93/255]], {n, 1, 100, 
    1}]], {t, .001, 2 Pi + .001, (2 Pi + .001)/30}]
Or this

Code: Select all

G[p_, q_, a_, b_, c_, t_] := 
 Graphics[Table[{Opacity[.7], White, 
    Disk[{.71*Cos[a (.05*t + n)*Pi/500 + p], 
      Cos[b (.05*t + n)*Pi/500 + q]}, .002*
       Cos[c (.05*t + n)*Pi/500] + .005]}, {n, 1, 1000}], 
  PlotRange -> {{-.715, .715}, {-1.005, 1.005}}, 
  Background -> RGBColor[54/255, 70/255, 93/255], ImageSize -> 500]

Manipulate[
 Show[G[0, .2, 29, 13, 11, t], G[0, .2, 19, 31, 9, t], 
  G[.3, .29, 3, 23, 17, t], G[0, .3, 43, 7, 3, t], 
  G[.1, .13, 31, 19, 2, t]], {t, 1, 20, 1}]
Any ideas why they don't work/output is $Aborted in notebook?
Can someone confirm that they do not work, or do I something wrong maybe?
Alles, was schiefgehen kann, wird auch schiefgehen.

Micha1982
Posts: 268
Joined: Wed Oct 03, 2012 11:18 am

Re: Output: $Aborted ?

Fri Jul 10, 2015 3:30 pm

Hello Michael,

Thank you for your email.

If the computation in Manipulate takes longer than the pre-set value of DynamicEvaluationTimeOut (which has a default value of 6 seconds), then it would return $Aborted:http://reference.wolfram.com/language/ref/Aborted.html

You change change the value by evaluating

SetOptions[$FrontEnd, DynamicEvaluationTimeout -> Infinity]

It would make the time out limit to be infinity and Manipulates would never times out. However, it might make your Mathematica no-responsive.

I hope this helps.

Sincerely,

Xin Xiao

Wolfram Technical Support
I´ll try later, but sounds like that option will solve it. ;)
Alles, was schiefgehen kann, wird auch schiefgehen.

Micha1982
Posts: 268
Joined: Wed Oct 03, 2012 11:18 am

Re: Output: $Aborted ?

Mon Jul 13, 2015 1:32 pm

Hmm...the $Aborted is away with that option - but the output still does not work as expected.........
Alles, was schiefgehen kann, wird auch schiefgehen.

Return to “Mathematica”