Announcement

Collapse

Forum Guidelines

This forum is for finished source code that is working properly. If you have questions about this or any other source code, please post it in one of the Discussion Forums, not here.
See more
See less

StopWatch with RemoteControl --- using Graphic Buttons in PB/CC

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • PBCC StopWatch with RemoteControl --- using Graphic Buttons in PB/CC

    Attached is a new version of the StopWatch (V0.6).

    The major enhancements are:
    - A more solid FSM for the control flow
    - An interface for remotely controlling the StopWatch
    - All programs use the newly released GrButtons.inc (V0.7).

    There are 3 ways to operate the StopWatch remotely:
    (1) A Graphic Window with buttons in RemoteControlSW.exe

    (2) Calling the routine StopWatch() in any program (RC_SW.inc has to be included).
    See for example RC_Prog_Demo.exe.
    A list of parameters can be found in RC_SW.inc (Function StopWatch()).

    (3) Calling RC_Batch.exe (same parameters as under (2)) in the Windows command processor,
    e.g. in a batch file or in "Execute" of Windows' Start menu.
    There is a sample batch file RC_Batch_Demo.bat.

    The program RemoteControlSW.exe uses the same buttons and display as StopWatchRC.exe.
    Through data exchange via a Memory Mapped File the actions in either program
    are synchronized to the other one.
    Some members of the MMF UDT cause events which wait a maximum of 5 milliseconds
    in order to allow the exact 10 millisecond resolution of the clock.
    Other members are written and read statically.

    The communication between programs regarding their status of being loaded or not
    is mainly based on the two functions SetStaticEvent() and GetStaticEvent().

    Use the program CheckStaticEvents.exe in order to monitor the status of
    loaded programs and the Memory Mapped File variables.

    In order not to create any path issues, all .exe should all be copied to the same directory.
    A copy of GrButtons.inc has been included in the attachment for easier access.

    Gert Voland.


    The attachment contains all source and compiled files:
    Gert Voland
Working...
X