sliding2.xml
sliding.xml modified to run.
This version uses the custom Sign actor.
Below are instructions on how to run this model
cd $PTII jar -xf lib/diva.jarso that
$PTII/diva exists (This is bug that will be fixed
some day)
$PTII/ptolemy/apps/cg
c:\users\cxh\ptII\ptolemy\apps\throttle\cg
$PTII/bin/vergil ptolemy/apps/throttle/cg/README.htm
sliding2.xml
1622 ms. Memory: 11372K Free: 4828K (42%)
sliding2.xml
that has a SequencePlotter instead of a FileWriter and run that.
c:\users\cxh\ptII\ptolemy\apps\throttle\cg
becomes
c:\ptII\ptolemy\apps\throttle\cg
compile and run change from
-classpath "c:\users\cxh\ptII;"
to
-classpath "c:\ptII;"
If you make these changes and save the model, then you will not
need to make them each time
$PTII/ptolemy/apps/throttle/cg/
java -classpath "$PTII" ptolemy.apps.throttle.cg.Main
$PTII/bin/jode ptolemy.apps.throttle.cg.MainAnother interesting class is
$PTII/bin/jode ptolemy.apps.throttle.cg.CGModelsliding
java -classpath "$PTII" ptolemy.actor.gui.MoMLSimpleStatisticalApplication sliding2.xml
Controller.xml
Attached is the model I started modifying. It currently just outputs a sinewave, which is probably right... Without hooking it up to some sort of model of dynamics, we can't expect much more. But code generating this would certainly be a good starting point, and make a decent demo.and
Note: Tunc's model is likely to be better, so if you have already made some sense of his, go with that... But if you haven't started with his, this one will probably be more straightforward.
sliding.xml
tunc.xml
tunc.xml
Tunc wrote
here is the file without modifications. to make it run using a single sdf controller you would need to do the following:replace "tunc.controller.sampled controller.real-time controller" with the refinement of the "driver" mode of "tunc.controller.sampled controller.real-time controller.servo controller.modal controller"
And that should give you a purely SDF pedal tracking controller.
Best,
Tuncps. the version of ptolemy i'm using is the one i checked out and compiled on the 9th(or 10th) of January.