Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Tools for Microsoft .Net
 Real-Time Graphics Tools for .Net (VB and C#)
 RTNumericPanelMeter

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
jack1974 Posted - 09 Aug 2005 : 23:16:35
Sorry about posting in the wrong forum last time. I ask this question earlier and I understand how you got the conversion if you are trying to scale the A/D count when the numbers are 0 to whatever, but how do you do it when you want the min range of the Raw data to equal -3 for example and the max range of the raw data to equal +3 and the numbers in between to follow suit.


"Using C#
I am reading from a data collector that sends a signal of values between 2048 and 4095 A/D counts. I have the bar graph scaled correctly, so that it reads how I want it to read(example 0% to 100%). The problem that i am having is how to get what i have it scale to, to be displayed on the RTNumericPanelMeter instead of it displaying the A/D counts"
1   L A T E S T    R E P L I E S    (Newest First)
quinncurtis Posted - 10 Aug 2005 : 08:50:56
Converted_Value = min_phys + (max_phys - min_phys) * (value_A/D / (max_A/D - min_A/D))

If the raw A/D range of 0-4095 maps into physical coordinate range of -3 to +3, the conversion equation is

Converted_Value = -3 + 6 * ( Raw_A/D_value/4095.0)

If you still have questions regarding these types of conversions you need to contact your A/D board manufacturer for additional help.

Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07