Laerdal.com  •  MySimCenter.com


Welcome to Simulation User Network Sign in | Join | Help
in Search
  Learn more about SimStore

A log-to-xmlfile example/demo-project

Last post 09-14-2011, 2:44 by Dag Sanna. 0 replies.
Sort Posts: Previous Next
  •  09-14-2011, 2:44 3772

    A log-to-xmlfile example/demo-project

    Attachment: LogToXmlDemo.zip

    The attached project is an enhancement of the "WinFormsDemo" project that also will:

    • Dump a snapshot of all available parameters to a simple xml-file every <SnapshotIntervalMsec> mSec, where <SnapshotIntervalMsec> can be adjusted in the app.config text file.
    • Xml-files mentioned above will be named “snapshot-YYYY.xml” where YYYY is a sequential counter starting on 1.
    • Xml-files name and location can be specified in app.config - <SnapshotFilePathPattern>.
    • Application stops creating files after Z times where Z is defined in app.config - <SnapshotMaxFiles>.
    • App removes all files created on exit (can be disabled in app.config - <SnapshotRemoveFilesOnExit>).

    Follow these steps to add the new project in the SDK solution (assuming version 1.0.0.370):

    1. Unzip content to folder "Laerdal Simulator SDK 1.0.0.370\Demos"
    2. Open SDK solution (SDK.sln) in MSVS
    3. Inside MSVS, in the <Solution Explorer> window, right click the "Demos" folder and select <Add><Existing Project...>
    4. Locate the and select "Demos\LogToXmlDemo\LogToXmlDemo.csproj" project file
    5. Compile and run Big Smile

    I hope someone find it useful


    Dag Sanna
    Laerdal Medical AS
View as RSS news feed in XML