|s1||sensor one to trigger the measurement||ID|
|s2||sensor two to trigger the calculation||ID|
|distance||distance between s1 and s2||mm|
|scale||locomotive gauge/scale: H0=87, N=160…||-|
|mph||Miles Per Hour||true/false|
The sensors may also be used by a block; they both will get the events.
See also: http://www.rocrail.net/doc/rocrail-wrappers/wrapper-en.html#mv
The measure value can used with the rocrail variable %mvspeed% as dynamic text in a action of typ "text".
The action must called with status “in” in the action control of “MVTrack”.
The example assumes that the text field txtSpeed is defined.
|Text action “measure”||Action control of the MVTrack
calling the action “measure”
This feature is also available in blocks.
The measure value is than transfer in the rocrail variable %bkmvspeed% to the block action control.
|The average velocity is shown in the Rocgui server window:|
In case of MPH the calculated KM/H is multiplied by 0.621371192.