Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to view board component and capacitor

How to view board component and capacitor

Scheduled Pinned Locked Moved C#
tutorialquestion
17 Posts 9 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    regerteast
    wrote on last edited by
    #1

    Hello, How to view and maniplate board component and capacitor physical controllers (voltage, temerators, etc) given board circuits coordinate programitaclly? Thanks on repose to the erliest of this .

    P P S A 4 Replies Last reply
    0
    • R regerteast

      Hello, How to view and maniplate board component and capacitor physical controllers (voltage, temerators, etc) given board circuits coordinate programitaclly? Thanks on repose to the erliest of this .

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      Software is unaware of the hardware it runs on. What are you asking?

      1 Reply Last reply
      0
      • R regerteast

        Hello, How to view and maniplate board component and capacitor physical controllers (voltage, temerators, etc) given board circuits coordinate programitaclly? Thanks on repose to the erliest of this .

        P Offline
        P Offline
        Patrice T
        wrote on last edited by
        #3

        Hell what are you talking about? How can we know what you have in mind ? If I understand what you want, the answer is this kind of magic does not exist. Asking questions is a skill[^]

        Patrice “Everything should be made as simple as possible, but no simpler.” Albert Einstein

        1 Reply Last reply
        0
        • R regerteast

          Hello, How to view and maniplate board component and capacitor physical controllers (voltage, temerators, etc) given board circuits coordinate programitaclly? Thanks on repose to the erliest of this .

          S Offline
          S Offline
          Sascha Lefevre
          wrote on last edited by
          #4

          If you want to control certain physical parameters of a CPU, GPU or RAM then you will have to look for some motherboard-specific driver software with a documented API. Pretty sure there won't be a single one based on .NET so you would have to use P/Invoke or a C++/CLI-wrapper provided that it was your intention to ask for this in the C# forum. If you want to control physical parameters of other circuit board components by software (since you mention capacitors) then the circuit board would have to be designed for that purpose as well, meaning it would have to have components dedicated to interface with your software and with other components to allow your software to control those other components. So it absolutely isn't possible to do this with an arbitrary circuit board, especially not just by knowing its coordinates..

          If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson

          R 1 Reply Last reply
          0
          • S Sascha Lefevre

            If you want to control certain physical parameters of a CPU, GPU or RAM then you will have to look for some motherboard-specific driver software with a documented API. Pretty sure there won't be a single one based on .NET so you would have to use P/Invoke or a C++/CLI-wrapper provided that it was your intention to ask for this in the C# forum. If you want to control physical parameters of other circuit board components by software (since you mention capacitors) then the circuit board would have to be designed for that purpose as well, meaning it would have to have components dedicated to interface with your software and with other components to allow your software to control those other components. So it absolutely isn't possible to do this with an arbitrary circuit board, especially not just by knowing its coordinates..

            If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson

            R Offline
            R Offline
            regerteast
            wrote on last edited by
            #5

            Please update when you find this libary

            P M 2 Replies Last reply
            0
            • R regerteast

              Please update when you find this libary

              P Offline
              P Offline
              Pete OHanlon
              wrote on last edited by
              #6

              Why should Sascha find this library for you?

              This space for rent

              1 Reply Last reply
              0
              • R regerteast

                Hello, How to view and maniplate board component and capacitor physical controllers (voltage, temerators, etc) given board circuits coordinate programitaclly? Thanks on repose to the erliest of this .

                A Offline
                A Offline
                Amarnath S
                wrote on last edited by
                #7

                I've worked with a format called Gencad for this. The Gencad file specification is available somewhere on the Internet; once you get it, you need to read the CAD file based on this spec, and then render the different PCB elements on the screen using GDI kind of commands. Had developed a Gencad viewer, and this is property of one of my earlier employers.

                1 Reply Last reply
                0
                • R regerteast

                  Please update when you find this libary

                  M Offline
                  M Offline
                  Matt T Heffron
                  wrote on last edited by
                  #8

                  As Sascha noted, it is essentially impossible in the general case.

                  "Fairy tales do not tell children the dragons exist. Children already know that dragons exist. Fairy tales tell children the dragons can be killed." - G.K. Chesterton

                  R 1 Reply Last reply
                  0
                  • M Matt T Heffron

                    As Sascha noted, it is essentially impossible in the general case.

                    "Fairy tales do not tell children the dragons exist. Children already know that dragons exist. Fairy tales tell children the dragons can be killed." - G.K. Chesterton

                    R Offline
                    R Offline
                    regerteast
                    wrote on last edited by
                    #9

                    How is it impossible? Ths same sofotawre can run on a motherboard whether it is Linx, Windows Vista, 7, 8 or 10, etc. If hardware is unchanging, softwre must know to

                    L 1 Reply Last reply
                    0
                    • R regerteast

                      How is it impossible? Ths same sofotawre can run on a motherboard whether it is Linx, Windows Vista, 7, 8 or 10, etc. If hardware is unchanging, softwre must know to

                      L Offline
                      L Offline
                      Lost User
                      wrote on last edited by
                      #10

                      regerteast wrote:

                      Ths same sofotawre can run on a motherboard whether it is Linx, Windows Vista, 7, 8 or 10, etc. If hardware is unchanging, softwre must know to interact.

                      The software does not care about the details of the motherboard. All non-standard hardware comes with software that knows how to talk to that hardware, aptly called "drivers".

                      regerteast wrote:

                      ON SOFTWARE

                      Software can only process signals from hardware. It's not magic.

                      Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

                      R 1 Reply Last reply
                      0
                      • L Lost User

                        regerteast wrote:

                        Ths same sofotawre can run on a motherboard whether it is Linx, Windows Vista, 7, 8 or 10, etc. If hardware is unchanging, softwre must know to interact.

                        The software does not care about the details of the motherboard. All non-standard hardware comes with software that knows how to talk to that hardware, aptly called "drivers".

                        regerteast wrote:

                        ON SOFTWARE

                        Software can only process signals from hardware. It's not magic.

                        Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

                        R Offline
                        R Offline
                        regerteast
                        wrote on last edited by
                        #11

                        Eddy Vluggen wrote:

                        The software does not care about the details of the motherboard. All non-standard hardware comes with software that knows how to talk to that hardware, aptly called "drivers".

                        But even on completly standard hardware I can widnows view the temperature of CPU, etc. How is the code to see it?

                        OriginalGriffO L 2 Replies Last reply
                        0
                        • R regerteast

                          Eddy Vluggen wrote:

                          The software does not care about the details of the motherboard. All non-standard hardware comes with software that knows how to talk to that hardware, aptly called "drivers".

                          But even on completly standard hardware I can widnows view the temperature of CPU, etc. How is the code to see it?

                          OriginalGriffO Offline
                          OriginalGriffO Offline
                          OriginalGriff
                          wrote on last edited by
                          #12

                          There is no such thing as "completely standard hardware" in the PC world: all PC's are assembled using a huge number of possible components. Your example is spectacularly wrong: there are Intel and AMD versions of the "basic" processor, each of which has a large number of different processors in it's range. And to read the processor temperature is different in each family! So the OS has a API which works out which processor it is, and reads the temperature appropriately - but it looks like a simple WMI request to your application (most of the time, sometimes the motherboard design makes it unavailable) because the OS "hides" the hardware from your application. That is part of what drivers are for: to interface between the hardware (or a virtualisation of the hardware - don't ask, just don't) and the OS so that the hardware maker can communicate in a way that the OS can understand, and interpret for the applications. It's a bit like your car: it has a fuel gauge, but you have no idea how that gauge actually works or how many litres of fuel it is showing - and you don't need to know as long as you can glance at the dashboard and see you have 1/3 tank left.

                          Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                          "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                          R 1 Reply Last reply
                          0
                          • R regerteast

                            Eddy Vluggen wrote:

                            The software does not care about the details of the motherboard. All non-standard hardware comes with software that knows how to talk to that hardware, aptly called "drivers".

                            But even on completly standard hardware I can widnows view the temperature of CPU, etc. How is the code to see it?

                            L Offline
                            L Offline
                            Lost User
                            wrote on last edited by
                            #13

                            regerteast wrote:

                            But even on completly standard hardware I can widnows view the temperature of CPU, etc.

                            Completely standard hardware does not have to include the sensor. If it is, it will be conforming to a standard. If Windows supports the sensor, then you can query it using the Sensor API introduced with Win7.

                            regerteast wrote:

                            How is the code to see it?

                            Sensor API (Windows)[^]

                            Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

                            R 1 Reply Last reply
                            0
                            • L Lost User

                              regerteast wrote:

                              But even on completly standard hardware I can widnows view the temperature of CPU, etc.

                              Completely standard hardware does not have to include the sensor. If it is, it will be conforming to a standard. If Windows supports the sensor, then you can query it using the Sensor API introduced with Win7.

                              regerteast wrote:

                              How is the code to see it?

                              Sensor API (Windows)[^]

                              Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^][](X-Clacks-Overhead: GNU Terry Pratchett)

                              R Offline
                              R Offline
                              regerteast
                              wrote on last edited by
                              #14

                              Thanks

                              L 1 Reply Last reply
                              0
                              • OriginalGriffO OriginalGriff

                                There is no such thing as "completely standard hardware" in the PC world: all PC's are assembled using a huge number of possible components. Your example is spectacularly wrong: there are Intel and AMD versions of the "basic" processor, each of which has a large number of different processors in it's range. And to read the processor temperature is different in each family! So the OS has a API which works out which processor it is, and reads the temperature appropriately - but it looks like a simple WMI request to your application (most of the time, sometimes the motherboard design makes it unavailable) because the OS "hides" the hardware from your application. That is part of what drivers are for: to interface between the hardware (or a virtualisation of the hardware - don't ask, just don't) and the OS so that the hardware maker can communicate in a way that the OS can understand, and interpret for the applications. It's a bit like your car: it has a fuel gauge, but you have no idea how that gauge actually works or how many litres of fuel it is showing - and you don't need to know as long as you can glance at the dashboard and see you have 1/3 tank left.

                                Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                                R Offline
                                R Offline
                                regerteast
                                wrote on last edited by
                                #15

                                OriginalGriff wrote:

                                So the OS has a API which works out which processor it is, and reads the temperature appropriately - but it looks like a simple WMI request to your application (most of the time, sometimes the motherboard design makes it unavailable) because the OS "hides" the hardware from your application. That is part of what drivers are for: to interface between the hardware (or a virtualisation of the hardware - don't ask, just don't) and the OS

                                So software if sits on top of the OS enabled through drivers and underlying to access but all is encapsulated in the OS so to software it is the same so one code to examine physical component of the motherboard the same regardless of individual hardware so to read temperature of component onw libary is good

                                OriginalGriffO 1 Reply Last reply
                                0
                                • R regerteast

                                  OriginalGriff wrote:

                                  So the OS has a API which works out which processor it is, and reads the temperature appropriately - but it looks like a simple WMI request to your application (most of the time, sometimes the motherboard design makes it unavailable) because the OS "hides" the hardware from your application. That is part of what drivers are for: to interface between the hardware (or a virtualisation of the hardware - don't ask, just don't) and the OS

                                  So software if sits on top of the OS enabled through drivers and underlying to access but all is encapsulated in the OS so to software it is the same so one code to examine physical component of the motherboard the same regardless of individual hardware so to read temperature of component onw libary is good

                                  OriginalGriffO Offline
                                  OriginalGriffO Offline
                                  OriginalGriff
                                  wrote on last edited by
                                  #16

                                  That's the whole idea - the application doesn't get to look at the hardware, any more than you have to physically look at the sensor in your fuel tank! The OS and the drivers each provide a layer of abstraction that prevent your app getting anywhere near it.

                                  Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                                  "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                                  "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                                  1 Reply Last reply
                                  0
                                  • R regerteast

                                    Thanks

                                    L Offline
                                    L Offline
                                    Lost User
                                    wrote on last edited by
                                    #17

                                    You're welcome :)

                                    1 Reply Last reply
                                    0
                                    Reply
                                    • Reply as topic
                                    Log in to reply
                                    • Oldest to Newest
                                    • Newest to Oldest
                                    • Most Votes


                                    • Login

                                    • Don't have an account? Register

                                    • Login or register to search.
                                    • First post
                                      Last post
                                    0
                                    • Categories
                                    • Recent
                                    • Tags
                                    • Popular
                                    • World
                                    • Users
                                    • Groups