CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: C++ Recieve Sensor Signal

  1. #1
    Join Date
    Jul 2009
    Posts
    34

    C++ Recieve Sensor Signal

    I have a sensor that is connected to my PC and send On Off (like a switch) How do i read from it?

  2. #2
    Lindley is offline Elite Member Power Poster
    Join Date
    Oct 2007
    Location
    Seattle, WA
    Posts
    10,895

    Re: C++ Recieve Sensor Signal

    You'll need the driver for the sensor, or at least a library which implements the protocol the sensor uses.

    Failing that, you'll need to write the low-level code yourself, which can be quite a challenge.

  3. #3
    Join Date
    May 2007
    Location
    Scotland
    Posts
    1,164

    Re: C++ Recieve Sensor Signal

    That's like me saying to you, I have a car, where is the fuse box, and what fuse to I change to make the lights work again?

    I think you would find that hard to answer. The correct answer for you to give would be "look at the manual, it will show you where the fuse box is, and which fuse to change for the lights".

    The point I am trying to make, is that saying "I have a sensor" is too ambiguous. Read the API documentation for the sensor - it should tell you how to access the data. Most sensors have differing API's.

  4. #4
    Join Date
    Jul 2009
    Posts
    34

    Re: C++ Recieve Sensor Signal

    Thank you, i dont have the sensor yet i just wanted to know the basic idea..
    i will wait for the sensor to arrive

  5. #5
    Join Date
    May 2007
    Location
    Scotland
    Posts
    1,164

    Re: C++ Recieve Sensor Signal

    It should come with a manual

    Out of curiousity, what kind of sensor is it, and what are you planning to do with it?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)