C++ programming and electrical engineering

In summary, C++ is used by some EE's to design algorithms. It can be useful for implementing routing algorithms for PCB routing, or routing of logic blocks or logic clusters on an FPGA.
  • #1
land_of_ice
137
0
Is C++ programming used in electrical engineering work, it really doesn't seem as though it would be,but what could it be useful for, some kind of possible scenario ? (E.E. encorporates the use of electricity to make things happen mainly, whereas C++ has to do with computer design)
 
Technology news on Phys.org
  • #2
Well you can use C++ to design algorithms. For example, implementing a routing algorithm for PCB routing, or routing of logic blocks or logic clusters on an FPGA. Some engineers would prefer the use of C++ to design such algorithms, because they find it easier to implement the algorithm using data structures in a particular language. Sometimes using only C may leave you with a lot of overhead. But it really depends on the application.
 
  • #3
basic is used a lot with pics - unless you plan to go professional this would be the way to go.
 
  • #4
One does not need to use programming whatsoever as an electronics engineer. However, you'll probably end up doing lots and lots of analog electronics or lots and lots of discrete logic.

I have a friend who wanted to make an LED flash when a button was pushed. He was going to use a 555 timer circuit along with a transistor (around a half-dozen parts, utilizing some resistors he didn't have on hand and probably an hour or two of tinkering). I suggested that he use a small microcontroller instead, and a half-dozen or so lines of c code. Or a few more lines to make really cool lighting effects (this was for a Deathstar cake his fiancée had been commissioned to make). Ironically, I'm the EE, and he's the CompSci.

In a nutshell, programming (and microcontrollers, CPLDs, FPGAs, etc.) allow you to trade hardware for software. And if you mess up, it's often much easier to fix software mistakes (by reprogramming, or uploading new software to reprogrammable devices) than hardware mistakes (track cutting, ugly board hacks, etc.)

And of course, not all EEs (nor even a significant portion of them) end up doing electronics design (e.g. power distribution systems), design at all (e.g. testing or technical writing), or even something that nebulously falls under the aegis of engineering! (E.g. management or sales, and that doesn't count the people that decide to ditch their EE degrees and go to law school or become a priest, or a banker--things that some of my classmates actually ended up doing!)
 

1. What is C++ programming and how does it relate to electrical engineering?

C++ is a high-level programming language used for creating efficient and powerful software applications. It is commonly used in electrical engineering for developing embedded systems, control systems, and other applications that require real-time processing and high performance.

2. What are the main features of C++ that make it suitable for electrical engineering?

C++ offers a wide range of features that make it well-suited for electrical engineering, such as low-level memory manipulation, object-oriented programming, and support for multi-threading. These features allow for efficient and flexible coding in real-time systems.

3. Is knowledge of C++ necessary for an electrical engineering career?

While it is not a requirement, having knowledge of C++ can be highly beneficial for an electrical engineering career. It allows for more versatility in developing software applications and can give you an advantage in the job market.

4. Are there any specific libraries or frameworks in C++ that are commonly used in electrical engineering?

Yes, there are several libraries and frameworks in C++ that are commonly used in electrical engineering, such as the Standard Template Library (STL), Boost C++ Libraries, and the Arduino framework. These provide additional functionality and make development in C++ more efficient.

5. How can I learn C++ programming for electrical engineering?

There are many resources available for learning C++ programming for electrical engineering, such as online courses, books, and tutorials. It is also helpful to practice coding and work on projects to gain hands-on experience. Additionally, networking with other professionals in the field can provide valuable insights and tips for learning C++ in the context of electrical engineering.

Similar threads

  • Programming and Computer Science
Replies
7
Views
461
  • Programming and Computer Science
Replies
10
Views
3K
  • Programming and Computer Science
Replies
16
Views
1K
  • Programming and Computer Science
Replies
1
Views
726
  • Programming and Computer Science
2
Replies
49
Views
3K
  • Programming and Computer Science
Replies
13
Views
1K
  • Programming and Computer Science
Replies
1
Views
1K
  • Programming and Computer Science
Replies
17
Views
1K
  • Programming and Computer Science
2
Replies
54
Views
3K
  • Programming and Computer Science
Replies
8
Views
875
Back
Top