Go to Post to have someone honored as being honered next to us is a huge compliment thank you lol - Aren_Hill [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 05-15-2014, 12:41 PM
Bpk9p4's Avatar
Bpk9p4 Bpk9p4 is offline
Registered User
FRC #1756
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Illinios
Posts: 271
Bpk9p4 is on a distinguished road
Simulink / Mathworks

Does anyone know why Mathworks has not made a real attempt at supporting simulink for FIRST? Simulink seems to be more used in the industry just seems strange for them not to be more interested in FIRST
  #2   Spotlight this post!  
Unread 05-15-2014, 02:04 PM
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,548
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Simulink / Mathworks

You can request licenses for Mathworks software for your team here: http://www.mathworks.com/academia/st...irst-robotics/

There was a Mathworks project to use Simulink's code generator to generate C++ WPILib code, but it never made it out of beta. See http://www.chiefdelphi.com/forums/sh...ad.php?t=86223
  #3   Spotlight this post!  
Unread 05-15-2014, 02:27 PM
protoserge's Avatar
protoserge protoserge is offline
CAD, machining, circuits, fun!
AKA: Some call me... Tim?
FRC #0365 (MOE) & former 836 Mentor)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2002
Location: Wilmington, DE
Posts: 743
protoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond repute
Re: Simulink / Mathworks

The Mathworks has supported FIRST in the past. A few years ago, we were able to get a few licenses of MATLAB, Simulink, and a some toolboxes. We may have gone through an unconventional path since we deal with NI and The Mathworks on a regular basis at work. Unfortunately, we weren't able to devote enough time with all of our other duties to really utilize the software.

I would love to see it become a standard offering with FRC-specific training and sample models for calculating trajectories, force-damping problems, motor/gearbox torque calculators, etc. With a good modeler, the possibilities of apps for designing robots are really limitless. For instance, there could be a MATLAB app that allowed for adjustments in width/length/wheel selection and showed the calculations for scrub force and torque requirement of the gearboxes.

LabVIEW is more prominent in industry with regard to graphically programmed control systems, which is what many of the FRC robots use. Some of the actual modeling of the control systems is primarily can be done with Simulink and then converted into LabVIEW using the NI Control Design and Simulation Module. There are certain idiosyncrasies in translating the code that may make this a more challenging approach than using the NI offering in the first place.

There are other software packages out there for modeling as well. Some additional examples that my [work] team and I have looked at include Wolfram SystemModeler, Maple, and LMS (Siemens) AMESim. All have their strengths and most can interface with NI hardware with various levels of efficacy.

At the end of the day, the software in FRC for control has to be able to interface with NI hardware. This theoretically can be done using xPC Target for Simulink and the NI drivers. How well this works has yet to be tested for FRC as far as I am aware.

Last edited by protoserge : 05-15-2014 at 02:33 PM.
  #4   Spotlight this post!  
Unread 05-15-2014, 03:03 PM
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,003
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Simulink / Mathworks

Quote:
Originally Posted by Joe Ross View Post
There was a Mathworks project to use Simulink's code generator to generate C++ WPILib code...
Does their code generator still use double-precision floats for booleans?


  #5   Spotlight this post!  
Unread 05-15-2014, 03:09 PM
Chris Hibner's Avatar Unsung FIRST Hero
Chris Hibner Chris Hibner is offline
Eschewing Obfuscation Since 1990
AKA: Lars Kamen's Roadie
FRC #0051 (Wings of Fire)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1997
Location: Canton, MI
Posts: 1,488
Chris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond repute
Re: Simulink / Mathworks

Quote:
Originally Posted by Ether View Post
Does their code generator still use double-precision floats for booleans?


No. Simulink started to support data types many releases ago. Even before Simulink supported data types, you could get third party tools (such as TargetLink from dSPACE) that would support fixed point code generation.

In case anyone is interested in how prevalent Mathworks products are, many current control systems in production use auto-generated code from Simulink and Stateflow. Many engine and transmission controllers on cars that you drive use code generated from Simulink. The company that I currently work for does the vast majority of our control software in Simulink/Stateflow and the code is auto-generated. Likewise for the last company that I worked for.
__________________
-
An ounce of perception is worth a pound of obscure.

Last edited by Chris Hibner : 05-15-2014 at 03:13 PM.
  #6   Spotlight this post!  
Unread 05-15-2014, 03:09 PM
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,548
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Simulink / Mathworks

Quote:
Originally Posted by Ether View Post
Does their code generator still use double-precision floats for booleans?
http://www.chiefdelphi.com/forums/sh...5&postcount=14

  #7   Spotlight this post!  
Unread 05-15-2014, 03:20 PM
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,003
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Simulink / Mathworks

Quote:
Originally Posted by Joe Ross View Post
What would I do without you Joe. I can't even remember posting that.


  #8   Spotlight this post!  
Unread 05-15-2014, 03:25 PM
Chris Hibner's Avatar Unsung FIRST Hero
Chris Hibner Chris Hibner is offline
Eschewing Obfuscation Since 1990
AKA: Lars Kamen's Roadie
FRC #0051 (Wings of Fire)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1997
Location: Canton, MI
Posts: 1,488
Chris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond repute
Re: Simulink / Mathworks

Quote:
Originally Posted by Ether View Post
What would I do without you Joe. I can't even remember posting that.


Funny, I don't remember that post either. Funnier yet, my earlier post is quite similar to the post I just made.
__________________
-
An ounce of perception is worth a pound of obscure.
  #9   Spotlight this post!  
Unread 05-15-2014, 03:30 PM
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,509
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: Simulink / Mathworks

Quote:
Originally Posted by Chris Hibner View Post
Funny, I don't remember that post either. Funnier yet, my earlier post is quite similar to the post I just made.
You know you've overdosed on FIRST when.....

You answer the same question, from the same person, with the same answer, and don't ever remember doing it.
  #10   Spotlight this post!  
Unread 05-15-2014, 11:06 PM
dk5sm5luigi's Avatar
dk5sm5luigi dk5sm5luigi is offline
Registered User
AKA: Nick Galotti
FRC #1735 (Green Reapers)
Team Role: Mentor
 
Join Date: Nov 2001
Rookie Year: 1997
Location: Worcester
Posts: 288
dk5sm5luigi has much to be proud ofdk5sm5luigi has much to be proud ofdk5sm5luigi has much to be proud ofdk5sm5luigi has much to be proud ofdk5sm5luigi has much to be proud ofdk5sm5luigi has much to be proud ofdk5sm5luigi has much to be proud ofdk5sm5luigi has much to be proud ofdk5sm5luigi has much to be proud ofdk5sm5luigi has much to be proud of
Send a message via AIM to dk5sm5luigi
Re: Simulink / Mathworks

MathWorks does get involved with FIRST and sponsors events and many teams in the area, mine included. I know they have tried to get more involved with getting MATLAB and Simulink to work with WPILib but for one reason or another it hasn't happened.
__________________
Team 1735 Green Reapers: 2005-Present
Team 190 Gompei: 2001-2005
Team 155 Technonuts: 1997-2001
http://www.first-a-holics.com/
http://www.findrobotparts.com/
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 06:10 PM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi