Adding a new sensor
Navigates to RoboticsConnection.com Home RoboticsConnection.com HomePage
RoboticsConnection User Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Adding a new sensor Expand / Collapse
Author
Message
Posted Wednesday, December 30, 2009 7:12 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: Sunday, February 07, 2010 11:10 PM
Posts: 8, Visits: 24
I've got a simple I2C IR sensor and want to implement a sensor class similar to the line follower. However, it's not clear to me how to do this from the documentation. I'd rather inherit from the base classes in the library rather than creating my own simple solution of polling the sensor.

Also, is the .NET library source code available? I can't find it but I thought it was open source. Right now, because my C# isn't that good I'd use it to figure out things like adding new sensors.
Post #1482
Posted Wednesday, December 30, 2009 5:42 PM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Friday, April 22, 2011 6:18 PM
Posts: 153, Visits: 547
Hello FazLogic,
Its cool you are contributing to the Serializer code.
There is I2c functionality already in the library. Also
take a look in the Serializer C++ Library forum for the sources.

Don Lewis


Don Lewis
Post #1483
Posted Thursday, December 31, 2009 6:59 AM


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Administrators
Last Login: Monday, October 31, 2011 9:18 PM
Posts: 640, Visits: 819
Hi FazLogic,

I haven't opened up the Serializer .NET Lib yet for one reason...Can't decide on a license!   But, I will soon.  Right now I'm revamping the entire website, and getting a new product ready for launch in January.

As for an i2c sensor, you can, like Don mentioned, simply use the I2CDevice class to query it:

    http://www.roboticsconnection.com/multimedia/libraries/MSDNDocumentation/_23n15o6qx.htm

Under that topic, you will see the example app too where it's used to query several i2c devices:

    http://www.roboticsconnection.com/multimedia/libraries/MSDNDocumentation/_23n15r2ti.htm

 Will this work for you? You could derive from this class, and implement your own interface too.

Best Regards!

Jason Summerour
President,
Summerour Robotics Corporation
www.roboticsconnection.com

Post #1484
Posted Friday, January 01, 2010 11:01 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: Sunday, February 07, 2010 11:10 PM
Posts: 8, Visits: 24
Thanks guys.

Just using the generic I2C class is probably the easiest way to go since there isn't much to the I2C-IT (and therefore, probably not worth implementing it's own class).

I gather I should query all my sensors in the same loop as the one serializer.PumpEvents() is in.



Post #1489
Posted Friday, January 01, 2010 7:34 PM


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Administrators
Last Login: Monday, October 31, 2011 9:18 PM
Posts: 640, Visits: 819
Nope, Actually, w/ the I2Device, there aren't any event's to wait on, so you're not tied to the PumpEvents() call for that object.   You can communicate w/ the device as fast as you desire.

Best Regards!

Jason Summerour
President,
Summerour Robotics Corporation
www.roboticsconnection.com

Post #1492
Posted Tuesday, October 11, 2011 2:40 AM


Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: Tuesday, October 11, 2011 2:23 AM
Posts: 1, Visits: 2
Serializer C++ Library is helpful but does that code work for .NET?

ovulation tests
Post #2151
Posted Thursday, October 20, 2011 1:14 AM


Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: Thursday, October 20, 2011 1:09 AM
Posts: 1, Visits: 4
I have a small hierarchy of objects.I need to both serialize the object,then deserialize it based on what type it is.Is there an easy way to do this in C++ (as there is in Java)?

Are there any C++ serialization online code samples or tutorials?
Help will be appreciated..


Trucks for Hire
Post #2154
Posted Thursday, November 03, 2011 4:51 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: Thursday, November 03, 2011 4:44 AM
Posts: 1, Visits: 2
Adding new sensors in PRTG Traffic Grapher is easy.The Add Sensor Wizard will guide through the setup of new sensors for monitoring with PRTG Traffic Grapher.

Managed Hosting
Post #2167
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: jsummerour

Permissions Expand / Collapse

All times are GMT -8:00, Time now is 4:50pm

Powered By InstantForum.NET v4.1.4 © 2012
Execution: 0.141. 9 queries. Compression Disabled.