Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net & .Net Compact Framework
 QCChart2D and QCChart2D CF (VB and C#)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  


10 Posts

Posted - 09 Aug 2005 :  16:24:53  Show Profile  Reply with Quote
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.


1563 Posts

Posted - 09 Aug 2005 :  16:54:11  Show Profile  Reply with Quote
You are still posting in the wrong forum. Questions about routines in the QCRTGraph for .Net software below in the Real-Time Graphics for .Net forum.

These seems pretty basic so I'm not sure I am missing something.
Sounds like you need nothing more than ubiquitous mx + b conversion.

You would take the raw A/D count and convert it to a value 0-100%. Use the converted value to update the RTNumericPanelMeter. If your A/D counts of 2048-4095 represents 0-100, then the conversion is

Converted_Value = 100.0 * (( (double)Raw_A/D_value - 2048.0)/2047.0)

If you want 0.0 to 1.0 displayed then drop the "100.0 *" in the equation above.

Update the RTProcessVar dataset that you are using for with the Converted_Value, rather than the converter counts.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07