How can I connect Logitech G27 with Simulink?

조회 수: 9 (최근 30일)
EUIHYUN HAN
EUIHYUN HAN 2018년 10월 17일
댓글: Desirae 2023년 9월 14일
I'm trying to interface Logitech G27 driving wheel with Simulink in Matlab 2018b.
I found some references below.
1. Logitech G29 block is available in Matlab 2018b but I have some problems when I try connecting it to G27 instead of G29. Is it possible to do in this way?
2. I've found one paper where G27 was connected to Simulink by Joystick block. https://docplayer.net/48892672-Building-a-matlab-simulink-based-truck-simulator-t-a-h-lousberg.html#show_full_text I use only the driving wheel and pedals, not the gear selector. In this case, what selector parameters should be used to receive the data?
Thanks.
  댓글 수: 3
Ahmad Mateen Chohan
Ahmad Mateen Chohan 2022년 6월 21일
Hy! Sir, I'm Ahmad Mateen Chohan, an Automotive Engineer from Pakistan.
Can you share it's source file at ahmedmateen681@gmail.com
Sheshu Marshetty
Sheshu Marshetty 2022년 8월 10일
Hello,
I am working on same issue with different Vehicle dynamic model
Can you share some source file at Marshettysheshu28@gmail.com

댓글을 달려면 로그인하십시오.

답변 (4개)

HUSAIN KANCHWALA
HUSAIN KANCHWALA 2019년 3월 28일
If anybody got a way to do it kindly share.

Behnam Nasirian
Behnam Nasirian 2019년 4월 1일
Hello everyone,
Please let me know if you found the answer to this question.
Thanks,

AYUSH MAHESHWARI
AYUSH MAHESHWARI 2021년 3월 16일
편집: AYUSH MAHESHWARI 2021년 4월 3일
Hello,
You can have following options :
  1. Use Joystick Input block in MATLAB. From the game controller (control panel settings in windows) provide the ID. This ID you can give as a paremeter in the block and recieve signals from axes, buttons and point of view. For example in my case it's 2 and I am getting my steering signal, throttle, brake and clutch from axis while my gear # and other button values (boolean) on g27 from button output. Check accordingly.Once checked by actuating the axis and button on hardware make sure to callibrate the system.
  2. Create joystick object and setup it in similar fashion as mentioned in option 1.
In option 1 and option 2 you can't change steering parameters from the MATLAB / Simulink and everytime has to switch to Logitech Gaming Software. This is not a good way if your project is research oriented. Some example of these parameters are : wheel linearit, wheel range, overall gain , spring gain , damper gain , combined pedals etc. (you would have seen these parameters in Logitech Gaming Software). Joystick Input is a s-function. I f you will right click on block and select Block Parameters you will see parameters over there are joyid, adjust ports and force feed. This will not help much in in-depth analysis of the rersearch work.
3. Intermediate but flexible operability: Design you own s-function. First study the logitech SDK kit (easily avaialble). Over there you have documentation of classes their properties and functions. You can use these in MATLAB using S-function furthermore defining your own parameters (as mentioned above) and then tuning it in simulink itself and see the effect. In SDK file go into src file you will see multiple src snippets etc. You can use these in your level 2 s-function customized blocks. Read document name "LogitechGamingSteering WheelSDK" and you will find wrapper and .dll (dynamic link library). You can use it further in C sharp based tools such as unity game engine too.
I will though suggest to start from option 1 and if you feel to go in-depth, try developing s-function.
Good Luck
Ayush
  댓글 수: 1
Desirae
Desirae 2023년 9월 14일
I am trying to use your Option 1, but am having trouble finding the ID from the game controller. Can you explain in more detail how I find this information and then how do I use it to connect the Logitech driving wheel/pedals to Simulink?

댓글을 달려면 로그인하십시오.


Vitaliy
Vitaliy 2023년 9월 13일
Hi!
How can I connect Thrustmaster T300 RS GT Edition with Simulink?
I can’t connect this gaming steering wheel with pedals to Simulink, please help

카테고리

Help CenterFile Exchange에서 Messages에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by