Host sensors HAL Component

More
22 Mar 2011 04:35 - 22 Mar 2011 04:36 #7992 by dsigma
So I wrote a HAL component that I use to extract all the motherboard sensor readings and make them available as HAL pins, and in turn display them in my pyVCP. Attached is a python component and JPG snapshot of it's output (on my computer). I thought this might be handy to someone else out there. It will automatically detect most motherboard sensor readings, parse them, and make them available in the HAL...

Hope someone else finds this useful...

Regards,
-dave

File Attachment:

File Name: sensors.txt
File Size:4 KB
Attachments:
Last edit: 22 Mar 2011 04:36 by dsigma.

Please Log in or Create an account to join the conversation.

More
22 Mar 2011 04:57 #7993 by cmorley
Thats pretty cool!
You should add it here:
wiki.linuxcnc.org/cgi-bin/emcinfo.pl?ContributedComponents

Please Log in or Create an account to join the conversation.

More
22 Mar 2011 06:52 #7994 by dsigma
Thanks... good idea... I added a sub-section to the user components section on the wiki...

-d

Please Log in or Create an account to join the conversation.

More
07 Mar 2012 03:36 #18434 by RayJr
Replied by RayJr on topic Re:Host sensors HAL Component
Nice panel.. Would you be willing to post your xml file?


Ray M.

"No problem can be solved from the same level of consciousness that created it"

Albert Einstein

Please Log in or Create an account to join the conversation.

More
08 Mar 2012 18:58 - 08 Mar 2012 18:59 #18460 by dsigma
Sure... You'll find the sensors related parts at the very bottom of the attached XML file.

Note: each computer has different types of sensors, and different things will show up in the HAL depending on what the python script is able to find. You'll need to go into EMC and look at what it finds and how it names the pins, then reference those in your pyvcp.xml

Hope this helps...

Best Regards
-Dave

File Attachment:

File Name: vcp.xml
File Size:15 KB
Attachments:
Last edit: 08 Mar 2012 18:59 by dsigma.

Please Log in or Create an account to join the conversation.

More
12 Mar 2012 23:34 #18556 by RayJr
Replied by RayJr on topic Re:Host sensors HAL Component
Thank you Dave.
I am not good at writing xml. I find it much easier to copy, paste, then modify to suit.

Now that I think I have everything set up correctly, I find that my MoBo doesn't have any sensors to speak of. I verified this with a gnome utility.

Thank you again!


Ray

"No problem can be solved from the same level of consciousness that created it"

Albert Einstein

Please Log in or Create an account to join the conversation.

Time to create page: 0.390 seconds
Powered by Kunena Forum