Frequency meter - new method

Hi,
i need meter the frquency by this method:
The frequency reading shall be obtained every 10 s.
The frequency output is the ratio of the number of integral cycles counted during the 10 s time clock interval, divided by the cumulative duration of the
integer cycles.
The measurement time intervals shall be non-overlapping. Individual cycles that overlap the 10 s time clock are discarded. Each 10 s interval shall begin on an absolute 10 s time clock.
I need do this on normal Labview and on cRIO FPGA.
Any idea?
Tnkx a lot...

Hi,
Did you try to find something in the examples on developer zone?
If you are using a CompactRIo in FPGA mode, you should visit IPNet too.
here is an example of frequency measurement found on IPNet.
Regards,
Olivier L. | Certified LabVIEW Developer

Similar Messages

  • AMule known.met.new No such file or directory

    Today I've seen that Kad doesn't have nodes and this message:
    2012-02-06 20:33:07: Connected to Kad (ok)
    2012-02-06 20:33:35: Error: Impossible to get permissions for file '/home/user/.aMule/known.met.new' (error 2: No such file or directory)
    Efectively, there's no file known.met.new maybe refers to known.met or known2_64.met but I don't know how to change.

    The server is going to look for the file relative to its current directory which is directory in which the jvm was started. You should use the ServletContext gerRealPath method to create an absolute path to the file.
    http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletContext.html#getRealPath(java.lang.String)

  • Error while adding a new method to the Session Bean

    Hello everyone. I'm using jdev 11g, ejb, jpa & jsf. Everything works fine. But when I try to add a custom method to the Session Bean, I'm having an error.
    Here is my steps:
    1) I added a new method to SessionBean.java. Something like this:
    public void Hello() {
    System.out.println("Hello!");
    2) Then using Structure palette I exposed this method through Local interface and created data control
    3) Finally, I made a command button binded to this method (just droped it from DataControls.dcx to my page)
    When I start the page and click the button, I'm having the following error:
    Error 500--Internal Server Error
    javax.faces.el.EvaluationException: Method not found: Hello.execute(javax.faces.event.ActionEvent)
         at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:58)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1227)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:70)
    ... (I've truncated the log because there is nothing important in the missing part)

    Yes, I have binding in the page def. Everything is correct there:
    <methodAction id="Hello" RequiresUpdateModel="true" Action="invokeMethod"
    MethodName="Hello" IsViewObjectMethod="false"
    DataControl="PriceServiceLocal"
    InstanceName="PriceServiceLocal.dataProvider"/>
    I've droped the method from the Data Controls panel

  • Creating a new method in an enhanced component class implemetation

    Hello Experts,
    I am trying to create a new method in the enhanced component(BT115IT_SLSO) implementation class ( ZL_BT115IT__ITEMS_IMPL)to run our custom functionality. But somehow when I put a breakpoint and debug while I add a product to the sales order the method doesnt get trigerred.
    Is there some thing which I have to do  get this trigerred ? I just added a ned method and placed some custom code in it. Do I have to invoke it anywhere ?
    Pls help me out. I am new to Web UI.
    Thanks

    Hi Mavrick,
    As you are performing some action like item addition , there you need a method called as " event handler " to handle the event and perform the required actions.
    Place a break point in DO_HANDLE_EVENT method , and you will know the exact event handler method which is getting triggered . or if you are defining a new event ( by adding any new button) you should create a event handler method using wizard giving the same name which is defined on_click field of the button as it is case sensitive.
    Regards,
    Nithish

  • Why can I no longer, after having downloaded Lion, write accents and other diacriticals when in the Google, Yahoo, FaceBook, or even here in this post? The new method for getting at the "option" symbols works fine in other places like spotlight, but now e

    Why can I no longer, after having downloaded Lion, write accents and other diacriticals when in the Google, Yahoo, FaceBook, or even here in this post? The new method for getting at the "option" symbols works fine in other places like spotlight, but now even the older "option+letter" doesn't work in most places.

    Chrome doesn't support the new accent/diacritics/macron chooser. I'm not sure about other browsers such as Firefox. You can use the old Option+letter combination that Doug suggested. Hopefully updates will solve these little incompatibilities shortly.
    Neill

  • Creating New Method

    Hi,
    I am creating a new method METHOD2 in an existing class.
    I am using an internal table which is populated in other method METHOD1.
    But when I tried to call the METHOD2 in main program,it is saying that METHOD2 is not defined.while I have activated the method.
    it is to be noted that I have not given any exporting,importing,changing parameter to this method.Do I need to give it compulsarily>if yes,then can I give the internal table as changing parameter,the one which is being populated in METHOD1.?
    Thanks in advance!!

    Hi ,
    Here is a sample code that accesses an internal table in a method to display the list of employees
    Super class LCL_CompanyEmployees
    CLASS lcl_company_employees DEFINITION.
      PUBLIC SECTION.
        TYPES:
          BEGIN OF t_employee,
            no  TYPE i,
            name TYPE string,
            wage TYPE i,
         END OF t_employee.
        METHODS:
          constructor,
          add_employee
            IMPORTING im_no   TYPE i
                      im_name TYPE string
                      im_wage TYPE i,
          display_employee_list,
          display_no_of_employees.
      PRIVATE SECTION.
        CLASS-DATA: i_employee_list TYPE TABLE OF t_employee,
                    no_of_employees TYPE i.
    ENDCLASS.
    *-- CLASS LCL_CompanyEmployees IMPLEMENTATION
    CLASS lcl_company_employees IMPLEMENTATION.
      METHOD constructor.
        no_of_employees = no_of_employees + 1.
      ENDMETHOD.
      METHOD add_employee.
      Adds a new employee to the list of employees
        DATA: l_employee TYPE t_employee.
        l_employee-no = im_no.
        l_employee-name = im_name.
        l_employee-wage = im_wage.
        APPEND l_employee TO i_employee_list.
      ENDMETHOD.
      METHOD display_employee_list.
      Displays all employees and there wage
        DATA: l_employee TYPE t_employee.
        WRITE: / 'List of Employees'.
        LOOP AT i_employee_list INTO l_employee.
          WRITE: / l_employee-no, l_employee-name, l_employee-wage.
        ENDLOOP.
      ENDMETHOD.
      METHOD display_no_of_employees.
      Displays total number of employees
        SKIP 3.
        WRITE: / 'Total number of employees:', no_of_employees.
      ENDMETHOD.
    ENDCLASS.
    Sub class LCL_BlueCollar_Employee
    CLASS lcl_bluecollar_employee DEFINITION
              INHERITING FROM lcl_company_employees.
      PUBLIC SECTION.
        METHODS:
            constructor
              IMPORTING im_no             TYPE i
                        im_name           TYPE string
                        im_hours          TYPE i
                        im_hourly_payment TYPE i,
             add_employee REDEFINITION.
      PRIVATE SECTION.
        DATA:no             TYPE i,
             name           TYPE string,
             hours          TYPE i,
             hourly_payment TYPE i.
    ENDCLASS.
    *---- CLASS LCL_BlueCollar_Employee IMPLEMENTATION
    CLASS lcl_bluecollar_employee IMPLEMENTATION.
      METHOD constructor.
      The superclass constructor method must be called from the subclass
      constructor method
        CALL METHOD super->constructor.
        no = im_no.
        name = im_name.
        hours = im_hours.
        hourly_payment = im_hourly_payment.
      ENDMETHOD.
      METHOD add_employee.
      Calculate wage an call the superclass method add_employee to add
      the employee to the employee list
        DATA: l_wage TYPE i.
        l_wage = hours * hourly_payment.
        CALL METHOD super->add_employee
          EXPORTING im_no = no
                    im_name = name
                    im_wage = l_wage.
      ENDMETHOD.
    ENDCLASS.
    Sub class LCL_WhiteCollar_Employee
    CLASS lcl_whitecollar_employee DEFINITION
        INHERITING FROM lcl_company_employees.
      PUBLIC SECTION.
        METHODS:
            constructor
              IMPORTING im_no                 TYPE i
                        im_name               TYPE string
                        im_monthly_salary     TYPE i
                        im_monthly_deducations TYPE i,
             add_employee REDEFINITION.
      PRIVATE SECTION.
        DATA:
          no                    TYPE i,
          name                  TYPE string,
          monthly_salary        TYPE i,
          monthly_deducations    TYPE i.
    ENDCLASS.
    *---- CLASS LCL_WhiteCollar_Employee IMPLEMENTATION
    CLASS lcl_whitecollar_employee IMPLEMENTATION.
      METHOD constructor.
      The superclass constructor method must be called from the subclass
      constructor method
        CALL METHOD super->constructor.
        no = im_no.
        name = im_name.
        monthly_salary = im_monthly_salary.
        monthly_deducations = im_monthly_deducations.
      ENDMETHOD.
      METHOD add_employee.
      Calculate wage an call the superclass method add_employee to add
      the employee to the employee list
        DATA: l_wage TYPE i.
        l_wage = monthly_salary - monthly_deducations.
        CALL METHOD super->add_employee
          EXPORTING im_no = no
                    im_name = name
                    im_wage = l_wage.
      ENDMETHOD.
    ENDCLASS.
    R E P O R T
    DATA:
    Object references
      o_bluecollar_employee1  TYPE REF TO lcl_bluecollar_employee,
      o_whitecollar_employee1 TYPE REF TO lcl_whitecollar_employee.
    START-OF-SELECTION.
    Create bluecollar employee obeject
      CREATE OBJECT o_bluecollar_employee1
          EXPORTING im_no  = 1
                    im_name  = 'Gylle Karen'
                    im_hours = 38
                    im_hourly_payment = 75.
    Add bluecollar employee to employee list
      CALL METHOD o_bluecollar_employee1->add_employee
          EXPORTING im_no  = 1
                    im_name  = 'Gylle Karen'
                    im_wage = 0.
    Create whitecollar employee obeject
      CREATE OBJECT o_whitecollar_employee1
          EXPORTING im_no  = 2
                    im_name  = 'John Dickens'
                    im_monthly_salary = 10000
                    im_monthly_deducations = 2500.
    Add bluecollar employee to employee list
      CALL METHOD o_whitecollar_employee1->add_employee
          EXPORTING im_no  = 1
                    im_name  = 'Karen Johnson'
                    im_wage = 0.
    Display employee list and number of employees. Note that the result
    will be the same when called from o_whitecollar_employee1 or
    o_bluecolarcollar_employee1, because the methods are defined
    as static (CLASS-METHODS)
      CALL METHOD o_whitecollar_employee1->display_employee_list.
      CALL METHOD o_whitecollar_employee1->display_no_of_employees.

  • To change the string in Class Builder "New Method"

    HI friends,
    Im using the std program of "RFDOPR10"...(changed into my customised program as ZRFDOPR10).....
    Here i want to change the strings of Id_type eq 4 availble under the class builder "New Method".
    "id_ruler_string = '2.13.24.29|43|58|73|88|103|118|'" (for 24...i want to give 38.....then 45...)
    Pls help me how to change the std method function  for my z program...
    FYR:
    RFDOPR10 is the std program for tcode :"s_alr_87012178", Customer analysis.If u want to c the example report, in this tcode...give OI:1, Summ level:6, OI list:1 and Company CD:2 under Output control tab in selection screen with Company code.Now, u able to see the reports in the screen.There, after Customer number....I've to give some more spaces(length) for Sort field.
    Thanks & regards
    Sankar.

    No, but I suggest using a different editor which does allow a different text option and just pasting it in.

  • Tochange the string in Std Class Builder "New Method"

    HI freinds,
    Im using the std program of "RFDOPR10"...(changed into my customised program as ZRFDOPR10).....
    Here i want to change the strings of Id_type eq 4 availble under the class builder "New Method".
    "id_ruler_string = '2.13.24.29|43|58|73|88|103|118|'" (for 24...i want to give 38.....then 45...)
    Pls help me how to change the std method function  for my z program...
    FYR:
    RFDOPR10 is the std program for tcode :"s_alr_87012178", Customer analysis.If u want to c the example report, in this tcode...give OI:1, Summ level:6, OI list:1 and Company CD:2 under Output control tab in selection screen with Company code.Now, u able to see the reports in the screen.There, after Customer number....I've to give some more spaces(length) for Sort field.
    Thanks & regards
    Sankar.

    Associated with the text box there will be some kind of event handler. Maybe it's an action event on the text box (when the user clicks return) or maybe you have a separate button that the user clicks.
    Either way, in the event handler, get the text from the text box, and then call the sendData method, passing the text as an argument.

  • Using new methods (getContentHandler and parse(InputSource)

    I am trying to read an xml file then count how many books from the xml file. I learned some methods are deprecated, so I tried to use the new methods. But, I somehow can't get the program work. I am stack on the getContentHandler and parse(InputSource) line ... :( Help!!!
    I changed: setDocumentHandler to getContentHandler
    HandlerBase to DefaultHandler
    parse to parse(InputSource)
    Kindly take a look at my program see if I missed out something? Thank you very much for your time.
    My code:
    =============
    * Write a description of class hello here.
    * @author (your name)
    * @version (a version number or a date)
    import java.io.*;
    import java.net.*;
    import java.lang.*;
    import org.xml.sax.*;
    import org.xml.sax.helpers.DefaultHandler;
    import org.xml.sax.ContentHandler;
    import org.xml.sax.InputSource;
    import javax.xml.parsers.SAXParserFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import javax.xml.parsers.SAXParser;
    public class BookCounter extends DefaultHandler
    private int count = 0;
    public static void main (String args[]) throws Exception
    (new BookCounter()).countBooks();
    public void countBooks() throws Exception
    SAXParserFactory f = SAXParserFactory.newInstance();
    SAXParser f2 = f.newSAXParser();
    // Here said "cannot resolve symbol - method getContentHandler (BookCounter)
    f2.getContentHandler(this);
    // Here said "cannot resolve symbol - method parse(java.lang.String)
    f2.parse("file:///C:/books.xml");
    public void startElement(String name, Attributes atts) throws SAXException
    if (name.equals("book"))
    count++;
    public void endDocument() throws SAXException
    System.out.println("There are" + count + "books");

    // Here said "cannot resolve symbol - method getContentHandler (BookCounter)
    f2.getContentHandler(this);
    should be
    f2.setContentHandler(this);

  • Re: new method to gather statistics in 11gr2

    {quot}
    thanks all
    {quot}

    Harsh_v wrote:
    {quot}
    thanks all
    {quot}
    And your question is since dbms_stats is not a new method AFAIK ?
    Aman....

  • New method in workflow

    Hi ,
    I was going through some of the previous posts and none did seem to answer my question completely.
    SO was wondering if someone can help me, I have created a new method, this methods collect values from a field of container and set another variable of container.
    DO i need to add import or export parameters for this method sumwer ?
    The task generation in workflow builder is done by someone else and the binding will also be taken care by them, I was wondering where I have to define what elements I am expecting and what values I will be returning ?
    thanks,
    RS

    Hi Reena,
    You should maintain what are import and export parameters of that method..
    So while defining the method maintain them... So that everything goes fine as desired..
    If you are using a Function module to declare a method of Business object then there is no necessary of
    maintaining Import and Export as they will be maintained in Function module..
    Hope this would solve your issue.
    Please revert back if any queries
    Good luck
    Narin

  • Enhanced SAP class with new methods - Not showing these from standard task

    Dear Gurus,
    I have enhanced SAP standard class with new methods. After I have activated my new methods and would like to create a workflow task using these new methods. when I create a task and input object category as "ABAP Class" and object type is SAP enhanced class. When I try to drop down for methods SAP is not showing my new methods. I do not know why. Am I missing any? Any help would be appreciated.
    Note: Remember I am trying to use SAP ABAP class custom methods.
    Thanks,
    GSM

    Hi,
    Your thread has had no response since it's creation over
    2 weeks ago, therefore, I recommend that you either:
    - Rephrase the question.
    - Provide additional Information to prompt a response.
    - Close the thread if the answer is already known.
    Thank you for your compliance in this regard.
    Kind regards,
    Siobhan

  • Can you please tell mejdk 1.6 has new method getHardwareAddress()

    can you please tell mejdk 1.6 has new method getHardwareAddress() i write this code in jdeveloper 10.1.3 and occure an error ( this method not found in NetworkInterface ) and jdeveloper highlight it with redline. i just uninstall jdk1.5 and then install jdk1.6u2 then still this error .
    pleaze help me what can i do .
    try {       
    InetAddress address = InetAddress.getLocalHost();
    NetworkInterface ni = NetworkInterface.getByInetAddress(address);
    byte[] mac = ni.getHardwareAddress();
    for (int i = 0; i < mac.length; i++) {             
    System.out.format("%02X%s", mac, (i < mac.length - 1) ? "-" : "");
    System.out.print("GetDisplayName ="+ni.getDisplayName());
    System.out.print("Ni.toString ="+ni.toString());
    System.out.print("Network interfaces ="+address.getHostName());
    } catch (UnknownHostException e) {        
    e.printStackTrace();
    } catch (SocketException e) {        
    e.printStackTrace();

    Hello Sir
    actually i am new to java.
    currently i am using jdeveloper 10.1.3 and jboss in window. i want to get the macAddress through java api NetworkInterface it has getHardwareAddress method in jdk 1.6 but it does not work in jdeveloper pleaze tell me the solution what can i do it is working fine.
    try {       
    InetAddress address = InetAddress.getLocalHost();
    NetworkInterface ni = NetworkInterface.getByInetAddress(address);
    // here is error jedeveloper underline with redline getHardwareAddress()
    byte[] mac = ni.getHardwareAddress();
    for (int i = 0; i < mac.length; i++) {             
    System.out.format("%02X%s", mac, (i < mac.length - 1) ? "-" : "");
    System.out.print("GetDisplayName ="+ni.getDisplayName());
    System.out.print("Ni.toString ="+ni.toString());
    System.out.print("Network interfaces ="+address.getHostName());
    } catch (UnknownHostException e) {        
    e.printStackTrace();
    } catch (SocketException e) {        
    e.printStackTrace();

  • Adding new method into String.java (just for personal usage)

    For some reason, it kept bringing in the old String.class, even I updated it the rt.jar with the new String.class. I even checked it with jar -tvf rt.jar. It has the new String.class. However, it seemed to constantly loading in the old one. Unless I use bootclasspath. The followng is the test :
    1.     I add a new function to String.java
    a.     : goody() { return “this is a test method”; }
    2.     To compile:
    a.     javac -bootclasspath ".\;C:\Program Files\Java\jdk1.6.0_03\jre\lib\rt.jar" String.java
    jar uf rt.jar java/lang/String.class
    3.     To test with file test.java where it calls String.goody()
    a.     To make sure it is not pulling in old code, I had to copy the new rt.jar to my test directory:
    i.     copy "C:\Program Files\Java\jdk1.6.0_03\jre\lib\rt.jar” .\
    4.     compile my test.java:
    a.     javac -bootclasspath .\rt.jar test.java
    5.     Execute the jvm:
    a.     java -Xbootclasspath:.\rt.jar;.\; test
    6.     I got output : “this is test method”
    =========================
    if I use the regular : java classpath where the new classpath does indeed reside in, it claims the symbol not found. I have to copy the rt.jar to my local and use -Xbootclasspath. Suggestion? Or, this is really the only way to be able to call a new method installed in String.class?

    eproflab wrote:
    a.     To make sure it is not pulling in old code, I had to copy the new rt.jar to my test directory:
    i.     copy "C:\Program Files\Java\jdk1.6.0_03\jre\lib\rt.jar&#148; .\That will not work.
    You must replace it in the VM directory or use the bootpath options. There is no other way.
    Note that you mess up with what you are doing (replacing the rt.jar way) that not only will you not be able to run, not even to get an exception, but you will not be able to compile either.

  • Can i create a new method in existing calss

    Hi Everybody,
    Actually i need to modify some standered layoutset, for that they have used method RULER_WRITE in class CL_DOPR_WRITER. Now i need to modify this method.Can create any ZRULER_WRITE under same class, if yes how can i create new method.
    Plese any one can help me on this issue.
    Thanks & Regards
    Venkatrami Reddy B

    Hello Venkat
    In this case you can use a workaround:
    (1) Create your own class and define an public read-only instance attribute of TYPE REF TO cl_dopr_writer (e.g. mo_writer)
    (2) Copy all methods from CL_DOPR WRITER to your own class (to get the signature) and replace the standard coding with your own coding.
    Within your application you create an instance of your own class (e.g. go_mywriter).
    When the standard method coding is sufficient simply call the corresponding method of CL_DOPR_WRITER, e.g.
    DATA: go_mywriter  TYPE REF TO zcl_dopr_writer.
    CREATE OBJECT go_mywriter. 
    CALL METHOD go_mywriter->mo_writer->'method_name'.
    If you need a "redefined" method call it from your class, e.g.:
    CALL METHOD go_mywriter->set_my_layout.
    Regards,
      Uwe

Maybe you are looking for

  • My 2009 Macbook Pro is running very slow

    After installing Maverick on my 2009 Macbrook Pro initially the result was very slow, practically unresponsive and unusable. After investigating many reports of similar problems I have not found anything to rectify the problem. Have downloaded and re

  • How do you make Flash Stay on top of any other programs

    Does anyone know what script I can use to make my flash intro stay on top of another .exe file that is going to open after my intro starts. I need the other .exe to load in the background where it is not visible to the user. I need my flash intro to

  • Pulling data Information from Financial reports- Balance Sheet

    Hi, Our users have generated Balance Sheet reports  in Oracle 11.5.10 and want to know how Finished Goods data is pulled into the Balance sheet. Could anyone guide me as to how I could find this information? Thanks in advance, Vasu

  • Java parser

    Can anyone tell where can i get an XML->DOM parser for java? TIA

  • Sum as NaN when adding numbers

    Hi All, I am getting the total as NaN when I am summing up the totals. e.g : I have 4 number 1) 4567,9 2) 300 3) 100 4) 100 when I am performing sum(4567,9+300+100+100) I am getting the output as NaN. The reason is XML doesn't treat "," seperated val