How to get motherboard sensor readings in C# - c#

I'm trying to get any temp/fanspeed/accelerometer readings from my motherboard in C#
I have done a lot of research and I know its not easy, but it has to be possible to get something I can work with.
I have tried using motherboardmonitor.net but I can't figure out how to incorporate the dll into my program.
I have tried "using motherboardmonitor" with the motherboardmonitor.DLL i downloaded. But there is absolutely no documentation on how to use it. Im just fumbling around with it at the moment to no avail.
And I have tried using the sensor.dll but I dont think i have enough knowledge to go any further.

Here's a working example of what you are trying to achieve. Hope it's helpful.
http://forums.whirlpool.net.au/archive/1723879
It might not be a full solution, but it should get you started in the right direction.
The following is usefull too:
http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/34f0fa55-567b-4a98-a29d-b92a5c9b5f8f/
CPU temperature monitoring

Related

control a wpf from matlab by using a c# dll

i would like to know weather it is possible to control some wpf application written in c# by using a c# dll out of matlab.
what i need is the possibility to start the MainWindow and i have to be able
to get some values into my controller.
What i found so far was things working from c# that use matlab, but the other way round seems not to be that much populatet, as i found nothing i could really use.
I allready tried to import a .net Library, but i dont seem to be able to open a external class from my dll.
So if you could help me on this it would be great.
Regards,
justSomeone
Ok, i did just find out, that i can also import my .exe file into Matlab instead of only dlls .
I am using the function NET.addAssebly('Path.exe') to do this.
Path.exe is just a symbol that it is directed to the place of the .exe file.
I achieved to be able to use my methods as i wanted i do have my instance of the class. So i am happy now. :D
But if you have other solutions which are more handy, dont hesitate to post them. There might still be interesting things to discover :)
Regards,
justSomeone

detect audio tones near real time in c#

I try to detect some audio signals(pure sine) in near real time. I know that I will get some latency.
In the start I try to detect some tones of 10Khz in a duration of 75ms. That is achieved by a Goertzel filter. What is the prefered technique for that issue? I thought of making a little buffer that will always be detected by the Goertzel, but this sounds bad because I don't know when the the signal starts. Can you give me some help or idea ? Thanks
You'll have to do something like I am trying to do here (please do contact me if you fix my inaccuracy issues though) NAudio WaspiLoopback Goertzel
You can also take a look at: Decoding DTMF from a WAV file which have helped me a lot in getting something that can barely work, but it's a pretty good start.

GraphEditPlus VideoInputDevices are missing

I am completly new with DirectShow and filters. I was reading some articles, tried some examples with C# and I've used libraries like AForge or DirectShow.NET. I've excluded AForge from my project because of huge latency and bad performance in my project. I've found good example where DirectShow.NET was used and after some refactoring performance of the code was fair enought so I want to try with that.
I couldn't make ISambleGrabber to work so now I'm trying to use GraphEditPlus, connect the graph and generate C# code as example for future use, but...
I cannot find VideoInputDevices filter there, I need to start Previewing and Capturing from webcam, but I cannot find it on the list. It is shown on VLC and is working with AForge and DirectShow.NET.
Mayebe I'm blind or I'm missing something? Any hints?
Yup, I'm blind - it's named here as Video Capture Sources which I haven't seen before.

How does Gmap.net cache works?

I´m using the GMAP.net library in a project and I found it was a powerful tool. It´s cache facility made it a real profit to my project. Anyway, I need if someone can tell me a little bit of how that cache works. As far as I tested it, I can see that it pre-allocates space (in my case about 200 mb on SQLITE file), so I started doing some test seeing how it worked, and it turns out it works really well, but in some cases I have been viewing maps that haven´t been cached. I don´t know if I have to spent some time with the position on the map so It can be cached or something like that. Does the tile cache file size increases with the time?, or it just keeps the prealocated size?.
Thanks in advance for any possible answer.
I've been doing some research on this same topic. I learned that the application by default has a gmdb of 256mb. This doesnt mean that there is 256mb of cached map. It just creates room for the cache data. Look at this post by Radio man for more clarity. Hope this helps. If you find more info post if for others because there is a lot of missing info on this topic.
http://greatmaps.codeplex.com/discussions/274628

Reading twitter feed using api 1.1 from c#

Ok. I thought I would fix this rather easy, but I'm not getting anything to work for some reason. What I want to do is simple; I want to create a web part displaying the latest tweets from a specific user. I'm coding C#.
I found a great post here but it's using php.
Can anyone help me to perform this simple task?
You can find alot examples over internet
Web:
http://www.microsoft.com/web/post/learning-the-basics-of-using-the-twitter-api-in-aspnet-web-pages-with-razor-syntax
Console:
http://www.d80.co.uk/post/2011/02/13/A-Simple-Twitter-Client-in-C-with-OAUTH-using-TweetSharp.aspx
:)

Categories