3 Replies - 1494 Views - Last Post: 17 December 2010 - 04:07 AM Rate Topic: -----

#1 nil1401  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 27-November 10

Application for oscilloscope in C#

Posted 16 December 2010 - 10:34 PM

Hello Friends,
I am developing a application for Oscilloscope in C# .net and facing some problem to get values of voltage parameters like Vrms, Vpp, Vbase, Vtop etc.
use zedgraph for plotting waves.
want to get all the parameters of oscilloscope and perform some arithmetic operations on that parameter.
I know formulas for parameters but not able to get average values of waves.
GUI is designe in .net and flash.
My code is like this...

Spoiler


MOD EDIT: Spoiler'd wall of code

This post has been edited by JackOfAllTrades: 17 December 2010 - 06:25 AM


Is This A Good Question/Topic? 0
  • +

Replies To: Application for oscilloscope in C#

#2 Zdrenka  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 7
  • View blog
  • Posts: 116
  • Joined: 24-November 09

Re: Application for oscilloscope in C#

Posted 17 December 2010 - 01:19 AM

have you tried using 'list.sum' to add up all the values and then devide them by list.count? taht should give you the average in the list.
Was This Post Helpful? 0
  • +
  • -

#3 Rico Diesel  Icon User is offline

  • D.I.C Head

Reputation: 62
  • View blog
  • Posts: 122
  • Joined: 06-May 10

Re: Application for oscilloscope in C#

Posted 17 December 2010 - 03:31 AM

Hoping this doesn't sound too rude, but don't post 2000 lines of code... most of us here don't have the time (or the will) to read all that and find the mentioned block of code. Just post your code which gives you difficulties and some info on how you use it and what it's supposed to do.

Check this link for the average of a sine wave.

Hope this helps,

Rico
Was This Post Helpful? 0
  • +
  • -

#4 nil1401  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 27-November 10

Re: Application for oscilloscope in C#

Posted 17 December 2010 - 04:07 AM

View PostZdrenka, on 17 December 2010 - 12:19 AM, said:

have you tried using 'list.sum' to add up all the values and then devide them by list.count? taht should give you the average in the list.

thanks........
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1