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. Set the light/siren device on in C#

Set the light/siren device on in C#

Scheduled Pinned Locked Moved C#
helpcsharp
8 Posts 7 Posters 0 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.
  • K Offline
    K Offline
    khuzwayom
    wrote on last edited by
    #1

    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

    P Z T L 4 Replies Last reply
    0
    • K khuzwayom

      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

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

      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.

      My blog | My articles

      1 Reply Last reply
      0
      • K khuzwayom

        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

        Z Offline
        Z Offline
        zafersavas
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        • K khuzwayom

          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

          T Offline
          T Offline
          Thomas Stockwell
          wrote on last edited by
          #4

          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

          D M 2 Replies Last reply
          0
          • T Thomas Stockwell

            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

            D Offline
            D Offline
            DaveyM69
            wrote on last edited by
            #5

            :laugh:

            Dave
            BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
            Expect everything to be hard and then enjoy the things that come easy. (code-frog)

            1 Reply Last reply
            0
            • T Thomas Stockwell

              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

              M Offline
              M Offline
              Mycroft Holmes
              wrote on last edited by
              #6

              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

              1 Reply Last reply
              0
              • K khuzwayom

                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

                L Offline
                L Offline
                leppie
                wrote on last edited by
                #7

                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)

                K 1 Reply Last reply
                0
                • L leppie

                  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)

                  K Offline
                  K Offline
                  khuzwayom
                  wrote on last edited by
                  #8

                  Hi All. I just want to say thank you to everyone who has contributed in helping me try to find the solution so far. I greatly appreciate your assistance. Thank You

                  MP

                  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