1. For downloading SimTools plugins you need a Download Package. Get it with virtual coins that you receive for forum activity or Buy Download Package - We have a zero Spam tolerance so read our forum rules first.

    Buy Download Package Now!
  2. Do not try to cheat our system and do not post an unnecessary amount of useless posts only to earn credits here. We have a zero spam tolerance policy and this will cause a ban of your user account. Otherwise we wish you a pleasant stay here! Read the forum rules
  3. We have a few rules which you need to read and accept before posting anything here! Following these rules will keep the forum clean and your stay pleasant here. Do not following these rules will lead to permanent exclusion from this website: Read the forum rules.

perl script to show GameEngine output

Discussion in 'SimTools DIY Version' started by JBoogie, Jan 29, 2014.

  1. JBoogie

    JBoogie Member

    Joined:
    Jan 14, 2014
    Messages:
    81
    Occupation:
    Pre-sales Engineer
    Location:
    Northern VA
    Balance:
    1,355Coins
    Ratings:
    +37 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, SimforceGT
    Hey guys (and gals perhaps?),
    I am still new to all this and trying to figure out exactly how SimTools works. One of the big unknowns for me initially was what exactly was output by the GameEngine and fed to the microcontroller, so I wrote a super simple little perl script to capture the output and print it to the screen so I can actually see it. Hopefully this is helpful to others down the road if they have the same kinds of questions.

    This perl script acts as a simple UDP socket server. It simply opens a socket and prints out the messages it receives. To make the output a bit more readable, I am only printing the output when it changes.

    In order to run this utility, you need perl on your computer. For Windows, you want ActivePerl. Note: I had to change the file name from simTest.pl to simTest.txt in order to upload it. Just change the extension back to .pl and then perl will recognize it. To run it, open a cmd prompt, browse to the directory where you have the script and run it by typing 'perl simTest.pl'. Now open GameEngine and setup the Interface Settings to match the attached screenshot. Now when you turn on Output Testing, you should be able to move the sliders around and see how the output changes. If all went well, you should see something like this:

    C:\JB\Sim\GameEngine Test Tool>perl simTest.pl
    Output from SimTools: R127L127-startup
    Output from SimTools: R127L127
    Output from SimTools: R128L127
    Output from SimTools: R129L127
    Output from SimTools: R130L127
    Output from SimTools: R131L127
    Output from SimTools: R131L126
    Output from SimTools: R131L124
    Output from SimTools: R131L122
    Output from SimTools: R131L121
    Output from SimTools: R131L117
    Output from SimTools: R131L116
    Output from SimTools: R131L115

    Cheers!
    -JBoogie

    Attached Files:

    • Like Like x 3
    • Useful Useful x 2
  2. Ads Master

    Ads Master

    Balance:
    Coins
    Ratings:
    +0 / 0 / -0
  3. yobuddy

    yobuddy Well-Known Member Staff Member Moderator SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Feb 9, 2007
    Messages:
    3,683
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    30,135Coins
    Ratings:
    +3,724 / 10 / -0
  4. RaceRay

    RaceRay Administrator Staff Member SimAxe Beta Tester

    Joined:
    Nov 8, 2006
    Messages:
    4,633
    Occupation:
    Self-employed | Web and application development
    Location:
    Hamburg, Germany
    Balance:
    24,614Coins
    Ratings:
    +1,357 / 10 / -0
    My Motion Simulator:
    2DOF, DC motor, SimAxe, SimforceGT
    • Agree Agree x 1
  5. eaorobbie

    eaorobbie Well-Known Member Staff Member SimTools Developer Gold Contributor

    Joined:
    May 26, 2009
    Messages:
    2,593
    Occupation:
    CAD Detailer
    Location:
    Ellenbrook, Western Australia
    Balance:
    19,716Coins
    Ratings:
    +1,656 / 22 / -2
    My Motion Simulator:
    2DOF, DC motor, JRK, SimforceGT, 6DOF
    Well done.
  6. JBoogie

    JBoogie Member

    Joined:
    Jan 14, 2014
    Messages:
    81
    Occupation:
    Pre-sales Engineer
    Location:
    Northern VA
    Balance:
    1,355Coins
    Ratings:
    +37 / 0 / -0
    My Motion Simulator:
    2DOF, DC motor, Arduino, SimforceGT
    Thanks guys, glad to be able to contribute something which might be useful!

    @RaceRay, I am happy to move this to wherever you think it should be. As the OP can I move this entire topic or should I just create a new one?
  7. yobuddy

    yobuddy Well-Known Member Staff Member Moderator SimAxe Beta Tester SimTools Developer Gold Contributor

    Joined:
    Feb 9, 2007
    Messages:
    3,683
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    30,135Coins
    Ratings:
    +3,724 / 10 / -0
    Hi @JBoogie

    I think René was just saying that if you wanted to, you could upload the app to the download section of the web sight, in the utilities section.
    yobuddy
    • Agree Agree x 2
  8. RaceRay

    RaceRay Administrator Staff Member SimAxe Beta Tester

    Joined:
    Nov 8, 2006
    Messages:
    4,633
    Occupation:
    Self-employed | Web and application development
    Location:
    Hamburg, Germany
    Balance:
    24,614Coins
    Ratings:
    +1,357 / 10 / -0
    My Motion Simulator:
    2DOF, DC motor, SimAxe, SimforceGT
    Yes exactely:)