1. Do not share user accounts! Any account that is shared by another person will be blocked and closed. This means: we will close not only the account that is shared, but also the main account of the user who uses another person's account. We have the ability to detect account sharing, so please do not try to cheat the system. This action will take place on 04/18/2023. Read all forum rules.
    Dismiss Notice
  2. 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 Now a Download Plan!
  3. 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
  4. 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. Do not follow these rules can lead to permanent exclusion from this website: Read the forum rules.
    Are you a company? Read our company 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:
    82
    Occupation:
    Pre-sales Engineer
    Location:
    Northern VA
    Balance:
    1,524Coins
    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. yobuddy

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

    Joined:
    Feb 9, 2007
    Messages:
    5,282
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    49,198Coins
    Ratings:
    +5,093 / 18 / -0
  3. RaceRay

    RaceRay Administrator Staff Member SimAxe Beta Tester

    Joined:
    Nov 8, 2006
    Messages:
    4,656
    Occupation:
    Self-employed | Web and application development
    Location:
    Hamburg, Germany
    Balance:
    23,862Coins
    Ratings:
    +1,998 / 13 / -0
    My Motion Simulator:
    2DOF, DC motor, SimAxe, SimforceGT
    • Agree Agree x 1
  4. eaorobbie

    eaorobbie Well-Known Member SimTools Developer Gold Contributor

    Joined:
    May 26, 2009
    Messages:
    2,574
    Occupation:
    CAD Detailer
    Location:
    Ellenbrook, Western Australia
    Balance:
    20,431Coins
    Ratings:
    +1,684 / 23 / -2
    My Motion Simulator:
    2DOF, DC motor, JRK, SimforceGT, 6DOF
    Well done.
  5. JBoogie

    JBoogie Member

    Joined:
    Jan 14, 2014
    Messages:
    82
    Occupation:
    Pre-sales Engineer
    Location:
    Northern VA
    Balance:
    1,524Coins
    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?
  6. yobuddy

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

    Joined:
    Feb 9, 2007
    Messages:
    5,282
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    49,198Coins
    Ratings:
    +5,093 / 18 / -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
  7. RaceRay

    RaceRay Administrator Staff Member SimAxe Beta Tester

    Joined:
    Nov 8, 2006
    Messages:
    4,656
    Occupation:
    Self-employed | Web and application development
    Location:
    Hamburg, Germany
    Balance:
    23,862Coins
    Ratings:
    +1,998 / 13 / -0
    My Motion Simulator:
    2DOF, DC motor, SimAxe, SimforceGT
    Yes exactely:)