Set the light/siren device on in C#
-
Hi All I have a light/siren device that is plugged into my computer. I also have a program running on my machine. If there is any problem or error on the program, this light/siren device should be automatically set on, the light comes on and the siren makes the siren noise, this is done to alert the administrator of a problem. So I don't know if there is anyone here who has done something like that. I just need pointers to the right direction on how set this light/siren on programatically in C#. Your assistance will be greatly appreciated. Thank You
MP
-
Hi All I have a light/siren device that is plugged into my computer. I also have a program running on my machine. If there is any problem or error on the program, this light/siren device should be automatically set on, the light comes on and the siren makes the siren noise, this is done to alert the administrator of a problem. So I don't know if there is anyone here who has done something like that. I just need pointers to the right direction on how set this light/siren on programatically in C#. Your assistance will be greatly appreciated. Thank You
MP
I assume there is some form of SDK with this device. If so, you'll need to use that.
Deja View - the feeling that you've seen this post before.
-
Hi All I have a light/siren device that is plugged into my computer. I also have a program running on my machine. If there is any problem or error on the program, this light/siren device should be automatically set on, the light comes on and the siren makes the siren noise, this is done to alert the administrator of a problem. So I don't know if there is anyone here who has done something like that. I just need pointers to the right direction on how set this light/siren on programatically in C#. Your assistance will be greatly appreciated. Thank You
MP
First of all, You said:
I have a light/siren device that is plugged into my computer.
How is it connected to the computer? Is it RS-232, Parallel Port, USB etc... You should know the interface between your equipment and the PC. - If it is RS-232, probably there are serial commands which makes the the light ON/OFF. .NET framework includes serial port libraries so you can easily send and receive commands. - If it is parallel port, you should set/reset necessary bits to make light ON/OFF. There is a popular, free library for parallel port :inpout32.dll
- If it is something else, you should be given some library to control the light. You should just call it from your application. Good luck zafer -
Hi All I have a light/siren device that is plugged into my computer. I also have a program running on my machine. If there is any problem or error on the program, this light/siren device should be automatically set on, the light comes on and the siren makes the siren noise, this is done to alert the administrator of a problem. So I don't know if there is anyone here who has done something like that. I just need pointers to the right direction on how set this light/siren on programatically in C#. Your assistance will be greatly appreciated. Thank You
MP
khuzwayom wrote:
If there is any problem or error on the program, this light/siren device should be automatically set on, the light comes on and the siren makes the siren noise, this is done to alert the administrator of a problem.
This can only end badly, seeing as you are a computer programmer dealing with visual studio :wtf:
Regards, Thomas Stockwell Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Visit my Blog
-
khuzwayom wrote:
If there is any problem or error on the program, this light/siren device should be automatically set on, the light comes on and the siren makes the siren noise, this is done to alert the administrator of a problem.
This can only end badly, seeing as you are a computer programmer dealing with visual studio :wtf:
Regards, Thomas Stockwell Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Visit my Blog
-
khuzwayom wrote:
If there is any problem or error on the program, this light/siren device should be automatically set on, the light comes on and the siren makes the siren noise, this is done to alert the administrator of a problem.
This can only end badly, seeing as you are a computer programmer dealing with visual studio :wtf:
Regards, Thomas Stockwell Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning. Visit my Blog
and I thought I was having a bad day. I needed a good chuckle this morning. I can just see it, somewhere in the depths of a South African metropolis there is a guy sitting on a high stool in a server room, wrapped in a fake fur coat peering out at a sea of red lights just waiting for something to happen. And in a alternative universe A room with 100 code monkeys all hammering away, suddenly a red light flashes - oh no a typo
Never underestimate the power of human stupidity RAH
-
Hi All I have a light/siren device that is plugged into my computer. I also have a program running on my machine. If there is any problem or error on the program, this light/siren device should be automatically set on, the light comes on and the siren makes the siren noise, this is done to alert the administrator of a problem. So I don't know if there is anyone here who has done something like that. I just need pointers to the right direction on how set this light/siren on programatically in C#. Your assistance will be greatly appreciated. Thank You
MP
-
I think this is called X10, Google for some info. IIRC MS had a start kit for something like this.
xacc.ide - now with TabsToSpaces support
IronScheme - 1.0 alpha 4a out now (29 May 2008)