element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Personal Blogs
  • Community Hub
  • More
Personal Blogs
Legacy Personal Blogs Third Year Systems Project - 1: C# is killing me
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: djfraz
  • Date Created: 12 Oct 2017 8:48 PM Date Created
  • Views 417 views
  • Likes 0 likes
  • Comments 2 comments
Related
Recommended

Third Year Systems Project - 1: C# is killing me

djfraz
djfraz
12 Oct 2017

Just a quick update on the project. The initial mechanical design has been completed by my team members, and once they explain it to me; I can explain it here. As right now their scribbles make no sense to me.

 

A couple members of the team are beginning to work on reading sensor data via the MBed, and failing miserably. I am starting to notice a pattern in the source code examples our lecture is giving up, they are (for lack of a better work) crap. If you don't know what i am refering to check my previous blog post on the Verilog PWM assignment we had to to for the course here Verilog PWM.

 

Since the MBEd will just be a passthrough for serial command, I decided that i will do the maintenance mode software; using C#. As once the main bulk of the FPGA Design is completed, I will just need to wait on mechanical design being completed before I can design the state machine to operate the system.

 

The main idea is to have the main form as an MDI, Multiple Document Interface, as you see some DEvelopment environments. This gives us the opportunity to just design more forms and add functionality as we need it. Just one big problem, it would seam that C# and Serial Ports hate me just now. I have tried using the example code given to me by my lecturer, but it doesn't do what I am looking for. I have looked online and when i try to duplicate, it does nothing.

 

Let me explain a little;

as I am using a MDI which means that several forms will be either sending serial data out, or receiving it. I am looking to set up a public function in the main form which watches the serial port and then returns the value. This way any other form can call the function to watch the serial port, without having to set it up in every form. yet no matter how i try to do this it either throws a runtime error at me, or just does nothing. I am testing it by having two FTDI chips connected to each other and to my computer(and before anyone asks, my connections are working and have checked them using a serial terminal).

 

If anyone has any ideas on how i can accomplish this, or know someone that does; please help. I'm running out of hair to pull out.

  • Sign in to reply

Top Comments

  • DAB
    DAB over 8 years ago +1
    In many ways, C#, is mostly how C started out before they added the extensions and went to C++. I find it easier to use, because it is primarily a control language. DAB
  • djfraz
    djfraz over 8 years ago in reply to DAB

    I think it is something that i will just need to get more experience with, all the c# i have done is read half a book on it two weeks ago so i could do one of my assignments.

     

     

    It is definitely a language that is easy to learn, difficult to master. Although i have managed to solve my current problem, ill be posting a couple posts tomorrow about it and then interfacing it with the MBed.

    I will try and get more practice with it and try incorporating it into some of my future projects.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 8 years ago

    In many ways, C#, is mostly how C started out before they added the extensions and went to C++.

     

    I find it easier to use, because it is primarily a control language.

     

    DAB

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube