To find the mean of a waveform

Hi Everyone,
I'm facing problem in finding the mean of a waveform. I'm acquiring two waveforms voltage & current, multiplying those two waveforms & want to find the mean of that resulting waveform. the answer what i am getting is much larger than what i get when i multiply two waveforms in Oscilloscope & calculate the mean from the scope itself. I'm unable to understand why there is such a big difference in mean values.
Thanks in advance

With issues such as this it is best to look at a small sample set of data and compare the two results. Could you post maybe a text file with your data and the results from your scope so I(we) could test it in LV and see what the issue is?
-Brett

Similar Messages

  • Can't find the meaning of PRC_STAT_H value in BAPI_SALESORDER_GetStatus

    Hi All,
    Do have any idea where can i find the definition of the values for PRC_STAT_H in BAPI_SALESORDER_GetStatus? When I used the BAPI_SALESORDER_GetStatus it returned the PRC_STAT_H value of A but how do i know what "A" stands for or what are possible values i'll be getting in PRC_STAT_H?
    Thanks in advance.
    Regards,
    myra

    You can find documentation using transaction BAPI
    Field
    PRC_STAT_H
    Overall processing status of document
    Definition
    The processing status of the entire sales document.
    Use
    The system determines the status of the entire sales document by taking into account the status of all header-related information and the status of all individual items. The status message tells you whether processing of the sales document is open, in progress, or complete.

  • How should I correct my code to find the mean, median & mode from an array?

    Hello everyone,
    I have been learning Java for about a month now and am stuck with the following code. There are no highlighted errors on my program when typing it into Eclipse but I get an error message when I try to run my program.
    Here is the code:
    import java.util.Random;
    * <dl>
    * <dt>Purpose:
    * <dd>Example program that randomly generates, collates and outputs numbers.
    * <dt>Description:
    * <dd>This program generates 10000 random numbers between 0 and 99 inclusive.
    * It also keeps count of how many times each number is generated and prints these
    * counts out to the screen in the format of mean, median and mode.
    * </dl> 
    * @author  Woodie Woodpeck
    * @version $Date: 2008/10/27 14:44:00 $
    public class Exercise3Point08
         public static void main(String[] args)
                   int[] counts=new int [100];
                   for(int i=0;i<100;i++)
                        counts=0;
                   Random r=new Random();
                   for(int n=0;n<10000;n++)
                        counts[r.nextInt()%100]++;
                   double sum=0.0;
                   int maxCnt=0;
                   int mode = 0;
                   int runningCount=0;
                   int median = 0;
                   for (int i=0;i<100;i++)
                        sum+=(i*counts[i]);
                        if (counts[i]>maxCnt)
                             mode=i;
                             maxCnt=counts[i];
                        if (runningCount<5000&&(runningCount+counts[i])>=5000)
                             median=i;
                        runningCount+=counts[i];
                   System.out.println("Mean =" + (sum/10000));
                   System.out.println("Median =" + median);
                   System.out.println("Mode =" + mode);
    Here is my error message:Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
         at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    And that's it. Hmmmm. Strange. I hope someone can help.
    Many Thanks
    Wood                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi Edward,
    I moved the file from my college computer to my home computer using a USB stick and changed the workspace path on my Eclipse software to match the files that I transferred. I also cleared out a lot of random code that I had lying around my hard-drive before trying to use the code that I pasted above.
    From reading the output I guess there is a problem with the class. Do you think I might have transferred the file from one computer to another incorrectly? Do you know how I can clean and rebuild a project? Eclipse seems quite daunting and awfully complicated for a beginner!
    Thanks
    Wood

  • Finding the mean of a series of complex numbes to generate an avergage FFT spectrum

    Hi All
    I have a a 2d array of complex numbers. In fact I have a 10 x 133210 array that represents the complex result of a series of ffts taken from the time series of 10 mics.
    For example
    Frequency ::::::                 1Hz     2 Hz   3Hz   4Hz   5Hz      ad infinitum(!)
    Amplitude for Mic 1             2+2i    2+2i   2+2i  7+2i  2+2i
    Amplitude for Mic 2             3+2i    5+2i   2+2i  2+2i  2+2i
    Amplitude for Mic 3             4+2i    2+2i   2+2i  8+2i  2+2i
    up to Mic 10
    Now i want to be able to average these spectrums so that I can regenerate the time series that would be found (or heard) if the listener was to perceive all 10 mics timeseries at the ear without the phase cancellation effects of the time domain.
    So I take all 10 mics complex FFTs and I average across every column. I do this by summing all ten mics complex bin values and diving by 10 + 0i.
    The result I get is very close to what I would expect in the frequency domain. I would imagine that if i was to take all ten signals with the same time series what is rengenerated in the frequency and time domain would be the same...
    However the iFFT returns NaN
    There must be a problem with my averaging process - can anyone shed any light?
    Thanks
    Greg

    Greg,
    1. The phase effects due to the spacing of the microphones is already in the data.  Unless you have a point source, it will be very difficult to sort out which components came from where.
    2. Are there any NaN values in your array of means?
    Can you post a small subset of the data (10 x 1000 rather than 10 x 133210) and your VI so we can see what is going on?
    Lynn 

  • I am measuring mV on 8 channels using 2 NI 9239's and want to find the mean of each channel

    I'm using 2 NI 9239's to capture the voltages at 8 point on a test fixture. The voltages are very small (a few mV). I want to take an average of 1k samples from each channel and use these to calculate the resistivity of the sample under test. 
    What is the easiest method to precisely measure 8 channels?

    Let's start from the beginning.  Do you know how to read 1k samples from 8 channels using a single DAQmx Task?  Once you have that, then use a FOR loop to do a mean on each channel's data.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • [EWS][FastTransfer][MS-OXCFXICS] Question about paging in the Fast Transfer Stream after exporting message and the meaning of the config in the previous section of the stream.

    Hi, all.
    First, I want to construct a fast transfer stream by programming not using the export item's stream and to import the stream to the folder by posting import request in EWS.
    So, I export the item by EWS and investigate the exporting stream's struct by reading the [MS-OXCFXICS].pdf. And I can parse each MAPI property, marker, meta-property from the stream.
    I find that the stream is made of many pages, most page's length is 0x7BC0, some are less then 0x7BC0. And in the previous section of the stream, there are some configurations. So the questions are:
    1. What is the paging rule? or What is the principle of the paging? Whether a complete propvalue/marker(ref from [MS-OXCFXICS].pdf) must be contained in a page except some binary type?
    2. Why the page's binary length is 0x7BC0? Or where is the configuation about paging length?
    3. The stream is made of the FXOpcodes and the subbuffer about the FXOpcodes, and I find the mean of the FXOpcodes:
    internal enum FxOpcodes
    None = 0,
    Config = 1,
    TransferBuffer = 2,
    IsInterfaceOk = 3,
    TellPartnerVersion = 4,
    StartMdbEventsImport = 11,
    FinishMdbEventsImport = 12,
    AddMdbEvents = 13,
    SetWatermarks = 14,
    SetReceiveFolder = 15,
    SetPerUser = 0x10,
    SetProps = 0x11
    and in the stream there are 4 part(after I parse the stream):
    A. OpCode:Config, value:0000000001000000
    B. OpCode:IsInterfaceOk, value:010000000703020000000000C00000000000004600240080
    C. OpCode:TellPartnerVersion, value:000F91838417
    D and follows is: OpCode:TransferBuffer, Count:31680
    So 
    a. What is the OpCode:Config value meaning?
    b. Some parts of The OpCode:IsInterfaceOk' value is the IID_IMessage("00020307-0000-0000-C000-000000000046"), What is other parts meaning?
    Thanks in advance for any ideas.

    Hi Haiyang,
    Your questions are not covered by the Open Specification documentation and this is documented in [MS-OXWSBTRF] — v20141018 section “1.3 Overview”.
    The upload and export data stream is an opaque format that only needs to be understood by a server implementation. The client only serves as a repository for the opaque data stream so that it can be uploaded to the server at
    a later time.
    You made good progress in interpreting the buffer using other documents. Why do you need to be able to parse the data? Please describe your project in details and I might submit a suggestion to document the layout of the data stream,
    if your project justifies it. You can send the description directly to me.
    Thanks, Vilmos

  • [EWS][FastTransfer] Question about paging in the Fast Transfer Stream after exporting message and the meaning of the config in the previous section of the stream.

    Hi, all.
    First, I want to construct a fast transfer stream by programming not using the export item's stream and to import the stream to the folder by posting import request in EWS.
    So, I export the item by EWS and investigate the exporting stream's struct by reading the [MS-OXCFXICS].pdf. And I can parse each MAPI property, marker, meta-property from the stream.
    I find that the stream is made of many pages, most page's length is 0x7BC0, some are less then 0x7BC0. And in the previous section of the stream, there are some configurations. So the questions are:
    1. What is the paging rule? or What is the principle of the paging? Whether a complete propvalue/marker(ref from [MS-OXCFXICS].pdf) must be contained in a page except some binary type?
    2. Why the page's binary length is 0x7BC0? Or where is the configuation about paging length?
    3. The stream is made of the FXOpcodes and the subbuffer about the FXOpcodes, and I find the mean of the FXOpcodes:
    internal enum FxOpcodes
    None = 0,
    Config = 1,
    TransferBuffer = 2,
    IsInterfaceOk = 3,
    TellPartnerVersion = 4,
    StartMdbEventsImport = 11,
    FinishMdbEventsImport = 12,
    AddMdbEvents = 13,
    SetWatermarks = 14,
    SetReceiveFolder = 15,
    SetPerUser = 0x10,
    SetProps = 0x11
    and in the stream there are 4 part(after I parse the stream):
    A. OpCode:Config, value:0000000001000000
    B. OpCode:IsInterfaceOk, value:010000000703020000000000C00000000000004600240080
    C. OpCode:TellPartnerVersion, value:000F91838417
    D and follows is: OpCode:TransferBuffer, Count:31680
    So 
    a. What is the OpCode:Config value meaning?
    b. Some parts of The OpCode:IsInterfaceOk' value is the IID_IMessage("00020307-0000-0000-C000-000000000046"), What is other parts meaning?
    Thanks in advance for any ideas.

    OK. Thank you.
    Today I build a stream with a paging rule as below:
    1. Keep each page's byte length is 31680.
    2. Make sure a complete property value in a page except binary type property whose value length is larger
    than 31680.
    And it can work very well when import the stream to the folder by EWS.

  • How to calculate the mean of a section of an array?

    hello
    i have an array of 26 elements.some sections of it are all zeros and some others are numbered. i want to be able to find the mean of the numbered sections and replace those values. an example 0,0,0,0,0,2,3,4,6,5,7,8,0,0,0,9,8,7,4,0,0,0.....and i want to be able to get it as in 0,0,0,0,0,5,5,5,5,5,5,5,0,0,0,7,7,7,7,0,0,0....
    i know you can do it "kinda" manually with the array subset vi. but i want to find a more correct way to do this.can anybody help me on this?
    i have attached the array with the actual numbers if it will save you 2 minutes of your time by generating another one
    cheers
    Attachments:
    array.vi ‏9 KB

    Here's an alternative solution (LV 8.0)  that uses fewer shift registers and has only one case structure. Se if it makes more sense to you.
    Notice that Dr.Ivels solution is incorrect if the array starts with a nonzero segment (e.g. 4,5,0,0,0,0,...), or ends with a nonzero segment (e.g. ...0,0,0,7,8). It would need to be tweaked a bit for correct operations under these conditions.
    Please verify correct operations, I haven't fully tested my solution either with pathological data, but it seems to work correctly in the above cases.
    Message Edited by altenbach on 02-14-2007 04:10 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    SegmentAverages.vi ‏16 KB
    SegmentAverages.png ‏18 KB

  • How to find the moving average for perticular time step for same time series

    Hello everyone,
    I am new in labview and I have one issue. I have a huge text file with the different pressure value of  different ports.
    I make the VI in which first I read the text file and identify the perticular port column. In that column there are 32768 pressure value.
    Time  Num     Port 101 Port 102 Port 103...... Port 532
    0         1
    0.001   2
    50       32768
    And this all reading takes in 50 sec and I have to split this readings in 4.5 sec... in every 4.5 sec there are 2969 values...
    Now please go throw the attched VI... i am able to find the mean value with the 12 time step of 2969 value...
    Now I want to do is, to find again the mean value of 2969 values(2970 to 5938) with time step of 12 and so on until 32768... so it happens 11 times in series...
    So can anyone modify my VI??
    Thank you,
    Solved!
    Go to Solution.
    Attachments:
    Moving average.vi ‏18 KB

    please go through the attched VI
    I made some correction in that.Now I am able to find the mean value for first 2969 rows with the overlapping time step of 12.
    It means I am able to find the mean value from 1-12,2-13,3-14 ... 2958-2969...
    but now the problem starts, I want to calculate the mean value of next 2969 rows which is 2970 to 5938 with the time step of 12...
    So please modify my VI.. I stuck with the serious problem...
    I have 32768 rows and have a partition of 2969 rows so the loop has to be repeat for 11 times.
    hope you understand the prob
    Thank you 
    Attachments:
    Moving average.vi ‏19 KB

  • Finding the average value of related structure keys

    Issue:
    I have a form structure which I need to find the value
    averages of all the *AGE keys, *MINORS keys, and *ADULTS keys.
    Here's my example form structure, after using
    structkeyarray() of coarse:
    1 RES_ROOM2_MINOR3_AGE
    2 RES_ROOM1_MINORS
    3 RES_ROOM2_MINOR1_AGE
    4 RES_ROOM1_MINOR2_AGE
    5 RES_ROOM3_MINOR1_AGE
    6 RES_ROOM2_MINORS
    7 RES_ROOM3_MINOR2_AGE
    8 RES_ROOM3_ADULTS
    9 RES_ROOM3_MINORS
    10 RES_ROOM1_ADULTS
    11 RES_ROOM2_ADULTS
    12 RES_ROOM1_MINOR1_AGE
    13 RES_ROOM2_MINOR2_AGE
    Question:
    How should I AT LEAST go about pulling out each set of keys
    so i can procede to find the mean?

    Such as...
    cfset keys = structkeylist (form)
    - cfloop index='x' list='keys'
    - - cfif x contains AGE/MINORS/ADULTS blah
    - - cfset blah
    - /cfloop
    I guess that should definitely work. Simple no less. I got
    caught up
    looking for a special function to run through the structure.
    Thanks for
    shaking my head up, and sending me on my way. ;-)
    That's the idea. If you care, you can use the collection form
    of the
    <cfloop...> tag. Eliminates the need to pull out the
    list of keys
    separately.
    <cfloop collection="#form#" item="field">
    <cfif field contains "AGE|MINORS|ADULTS|Ect">
    process
    </cfif>
    </cfloop>

  • Please Explain the meaning

    Dear Sir/Madam,
    i have passed OCA 10g in 16th Feb 2009. But certificate yet not received. But i have some doubt in terms
    1.Siebel EAI/EIM
    2. Peoplesoft HRMS Consultants
    3. ORACLE Retek/RMS consultants.
    Plz me understand as early as possible. Can i do this and How???
    regards
    manas kumar chakraborty
    manas kumar [email protected]

    user10666960 wrote:
    Dear Sir/Madam,
    i have passed OCA 10g in 16th Feb 2009. But certificate yet not received. But i have some doubt in termsCongratulations. You are now at step 1 of a long journey. Your learning is about to start.
    Plz me understand as early as possible. Can i do this and How???If you have to ask about the meaning of a term, you should not be appying for a position in that area. To accept such a position would be bad: for you (beyond your skill), for your employer (a dissapointment); for the industry (a bad name)
    To find the meaning of the term, use your search skills. EIA might be Enterprise Integration Architect. HRMS might be Human Resource Management System

  • HT1349 How do you get help from apple if you don't know where to find the serial number of my "product."  I don't know if they mean my itunes program, my iphone, my computer, which one, the number on the computer (is there one), or something in Windows or

    How are you supposed to get help from Apple if you don't know what your serial number is?  They say to input the serial number of the "product" that you are asking about.  Since my problem is how to deauthorize/authorize computers, and they are saying I have more than 5 (which I have never owned more than 5 computers in my life), I can't imagine what serial number they mean.  Does it mean your desktop computer?  If so, which one?  Do they mean your device?  LIke your iPhone, iPod or whatever?  Do they mean the software ON one of your computers and/or devices?  If so, which program, and on which computer/device?
    We have three operational computers, one does not have iTunes on it.  Since Apple is saying I have more than 5 authorized computers, and I can't imagine what they are, I am afraid to deauthorize all my computers.  See what I mean?  I just wanted to ask the question about how I can find out WHICH computers Apple thinks I have authorized, so I can decide if it's safe to deauthorize them all or not.  I only know of 2 computers that have iTunes on them, so how can there be 5?  We also have 2 iPhones and 2 iPods in this family, but one of the iPhones has his own apple id.  He may have been using mine, since his computer died.  I read that those don't count as "computers" to the 5.  Do they, then?
    Help!  I can't contact apple because I have no idea what they mean about serial number.  I doubt they would help me anyway.  In order to get the serial number off my desktop computer (that has iTunes on it already), I will have to move furniture, so I don't want to if that's not it.  Is there some way to find the serial number in the software, either on my desktop or my iPhone?

    sunshinecowgill wrote:
    We have three operational computers, one does not have iTunes on it.  Since Apple is saying I have more than 5 authorized computers, and I can't imagine what they are, I am afraid to deauthorize all my computers.  See what I mean?  I just wanted to ask the question about how I can find out WHICH computers Apple thinks I have authorized, so I can decide if it's safe to deauthorize them all or not. 
    You could have more 5 computers authorized if you ever, for example, reformatted a hard drive or replaced a hard drive without deauthorizing the computer first. Apple's system would see that as a different computer, even though you don't. There's nothing to be afraid of in deauthorizing everything and the reauthorizing what you actually have. You won't lose any data. Mistimp is correct, they can't tell you which computers are authorized.

  • My iphone has been water damaged and in the mean time ive gone back to using my old phone. But i need to get all the contacts from my iphone i had synced to my laptop, but i don't know where to find them and im not sure if ive backed them up to anything!

    my iphone has been water damaged and in the mean time ive gone back to using my old phone. But i need to get all the contacts from my iphone i had synced to my laptop, but i don't know where to find them and im not sure if ive backed them up to anything!

    If your contacts are synced to your computer then they are in the supported app you are syncing with.
    When you set up syncing of contacts on your device, which application did you select? 

  • K mean:: how to find the clustred data;:: or how to assign number t0 each group of data

    hi member
    i have download the LabVIEW Machine Learning Toolkit https://decibel.ni.com/content/docs/DOC-19328
    i want to excute the K mean algorithem to cluster the image in two group or three or more
    the problem is how to find the result i mean the clustred image', the image that contain 2 or three intesity value only
    or how to aasign a 1 vlaue to all intesity that 
    belong to cluster one and 255 to data that belong to cluster 2
    so that the image look like binary image???
    a my vi below
    best regards
    Solved!
    Go to Solution.
    Attachments:
    k mean.vi ‏12 KB

    my post before showed how to set the threshold manually using the graph's cursor.
    here's the automated k-means version, using the toolkit's .vi
    Alex
    ♜♖ LabView 8.6 - LabView 2014 ♖♜
    Attachments:
    2013-06-22_2dhistogram 2009.zip ‏61 KB

  • I have a big problem, I don't know what I touched but when I open up my iTunes I can't see all the icons. The only icons showing are "podcast, iTunes U and Downloads" so in other words I can't find the movies, music etc. Which means I can't buy/rent!

    I have a big problem, I don't know what I touched but when I open up my iTunes I can't see all the icons. The only icons showing are "podcast, iTunes U and Downloads" so in other words I can't find the movies, music etc. Which means I can't buy/rent!

    Not all content types are available in all countries - in each country Apple can only sell what they are licensed to (and in some cases what a country's laws allows them to). A list of what is available where is shown on this page : http://support.apple.com/kb/TS3599
    Do you have access to other music and film purchase download sites ?

Maybe you are looking for

  • Encrypt & Decrypt XML files

    Hi All, I am new to the cryptography. I have one application which will transfer XML files from the machines which uses Windows/Java platform to the machines which uses Linux/C and also vice versa. I want to encrypt the files before transfer and decr

  • Some thoughts on battery

    It is just me? When talking about battery life, people are comparing it with the PowerBook. I don't think you can do that considering the difference between the MBP and the PB. For starter, my 12" PB can go for about 3-4 hours of "limited" use (note

  • How do I get my toolbar and bookmarks to show on screen when I open mozilla foxfire?

    I downloaded the new version of Mozilla foxfire and nothing shows up but the google bar. My toolbar and bookmarks have disappeared! What can I do. Is the old version available? what is shockwave flash? what does it do?

  • P2P Software for Mac

    Hey everyone, On my old PC i used Ares for P2P, mostly because it didn't seem to drag any spyware with it. On my new Mac, I've got BitTorrent, but it's difficult to find any MP3's. If you got any good torrent search sites, or alternative programs, le

  • Web pages from one computer to another

    Hi, While in Italy for two months I made a large number of web pages on .mac from over 1000 pictures. These pages are on my MacBook. When I returned I successfully transferred the pictures from my MacBook to my iMac. HOWEVER, neither the smart albums