Can anyone suggest a method whereby I can calculate a numerical value that gives the total or average power between two stated frequencies of the AutoPowerSpectrum?

Using Measurement Studio (Vis. Basic), I'm trying to calculate as a numerical value the total or average power between two stated frequencies of the AutoPowerSpectrum. The PowerFrequencyEstimate Method gets me part of the way there. Using appropriate values of the input variables SearchFreq and Span, I divided the range between my two frequencies into 12 segments and let PowerFrequencyEstimate find the frequency and its power at the highest point in each segment. Then I added the 12 resulting powers. Since these are power values at several peaks, not average power over a given frequency range, it's not exactl
y what I want. Do any other approaches occurr to anyone?
Thanks.

Most people here won't do your homework for you. If you make an attempt yourself and get stuck then post your code (wrapped in code tags for easy reading), include any errors you get and what line they occur on and most of all ask a specific question. Don't just say "It doesn't work".
However, your assignment mentions that you are not allowed to use inbuilt C/C++ functions. This is a Java forum. Although the languages are similar and some here have C experience, try posting in a C forum.

Similar Messages

  • Can anyone suggest an app to download for SMS messaging for iphone 3G as the message application factory installed is pretty useless and doesnt keep your sent messages in a sent folder

    Can anyone suggest an app to download for SMS messaging for iphone 3G as the message application factory installed is pretty useless and doesnt keep your sent messages in a sent folde and has no folders unlike most messaging features on other phones.
    Many thanks
    Mark

    Why do you need a Sent folder?  iOS's Messaging interface lays each conversation out like a chat or IM.  Personally, I find that much more convenient.

  • Hi i was wondering can i buy a macbook pro 13 inch. with a 500 GB hardrive that costs 50 dollers more im gonna buy the one that costs 1200 dollers anyone who can help me? i know that can do it online but i was wondering can i buy it like that at the store

    hi i was wondering can i buy a macbook pro 13 inch. with a 500 GB hardrive that costs 50 dollers more im gonna buy the one that costs 1200 dollers anyone who can help me? i know that can do it online but i was wondering can i buy it like that at the store

    anton93 wrote:
    hi i was wondering can i buy a macbook pro 13 inch. with a 500 GB hardrive that costs 50 dollers more im gonna buy the one that costs 1200 dollers anyone who can help me? i know that can do it online but i was wondering can i buy it like that at the store
    Call the store & ask them!

  • Material master table/field that can store a value that indicates the sales

    Hello Gurus....
    My Client is looking for a material master table/field that can store a value that indicates the sales volume (quantity) of a material. If the sales volume of a material falls within the top 80% of the total sales volume, then the material will have an indicator of "A", 15% will be "B", bottom 5% will be "C". Business wants to use this field to drive the automatic putaway into different pick zones.
    We cannot use ABC Analysis field (MARC-MAABC) or CC phys.in.ind. (MARC-ABCIN) since they are used for ABC analysis and cycle count based on value, nor volume. Using these fields will limit our future use of the true SAP functionality.
    field in Purchasing view in the material master called Mfg Part Profile. However, this is also against the original functionality of the field.
    Other than, this any other field we can use it? or the only option is to do a custom field?
    Regards,
    Kumar

    Hi
    I think the only option is to have a custom field.
    Regards
    Prasad

  • I would like to create a form that gives the user opportunities to provide information on as many as 50 projects. Does Adobe FormsCentral allow for this "expandable" type of form, such that if someone only has 10 projects, they can complete the form as ea

    I would like to create a form that gives the user opportunities to provide information on as many as 50 projects. Does Adobe FormsCentral allow for this "expandable" type of form, such that if someone only has 10 projects, they can complete the form as easily as someone with 50 projects. In other words, is there a way to make the form "expandable?"

    Hi Ms Buckner,
    Yes, you can do this with the Show/Hide "Skip" logic rules.
    1. Suppose, for example, you have your first ten projects showing by default.
    2. At the end of those fields, you would have a Yes/No question asking if the person wanted to add more projects.
    3. If they answer "No", they move on to the next section/area/question/etc.
    4. If they answer "Yes" you have the form display ten more project fields that you had already included, but you had hidden up to this point.
    5. Repeat steps two, three, and four as often as needed. (It helps that you can copy and paste fields, including groups of questions, so you don't have to manually re-create them each time.)
    It means you must anticipate the maximum number of times you want to provide project fields, but you've already done that, and you have to build the form with that maximum number, but only display smaller portions at a time until they have filled in all they need.
    I hope that helps,
    Brian

  • How can I pass a value that is selected in a dropDownlist into a java metho

    My explanation is below and heres my jsp and javascript code:
    <form action="" method="post" enctype="multipart/form-data" name="form1">
    <table width="90%" cellpadding="0" cellspacing="0" class="tblProperties">
    <tr class="trBackColor"><td class="tdLayoutTwo"> </td></tr>
    <tr class="trLayout">
    <td class="tdLayout" align="right">Student Name: </td>
    <td width="316">
    <select name="studentID" id="studentID">
         <option value="0" selected>Select...</option>
         <%=frmStudent.createList(appStudent.getStudentID())%>
        </select>
    </td>
    </tr>
    <input class="inputForm" type="submit" onClick="setValues(form1)" name="Submit"  value="Continue">               
    </td>
    </tr>
    </table>
    </form>Javascript code...
    function setValues(frm) {
         var stuID = frm.studentID.value;
         <%=appForm.setStudentID(stuID)%>
         }I need to pass a selected value from the Form Dropdown into a java setMethod() in my jsp page. But I can't seem to figure out how? I used the "setValue" javascript funtion as shown above, that passes the value from Javascript to jsp on a onClick event, but it doesn't work. I did some research on the internet and have learnt that I cannot pass values from Javascript to jsp.
    Is there any other method, may be after I hit the submit button? I need to pass the selected value from a student dropdown list to a jsp setMethod(). So for example if I select, Jon from a Dropdown list which has a ID = 5, then I need to pass 5 to the java method.
    Any Clues?
    Thanks

    hi zub786,
    you have to do following things:
    1) Get the value of the selected index using javascript methods on selection of student ID.
    2) Use hidden tag and pass that index to value of the hidden parameter.
    3) Use that parameter in your next Jsp where you want that id.
    I hope this info might help u.
    Leozeo

  • Can't set comboBox value that has valueMember / displayMember

    Hello All,
    I'm working on a project where I'm dynamically building a form according to a configuration schema. I'm pretty new at C# and got the following issue I can't get sorted out . 
    Any help, advise would be great !!!
    When building a ComboBox I can't set the value I want !!
    Probably I'm missing something.
    I've tried several methods but nothing does it ... below my code.
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    namespace ComboBoxSample
    public partial class Form1 : Form
    public Form1()
    InitializeComponent();
    CreateComboBox();
    public void CreateComboBox(){
    //Working variables
    string valueMember = "idColumn";
    string displayMember = "valueColumn";
    //Create a panel and add to the form
    TableLayoutPanel tlp = new TableLayoutPanel();
    this.Controls.Add(tlp);
    //Create the data source
    DataTable dataTable = new DataTable();
    dataTable.Columns.Add(valueMember, typeof(string));
    dataTable.Columns.Add(displayMember, typeof(string));
    dataTable.Rows.Add("A", "value A");
    dataTable.Rows.Add("B", "value B");
    dataTable.Rows.Add("C", "value C");
    //Create a binding source
    BindingSource bindingSource = new BindingSource(dataTable, null);
    //Create a comboBox and bind the datasource
    ComboBox comboBox = new ComboBox();
    comboBox.DropDownStyle = ComboBoxStyle.DropDownList;
    comboBox.DataSource = bindingSource;
    comboBox.ValueMember = valueMember;
    comboBox.DisplayMember = displayMember;
    Try and set the value
    //No methode displays B --> combo stays on A
    comboBox.SelectedValue = "B";
    //comboBox.Text = "value B";
    //comboBox.SelectedItem = comboBox.FindStringExact("value B");
    //add the controles to the panel
    tlp.Controls.Add(comboBox, 0, 0);

    Hi Viorel_,
    Thanks for the reply!!
    The  setting the value in the form's Load event does work!
    I agree for the form designer but it does not fit the need.
    What I have is a "meta-data" driven logic where I define a screen that matches database fields:
    Example : Screen new person has 5 fields : Gender (combobox) , first name (textbox) , last name (textbox) , type (combobox) ,birthday (datetime)
    I have a Form derived class that takes this definition and builds each control at run time.
    The definition also comes with potential default values (i.e. :type = client) so what I want to do is affect the value on the fly. This works fine with textbox or datetime. I'm trying to do the same for combobox.
    Maybe I got this all wrong from a design point of view.

  • AE CS6 bug: Can't use any shortcut that includes the C in it

    A while ago I started having some issues In Illustrator CS6, where I couldn't copy and paste from one document/application to another, the issue later ported itself to AE and not much after that anything including the C key stopped working. For example I can't copy, pre compose or create a camera using shortcuts.
    After a lot of troubleshooting I was able to isolate a preference pane who was causing the Illustrator issue, I removed it and AI went back to normal, I assumed After Effects would be fixed too but unfortunately that's not the case, I still can't use the C key.
    I ran Onyx thoroughly, trashed AE's prefs, removed some recently acquired scripts, removed some login items and trashed those prefs also (I read a thread that mentioned those items could be causing odd behaviors).
    I carefully compared my setup against my laptop, which also has AE CS6 installed and working perfectly, I have the same scripts, the same preferences and the only login items not installed there are the ones that's are grayed out in my imac, so I can't delete them.
    If someone can help with this I'll be very grateful, I'm wasting a lot of time trying to solve this thing and I'm very used to using said shortcuts to increase my workflow.
    Thanks.

    I quit a few other components, a small utility called Shortcut (isn't that ironic?) and another one called MacAppBlocker,
    I still can't pre compose any layers using command-shift-c
    I was able to create a camera using command-shift-alt-c, after several tries, sometimes it worked, sometimes it didn't.
    I was being able to copy and paste across different programs and layers all sorts of objects, UNTIL  I opened Illustrator and copied a path, then I pasted it into a solid in AE.
    The next time I tried to copy something else, my clipboard got stuck with the path from Illustrator, EVEN inside illustrator.
    Greg, as you can see from this thread:
    http://forums.adobe.com/message/4462265
    This is an aknowledged bug from Illustrator, but as I have discovered in the past few days it's affecting everything systemwise, what are the possibilities that the only shortcuts that are failing are those that contain the combination of command-c? And like I said, it starts missbehaving right after I copy a path in Illustrator, not before.
    Alright, after some further testing, here's what I found:
    I removed (completely deleted) from my computer a small piece of software called WD Quickview, right after I was able to precomp and create cameras in AE.
    I still have the copy/paste issue from Illustrator, right after I copy a path, the clipboard goes haywire system wide.
    The strange thing is that, such program, WD Quickview has been installed on my computer for over a year now and never had any trouble with it, moreover, I'm not entirely sure how am I going to be able to get into the drive that uses that program (WD force-install that thing with their new drives that come with a new unerasable firmware).
    Coincidentally, I haven't plug the drive at all this week, so perhaps the program went crazy when it couldn't find the drive?
    Message was edited by: David Cabestany
    Ooooops. spoke to soon, this morning the issue came back.
    Message was edited by: David Cabestany

  • How can I create a button that performs the function of a keyboard shortcut, specifically print scrn

    I need my presentation users to take a screen shot of a slide within my presentation.  I know that windows 8 has a new function that allows a screen shot to be taken and saved directly to the user's computer and I need a button that can be placed on a slide and perform this function.  The shortcut is (windows key) + (print scrn).  I want to save my userss some time and just have a button perform this task.  Any idea on how I can make this possible? I am using Captivate 7.

    I think Ajit may have misunderstood your need.  The command he told you about triggers the Print command to allow you to print the currently active slide (on a laser or inkjet printer). This does not have the same result as you would get by hitting the PrintScreen button on your keyboard (to take a screencapture and have it saved to the Clipboard for pasting somewhere else).
    You can add a button to your slide and set the PrintScreen key as the shortcut, but this will NOT mean that clicking the button will cause a screencapture to be taken.
    There are JavaScript libraries that will allow you to execute JavaScript code in a Captivate project that can take a screen capture:
    https://github.com/ariya/phantomjs/wiki/Screen-Capture
    However, to implement these solutions you would need to be quite knowledgeable with setting up JavaScript.  It's not for newbies.

  • Can you validate an XMLElement that uses the default namespace?

    We have a partner that we communicate with via XML over HTTP and the schema that they gave us for their request/response does not specify a namespace. I am able to import the schema and create variables from its elements to send the request and get a response back but when I try to validate the response I am getting an error.
    We are using SOA Suite 11g and the bpelx:validate action to try to validate the variable but it consistently gives back the following error message.
    java.lang.IllegalArgumentException: null schema location for ns=null [Cause=null schema location for ns=null]
    I am pretty sure this is because there is no namespace specified in the response data. Is there anyway that I can validate this XML against the schema without a namespace? This is an existing interface that we are converting so we don't have the flexibility to ask the partner to change their interface. I am able to validate the same XML data in XML Spy against the schema and have been able to recreate this problem with a different small xsd with the default namespace.
    I think I can write a java utility to perform the validation and call it using the embedded java action but I am hoping there is a way to do it within the tool.

    Hi,
    For Crystal Design related queries, close this thread and start the thread in the [SAP Crystal Reports Design forums|http://forums.sdn.sap.com/forum.jspa?forumID=300&start=0]
    - Bhushan

  • Can I have a variable that lists the name of the Book?

    Hi, I'm creating a document as an InDesign Book, ie a lot of documents in the Book Pallette. I'd like to have a variable that lists the book name. Is this possible?
    I've tried finding how to create new variables but I can't see anything. I'm guessing <$bookname> is the code but I can't figure out how to enter it as a variable in CS5.
    Thanks,

    What does this have to do with scripting? I don't believe you can create a variable that is automatically populated with the book name, but you can simply create a regular variable and synchronize it across all documents in the book.

  • Can anyone suggest a reliable dvd burning app for a mac book pro without the idvd app

    I recently purchased a Mac Book Pro and find that it has,nt a facility to burn home movies fro imovie. After contacting apple they tell me to purchase a third party dvd burning app, After a little research on the app,s available from the app store the reviews are not good. Has anyone found a reliable app that will do the job,.

    Toast is exellent but is no substitute for iDVD - but then nothing really is.
    Why is there no iDVD on my new Mac? How do I get it and how do I install it?
    https://discussions.apple.com/docs/DOC-3673

  • How can I validate numeric values in a text field?

    Hi
    Once more I have a problem.
    I have a field in which the user should enter 10 digits in the pattern 999999-9999. The field must only contain numeric data and must be exactly 10 characters. I have a validation script on the print button, that prevent printing if required fields are empty or not properly filled out.
    I have tried two ways to work this out, and I'm not satisfied with any of them, as I can still print despite of validation scripts and warning messages.
    1.
    I set the field to numeric, limited to 11 characters.
    Display pattern num{999999-9999}, edit pattern num{999999-9999} and validation pattern num{999999-9999}
    Problems using this solution: When I type 11 digits in the field (ex.12345612345) I get a warning message and 12.345.612.
    But when I type 9 digts (ex. 123456-123 or 123456123) I get no warning message and 000000-0000 or 012345-6123
    If I type alphabetical characters (ex. 123456-abcd) I get no warning message and 000000-0000.
    2.
    I set the field to text field, limited to 11 characters.
    Display pattern text{999999-9999}, edit pattern text{999999-9999} and validation pattern text{999999-9999}
    Now when I type 11 digits in the field (ex.12345612345) I get no warning message and 12345612345.
    When I type 9 digts (ex. 123456-123) I get no warning message and 123456-123
    When I type 9 digts (ex. 123456123) I get a warning message and 123456123
    If I type alphabetical characters (ex. 123456-abcd) I get a warning message and 123456-abcd.
    It works slightly better as a text field, but I am not satisfied at all.
    Has anyone a solution to this?
    Additional I would also like the hyphen to emerge automatically when typing.
    K

    I just want to summarize my experience.
    I found a related discussion here: http://forums.adobe.com/message/2513720#2513720.
    Putting the pieces together I came up with this solution.
    form1.subform.TextField1::exit - (JavaScript, client)
    var      
    myRegex = /\d{6}\-\d{4}/;
    var   
    singleDigits = [0,1,2,3,4,5,6,7,8,9]; // array for single digit check
    if   
    (this.rawValue != null || this.rawValue != ''){ // only if the field has a value...
         if (!this.rawValue.match(myRegex)){ // and it doesnt match the pattern (i.e. 2 digits)
         this.rawValue 
    = ''; // clear the field
         xfa.host.setFocus( 
    this); // set focus back to the field
         xfa.host.messageBox('Error: Pattern Conflict. Please use the pattern 999999-9999.'); 
    // enter any message you wish here
    Kirstine

  • HT201304 Can I delete an app that uses the same apple ID but is installed on a different device

    How can I remotely uninstall an app on different device? The other device is an iPad 4 but my apple ID was used to make the purchase. I find the content inappropriate for the user.

    BejoyK wrote:
    How can I remotely uninstall an app on different device?
    AFAIK... you need to be in possession of the Device.

  • How can I get an item that has the broadcast icon next to it into MP3 format so I can put it on my ipod nano?

    Question: how can I get an item in my itunes library, on my mac os 10.6.7 that has a broadcast icon next to it into MP3 format so I can play it on my ipod? right now it won't let me, and it's very frustrating!!!! thanks

    I might have misunderstood what you mean by the "broadcast icon," but if you are talking about an audio stream, then there is just no way you can convert a stream to MP3. What this would involve is either recording the stream, and then you would just be replaying the recorded audio on your iPod (is this what you are trying to achieve?), or reading the stream directly on your iPod, which an iPod nano does not support (it would need wireless connectivity).
    Hope this helps

Maybe you are looking for

  • Add Trusted Sites by GPO and allow the user to edit / add Trusted Sites manually.

    Hi All Greetings for the day.... I have task to add a few Sites in Trust zone, Where I am succeed allowing them by GPO. As user requested to allow him to add Sites to add / edit manually. When I applied the Security Zone : Do not allow user to add si

  • OS X and Linux dual boot

    I have installed a new hard drive into my computer and partitioned it off. I have Mac OS 10.4.3 on 1, music on another, games on yet another... and a 10gig partition for Linux. I have all the cd's for the flavor of Linux I want... but I want to know

  • Unable to Create database index

    Hello All, I have a table where I'm trying to define indexes. I make the additional entry for indexes via SE11. Call transaction SE11. Enter the table .. Choose "Change". Choose "Indexes ...". Choose the "Create Index" icon and enter the table name a

  • Cannot browse the net

    i recently purchased  WRT54GS and since the day i bought it i am having this issue where i cannot browse eventhough i see the the wireless network connection icon strength showing either excellent or very good, several times i have taken online help

  • How to create an item Phone Number of US Format

    Hi, Need to create an item in a page Phone Number. The Item should accept only US Phone Number Format. Need Suggestions. Regards, Krishna