Analog sensitivity trigger for raw non-ratiometric

Supporting Visual Studio on Windows
spider
Phidgeteer!
Posts: 87
Joined: Sun Feb 03, 2008 2:23 pm

Analog sensitivity trigger for raw non-ratiometric

Postby spider » Thu Nov 05, 2009 10:45 am

I am confused as to the meaning of the sensitivity for raw data in non-ratiometric mode. Does it even apply?

User avatar
Patrick
Lead Developer
Posts: 3078
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Analog sensitivity trigger for raw non-ratiometric

Postby Patrick » Thu Nov 05, 2009 10:47 am

Sensitivity affects the event rate, it has nothing to do with the actual data.

-Patrick

spider
Phidgeteer!
Posts: 87
Joined: Sun Feb 03, 2008 2:23 pm

Re: Analog sensitivity trigger for raw non-ratiometric

Postby spider » Thu Nov 05, 2009 11:06 am

This is in the 8/8/8 manual.

OnSensorChange(int SensorIndex, int SensorValue), [event]

An event that is issued when the returned value from a sensor (Analog Input) varies by more than the
[b]SensorChangeTrigger[/b] property.

I don't seem to be able to find SensorChangeTrigger as a property. Does this control the voltage change sensitivity. Please advise me on how to control the number of events based on changes in the voltage level if possible.

User avatar
Patrick
Lead Developer
Posts: 3078
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Analog sensitivity trigger for raw non-ratiometric

Postby Patrick » Thu Nov 05, 2009 11:46 am

sensitivity in the is the same as changeTrigger, in .NET

-Patrick

spider
Phidgeteer!
Posts: 87
Joined: Sun Feb 03, 2008 2:23 pm

Re: Analog sensitivity trigger for raw non-ratiometric

Postby spider » Thu Nov 05, 2009 12:14 pm

The docs say sensitivity is 0-1000 based. Does this mean that a sensitivity of 10 means a raw sensor change of approx 40 triggers an event?

User avatar
Patrick
Lead Developer
Posts: 3078
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Analog sensitivity trigger for raw non-ratiometric

Postby Patrick » Thu Nov 05, 2009 2:56 pm

Yes, sensitivity is based on the regular 0-1000 sensor value - because this is the value passed in the event handler. RawSensor value is a 0-4095 (12-bit) value from the ADC itself.

-Patrick

spider
Phidgeteer!
Posts: 87
Joined: Sun Feb 03, 2008 2:23 pm

Re: Analog sensitivity trigger for raw non-ratiometric

Postby spider » Thu Nov 05, 2009 3:40 pm

Many thanks Patrick for your help


Return to “VB .NET”

Who is online

Users browsing this forum: No registered users and 1 guest