Meadville Space Center
Welcome, Guest. Please login or register.
September 24, 2020, 01:09:06 AM

Login with username, password and session length
Search:     Advanced search
Gemini 060615 released!
25068 Posts in 2094 Topics by 2266 Members
Latest Member: twa517
* Home Help Search Login Register
+  Meadville Space Center
|-+  Project Apollo - NASSP
| |-+  Project Apollo - NASSP Development
| | |-+  Programming (Moderators: movieman, dseagrav, Swatch, lassombra)
| | | |-+  Transducers
« previous next »
Pages: [1] Print
Author Topic: Transducers  (Read 1384 times)
Hero Member
Posts: 1710

View Profile
« on: December 07, 2007, 05:49:22 PM »

I've added a generic Transducer class to the PanelSDK, since we didn't seem to have anything like that so far. Basically you derive a class from it, add a GetValue() function which can return any arbitrary value, and specify a range of input and output values with a linear response. So, for example, if you want to convert a temperature of 0..150C to 0..5V you'd set 0 to 150 as input values, 0 to 5 as output values and have GetValue() return the temperature.

That can then be wired into the electrical system for things like the system test meter or other gauges.
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.10 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!