Comments on CHRONO example probe_and_vars.r3d
Easy way to set Javascript variables
  What to do: load the file, open the control panel, press the play button on the animation timeline (watch at least 5 seconds of simulation).

This demonstrates an easy way to fetch variables from the system, even knowing few things about the model interface (the way javascript can access the objects of chrono systems).
In fact, look the two probe objects which monitor the reaction forces in the springs: these probes are in 'Set JS variable' mode, hence setting our two custom variables 'force_a' and 'force_b'. Then, the two links 'needle motor' simply use this variable to impose the rotation of the two needles (look the property window of the motors, in the Custom tab).


© DeltaKnowledge 2007