Here is a simple example:
Manipulate[Plot[Sin[2 Pi f t], {t, 0, 10}], {f, 0, 5}]
This makes a plot with a sine wave of varying frequency determined by f
. Go to the File->CDF Export->Standalone
menu item and save as a .cdf file (I called mine test.cdf). Now open test.cdf in the Wolfram reader and the Manipulate is colored pink and presents an error message "An unrecognized option name UndoTrackedVariables was encountered". The Manipulate appears to function, but it is quite disconcerting to see the pink error-color on the Manipulate.
My questions are: can anyone reproduce this (I'm using version 10.0.1 on Mac OS 10.9.5)? Second, can anyone think of a way to remove the error message and get the cdf's back to normal? Thanks!
Answer
This issue is due to the fact, that the stand alone CDF Player is still in version 9.
Opening the cdf file in a browser with a Mathematica 10 plugin installed works without any problem. Also creating the cdf file with version 9 works properly.
If you need to make this cdf work in the version 9 player and want to use Mathematica version 10 to create it, you can do the following:
cdf = Import["D:\\test.cdf"];
Delete[cdf, Most@Flatten@Position[cdf, UndoTrackedVariables]];
Export["D:\\test_v9.cdf", %]
This will just delete the UndoTrackedVariables
entry that is causing the incompatibility.
Comments
Post a Comment