Register to reply

C++ programming and electrical engineering

by land_of_ice
Tags: electrical, engineering, programming
Share this thread:
land_of_ice
#1
Jan4-10, 05:07 AM
P: 134
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)
Phys.Org News Partner Engineering news on Phys.org
An innovative system anticipates driver fatigue in the vehicle to prevent accidents
Squink personal factory aims to make circuit prototyping easy
Catching grease to cut grill pollution
ranger
#2
Jan4-10, 10:10 AM
PF Gold
ranger's Avatar
P: 1,685
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.
BlackVenom
#3
Jan6-10, 07:18 PM
P: 14
basic is used a lot with pics - unless you plan to go professional this would be the way to go.

MATLABdude
#4
Jan8-10, 05:38 AM
Sci Advisor
P: 1,724
C++ programming and electrical engineering

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!)


Register to reply

Related Discussions
What is the Difference between Electrical Engineering and Electrical techonology Academic Guidance 7
Mechanical engineering or electrical engineering General Engineering 1
Computer engineering or Electrical engineering? Academic Guidance 6
Nuclear Engineering and Electrical Engineering; Career Choices Career Guidance 9
To choose between physics engineering and electrical engineering Academic Guidance 1