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

Question Problems about writing a plugin

Discussion in 'SimTools Plugins' started by ZKILLA, May 31, 2017.

  1. ZKILLA

    ZKILLA Member

    Joined:
    Apr 5, 2017
    Messages:
    54
    Location:
    Australia
    Balance:
    417Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    SCN5, SCN6
    Hi buddy, I've posted a thread about the project that I'm working on, here is the link https://www.xsimulator.net/community/threads/cdp-system-with-vr-headset.10399/
    • Like Like x 1
  2. ZKILLA

    ZKILLA Member

    Joined:
    Apr 5, 2017
    Messages:
    54
    Location:
    Australia
    Balance:
    417Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    SCN5, SCN6
    Hi buddy, I get the DIY license, finally!And I tested your plugin after I updated my Simtools. I patched the game and I uploaded the plugin, and here is the result as it shown in the picture. The little app can capture roll and pitch data correctly, but in Tuning center I noticed the data output of Roll and Pitch always stayed zero. Do you think what's the problem? Is there any possibility that because I took the wrong settings or something? Cheers.

    Attached Files:

  3. yobuddy

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

    Joined:
    Feb 9, 2007
    Messages:
    5,133
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    47,906Coins
    Ratings:
    +5,027 / 16 / -0
    Close the test app buddy, both apps can't collect the data.
    I bet the test app is taking the data meant for the game plugin.
    let me know how it goes buddy.
    yobuddy
  4. ZKILLA

    ZKILLA Member

    Joined:
    Apr 5, 2017
    Messages:
    54
    Location:
    Australia
    Balance:
    417Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    SCN5, SCN6
    Hey buddy, sorry for late reply! I closed the test app and tried again, but same result, no data catched. I'm strongly doubt maybe I set something wrong, so here's my setting.
    Open the GameEngine and GameManger, patch the game, set the (a) Axis assignments as picture attached, set interface 1 and 2 with 2 SCN6 motors, and open the tuning center, chose the game select as Labview, and then observe the Roll and Pitch value. Any step wrong? BTW, we I do the output testing, both motors can be control correctly, and we I open the test app, both roll and pitch value can be captured correctly. Thank you buddy!

    Untitled.png
  5. yobuddy

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

    Joined:
    Feb 9, 2007
    Messages:
    5,133
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    47,906Coins
    Ratings:
    +5,027 / 16 / -0
    Does Game Manager turn blue when you launch LabVIEW?
  6. ZKILLA

    ZKILLA Member

    Joined:
    Apr 5, 2017
    Messages:
    54
    Location:
    Australia
    Balance:
    417Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    SCN5, SCN6
    I dont think so buddy, it shows exactly as the picture attached with last posting. When I opened the Game manager, it just shown 'connected'. Should it turn blue when I open Labview? How can it know I launched it?
  7. yobuddy

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

    Joined:
    Feb 9, 2007
    Messages:
    5,133
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    47,906Coins
    Ratings:
    +5,027 / 16 / -0
    Yes, It uses the process name buddy.
    Don't you have LabVIEW running when the plugin should be active?
    It seems the process name may be wrong?

    I'll post the source for the plugin when I get home from work.
    I'm sure its just the process name we need to get write, so the plugin will trigger and startup correctly.
    yobuddy
  8. yobuddy

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

    Joined:
    Feb 9, 2007
    Messages:
    5,133
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    47,906Coins
    Ratings:
    +5,027 / 16 / -0
    Sorry @ZKILLA ,
    I forgot to post the plugin source code.
    Here you go!

    You should only need to change and recompile the plugin with a proper '_ProcessName' for it to work for you.
    You can use the 2017 community version of .net as its free, if you need it buddy.
    yobuddy

    Attached Files:

    • Useful Useful x 1
  9. ZKILLA

    ZKILLA Member

    Joined:
    Apr 5, 2017
    Messages:
    54
    Location:
    Australia
    Balance:
    417Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    SCN5, SCN6
    Thank you buddy, I'll test this later and let you know the result!
    • Like Like x 1
  10. ZKILLA

    ZKILLA Member

    Joined:
    Apr 5, 2017
    Messages:
    54
    Location:
    Australia
    Balance:
    417Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    SCN5, SCN6
    Hi buddy, I tried to change the name in your original code, actually I tried "LabVIEW 16.0 Development System (32 bit)" and "Project_Killa.vi Front Panel" as it shows in the attached picture, but no response. I think it will at least show the value that I translate in the Tuning center. Do you have any idea what's the problem? Cheers. 408910740.jpg 94149137.jpg
  11. yobuddy

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

    Joined:
    Feb 9, 2007
    Messages:
    5,133
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    47,906Coins
    Ratings:
    +5,027 / 16 / -0
    Right click on LabVIEW 16.0 dev..., and select goto details.
    What does it say?
  12. ZKILLA

    ZKILLA Member

    Joined:
    Apr 5, 2017
    Messages:
    54
    Location:
    Australia
    Balance:
    417Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    SCN5, SCN6
    Sorry for late reply! The picture is attached! Can you see it clearly? 20216437_10214115808355161_351570269_o.jpg
  13. yobuddy

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

    Joined:
    Feb 9, 2007
    Messages:
    5,133
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    47,906Coins
    Ratings:
    +5,027 / 16 / -0
    Right click on "LabView 16.0 development system (32bit)" in the task manager.
    It will take you the name of the process that it associated with.

    Here is an example with GameDash,
    ex.jpg

    And I get this:
    ex2.jpg

    That's the name we need, without the ".exe." on the end.
    Let me know buddy.
    yobuddy
    Last edited: Jul 20, 2017
  14. ZKILLA

    ZKILLA Member

    Joined:
    Apr 5, 2017
    Messages:
    54
    Location:
    Australia
    Balance:
    417Coins
    Ratings:
    +7 / 0 / -0
    My Motion Simulator:
    SCN5, SCN6
    Hi buddy, I checked it again and I'm very sure that the process name is LabVIEW.exe, the very first one that we discussed. So I really don't know what it the problem now···What should I do after I upload the plugin? Just open the GameManager and GameEngine and wait for the motor move?
  15. yobuddy

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

    Joined:
    Feb 9, 2007
    Messages:
    5,133
    Occupation:
    Computer Technician
    Location:
    Portland, Oregon - USA
    Balance:
    47,906Coins
    Ratings:
    +5,027 / 16 / -0
    Please try this @ZKILLA
    1) Set the process name for the plugin to (LabVIEW), compile and install the all plugin.
    2) Launch Game Manager and Game Engine.
    3) Open Game Manager and "Patch" The labView plugin.
    4) Now launch labview, and SimTools should kick into action.
    yobuddy