Example Vi's For Voltage and Period

We have just recieved a couple of DAQCard-AI-16XE-50 cards and Labview. I
am trying to find an example vi showing how to combine hardware timed voltage
input and period calculation in the same loop.
Basically I want to record volages from a couple of strain gages and two
RPM pickups. I am using the period vi instead of the frequency vi because
I don't want to tie up both counters on one input.
Thanks for any help,
Christopher Quijano

Be sure you have DAQmx drivers installed. Then you can find many prepared examples in Help -> Find Examples, where you can browse to Hardware Input and Output -> DAQmx -> Counter Measurements. Here you can find many examples - you just need to specify the board you use, and connect signals properly to terminal block.
If you are looking for how the frequency measuremen is made, then I recommend you to see M Series User Manual (or E or X Series), Chapter 7 - Counters, section Counter Input Applications, part Frequency Measurement.
if anything doesn't work, it would be useful to specify what board do you use, what drivers you have installed and what you try to implement.
regards,
stefo

Similar Messages

  • How to use scb 68(pci 6221) for voltage and current measurement

    hi 

    PCI 6221 is DAQ card with 68 terminals and SCB (Shielded Connector Board) 68 is termination board to those 68 pins of 6221 card, so that you can connect signals (to be measured) to appropriate pin of PCI 6221. You might already aware of it.
    Refer to the pin out of PCI 6221 to check which is the correct terminal, for voltage measurements.
    You cannot measure current directly, instead use a resistor of known value (and appropriate current rating), let current (to be measured) flow through it and measure the voltage across that resistor.
    I am not allergic to Kudos, in fact I love Kudos.
     Make your LabVIEW experience more CONVENIENT.

  • Design of Cube for Year and Period from Posting Date

    Experts,
    In my report requirement one of the selection criteria is Year and Month (YY-MM) which needs to be got from the Posting Date.
    In my ODS I have a 0PSTING_DATE. What infobjects are needed in the cube to get the value of YY and Period and the mapping from the 0PSTING_DATE to these infoobjects.
    Thanks,
    Raj

    Hi Rajesh,
    Time Update:
    When performing a time update, automatic time conversion and time distribution are available.
    Direct Update: the system automatically performs a time conversion.
    Time Conversion:
    You can update source time characteristics to target time characteristics using automatic time conversion
                   Check here..........
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/e5/f913426908ca7ee10000000a1550b0/content.htm
    Thanks,
    Vijay.

  • Examples in ABAP for initial and end rotine

    Ola expert´s,
    I´m trying to write a program in Initial Routine and End Routine (Transformation), but some declarations are diferent and so is the logic.
    In fact, I need some examples for declarations (variable, internal table, etc.) and some examples for logic (loop, read, move, etc.)
    Obrigado,
    Marcio

    Hi ,
    Please find the end routine example.
    DATA:   itab2 type standard table of ODS TABLE
              with header line.
        data:    wa like line of itab2.   
        data:  itab_refresh type standard table of tys_TG_1.
        data:  itab_target type standard table of tys_TG_1.
        DATA:  wa_target like line of itab_target.
        DATA : icount TYPE RSARECORD.
    IF RESULT_PACKAGE is not INITIAL.
          icount = 1.
          Refresh ITAB2.
    *Selecting records from UODArticle DSO whose internal
       handling unit no matchesthat of source package
          select * from ODS TABLE into table itab2
           FOR ALL ENTRIES IN RESULT_PACKAGE WHERE
          HEADER = RESULT_PACKAGE-HEADER .
      Sorting for optimizing readaccess
          SORT ITAB2 BY HEADER.
    Processing
          Refresh itab_target.
          SORT RESULT_PACKAGE BY HEADER ITEM.
          LOOP AT RESULT_PACKAGE assigning <result_fields>.
            LOOP AT ITAB2 INTO WA
              where HEADER = <result_fields>-HEADER.
              <result_fields>-ITEM   = wa-ITEM.
              <result_fields>-ITEMATTR1   = wa-ITEMATTR1.
              <result_fields>-ITEMATTR1   = wa-ITEMATTR2.
              <result_fields>-RECORD  = icount.
              icount = icount + 1.
              APPEND <RESULT_FIELDS> TO ITAB_TARGET.
            ENDLOOP.
          ENDLOOP.
        SORT ITAB_TARGET BY HEADER ITEM.
        REFRESH RESULT_PACKAGE.
        RESULT_PACKAGE[] = ITAB_TARGET[].
          ENDIF.
    Also have a look to the Transformation routine
    For getting the detail differences please see the thread
    can anyone give me an example of start routine and end routine in BI.7.0
    Start,end and expert routine in Bi7.0
    -Vikram

  • Search Example Code inside for Versioned and non-Versioned Documents

    These may be of use to someone...
    File names:
    AttributeSearch.java
    AttributeContentSearch.java
    The AttributeSearch application will search for documents (both versioned and non-versioned) with a file name containing "txt", residing in the user "system"'s home directory.
    The AttributeContentSearch application will search for documents (both versioned and non-versioned) with a file name containing "txt", and document content containing the word "hello", residing in the user "system"'s home directory.

    import oracle.ifs.beans.LibraryService;
    import oracle.ifs.beans.LibrarySession;
    import oracle.ifs.common.CleartextCredential;
    import oracle.ifs.common.ConnectOptions;
    import oracle.ifs.common.IfsException;
    import java.util.Locale;
    import oracle.ifs.beans.DirectoryUser;
    import oracle.ifs.beans.PrimaryUserProfile;
    import oracle.ifs.beans.PublicObject;
    import oracle.ifs.beans.Document;
    import oracle.ifs.beans.Folder;
    import oracle.ifs.beans.ContentObject;
    import oracle.ifs.beans.Search;
    // SEARCH RESULT
    import oracle.ifs.beans.SearchResultObject;
    // CONTENT + ATTRIBUTE SEARCH
    import oracle.ifs.search.ContextSearchSpecification;
    // SELECT, FROM
    import oracle.ifs.search.SearchClassSpecification;
    // ORDER BY
    import oracle.ifs.search.SearchSortSpecification;
    // WHERE
    import oracle.ifs.search.SearchClause;
    import oracle.ifs.search.SearchQualification;
    import oracle.ifs.search.JoinQualification;
    import oracle.ifs.search.FolderRestrictQualification;
    import oracle.ifs.search.AttributeQualification;
    import oracle.ifs.search.ContextQualification;
    public class AttributeContentSearch
    public static void main(String args[])
    try {
    LibraryService ifsService = new LibraryService();
    System.out.println("Oracle iFS Version " + ifsService.getVersionString());
    CleartextCredential credentials = new CleartextCredential("system","manager");
    ConnectOptions options = new ConnectOptions();
    options.setLocale(Locale.getDefault());
    options.setServiceName("ServerManager");
    options.setServicePassword("ifssys");
    LibrarySession ifsSession = ifsService.connect(credentials,options);
    DirectoryUser thisUser = ifsSession.getUser();
    System.out.println("Connected as \"" + thisUser.getDistinguishedName() + (thisUser.isAdminEnabled() ? "\" (admin enabled)" : "\""));
    PrimaryUserProfile userProfile = thisUser.getPrimaryUserProfile();
    SearchResultObject[] sro = runSearch (ifsSession,"hello");
    if (sro != null)
    for (int i = 0; i < sro.length; i++)
    System.out.print (((PublicObject)sro.getLibraryObject()).getName());
    System.out.println (" (" + ((PublicObject)sro[i].getLibraryObject()).getId() + ")");
    } catch (IfsException e)
    public static SearchResultObject [] runSearch( LibrarySession ifsSession, String searchCriteria) throws IfsException
    ContextSearchSpecification ss = null;
    SearchClassSpecification scs = new SearchClassSpecification();
    SearchSortSpecification sss = new SearchSortSpecification();
    SearchQualification sc = null;
    ss = new ContextSearchSpecification();
    ss.setContextClassname(ContentObject.CLASS_NAME);
    scs.addSearchClass( PublicObject.CLASS_NAME );
    scs.addSearchClass( Document.CLASS_NAME );
    scs.addSearchClass( ContentObject.CLASS_NAME );
    scs.addResultClass( Document.CLASS_NAME );
    sss.add( Document.CLASS_NAME, "NAME", true );
    sc = buildSearchClause( ifsSession, searchCriteria);
    ss.setSearchClassSpecification( scs );
    ss.setSearchQualification( sc );
    ss.setSearchSortSpecification( sss );
    Search s = new Search( ifsSession, ss );
    s.open();
    SearchResultObject [] sro = s.getItems();
    s.close();
    return sro;
    public static SearchQualification buildSearchClause( LibrarySession ifsSession, String searchCriteria ) throws IfsException
    Folder f = ifsSession.getUser().getPrimaryUserProfile().getHomeFolder();
    FolderRestrictQualification frq = new FolderRestrictQualification();
    frq.setStartFolder( f );
    frq.setSearchClassname(PublicObject.CLASS_NAME);
    AttributeQualification aq = new AttributeQualification();
    aq.setAttribute(Document.CLASS_NAME, PublicObject.NAME_ATTRIBUTE);
    aq.setOperatorType(AttributeQualification.LIKE);
    aq.setValue("%txt%");
    ContextQualification cq = new ContextQualification();
    cq.setQuery(searchCriteria);
    cq.setName("Test0");
    JoinQualification jq1 = new JoinQualification();
    jq1.setLeftAttribute ( Document.CLASS_NAME, Document.CONTENTOBJECT_ATTRIBUTE );
    jq1.setRightAttribute( ContentObject.CLASS_NAME, null);
    JoinQualification jq = new JoinQualificatio n();
    jq.setLeftAttribute ( PublicObject.CLASS_NAME, PublicObject.RESOLVEDPUBLICOBJECT_ATTRIBUTE );
    jq.setRightAttribute( Document.CLASS_NAME, null);
    SearchClause sc;
    sc = new SearchClause(jq, jq1, SearchClause.AND);
    sc = new SearchClause(sc, cq, SearchClause.AND);
    sc = new SearchClause(sc, frq, SearchClause.AND);
    sc = new SearchClause(sc, aq, SearchClause.AND);
    return sc;
    null

  • Need example of backing bean for selectBooleanCheckbox and dataTable

    Does anyone have an example backing bean for selectBooleanCheckbox and dataTable combination?
    I am trying to figure out how to create a dataTable with one column of checkboxes, when the checkboxes are selected, need to get a collection of all records that were selected.
    Also need to identify one of the columns in the records that were selected and send it to the EJB services to do update.
    columns in dataTable are userid and name. Both are string values.

    What is the difference between myDataItem, myDataItems and myDataList in MyBean.java?
    Where did myDataItem and myDataList come from? It isn't declared or initialized in MyBean.java

  • Need help in dynamic report for a range of year and period

    Dear all,
    I need help in creating an ALV report with dynamic columns based on the Year and period entered on the selection screen. for example if in the year we enter 2002 and period range from 10 to 12 then we should get the 3 columns display for cost(example) for period 10/2002, 11/2002 and 12/2002.
    Can anyone help me in achieving this dynamically since the user can enter the year also in intervals along with the period and data also needs to be populated in the corresponding columns.
    An example code would be of great help.
    Thanks,
    Amit

    Hi,
    Use field symbols as follows.
    TYPE-POOLS : SLIS.
    TABLES : MARC,T001W.
    DATA : BEGIN OF ITAB OCCURS 0,
           MATNR LIKE MARC-MATNR,
           END OF ITAB.
    DATA : FIELDSTAB TYPE LVC_T_FCAT,
           STAB      TYPE LVC_S_FCAT,
           T_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
           S_FIELDCAT TYPE SLIS_FIELDCAT_ALV,
           NEW_LINE TYPE REF TO DATA,
           NEW_TABLE TYPE REF TO DATA,
           INDEX(3) TYPE C,
           STR(70),
           TEXT(6),
           CNT(1),
           TEXT1(16),
           REPID LIKE SY-REPID.
    FIELD-SYMBOLS : <FS> TYPE STANDARD TABLE,
                    <WA> TYPE ANY.
    SELECT-OPTIONS : S_WERKS FOR MARC-WERKS NO INTERVALS,
                     S_MATNR FOR MARC-MATNR NO INTERVALS.
    INITIALIZATION.
      REPID = SY-REPID.
    START-OF-SELECTION.
      SELECT * FROM MARC
               INTO CORRESPONDING FIELDS OF TABLE ITAB
               WHERE MATNR IN S_MATNR
               AND   WERKS IN S_WERKS.
      SORT ITAB BY MATNR.
      DELETE ADJACENT DUPLICATES FROM ITAB COMPARING MATNR.
      STAB-FIELDNAME = 'MATNR'.
      STAB-DATATYPE  = 'CHAR'.
      STAB-INTLEN    = '18'.
      APPEND STAB TO FIELDSTAB.
      CLEAR CNT.
      LOOP AT S_WERKS.
        CLEAR TEXT.
        CNT = CNT + 1.
        CONCATENATE  'EISLO' CNT INTO TEXT.
        STAB-FIELDNAME = TEXT.
        STAB-DATATYPE  = 'CHAR'.
        STAB-INTLEN    = '16'.
        APPEND STAB TO FIELDSTAB.
        CLEAR S_WERKS.
      ENDLOOP.
      CALL METHOD CL_ALV_TABLE_CREATE=>CREATE_DYNAMIC_TABLE
        EXPORTING
          IT_FIELDCATALOG = FIELDSTAB
        IMPORTING
          EP_TABLE        = NEW_TABLE.
      ASSIGN NEW_TABLE->* TO <FS>.
      CREATE DATA NEW_LINE LIKE LINE OF <FS>.
      ASSIGN NEW_LINE->* TO <WA>.
      PERFORM MOVE_DATA.
      CLEAR S_FIELDCAT.
      S_FIELDCAT-FIELDNAME = 'MATNR'.
      S_FIELDCAT-TABNAME = ITAB.
      S_FIELDCAT-SELTEXT_M = 'Part Number'.
      S_FIELDCAT-NO_ZERO = 'X'.
      S_FIELDCAT-DDICTXT   = 'M'.
      APPEND S_FIELDCAT TO T_FIELDCAT.
      CLEAR CNT.
      LOOP AT S_WERKS.
        CLEAR T001W.
        CNT = CNT + 1.
        SELECT SINGLE * FROM T001W WHERE WERKS = S_WERKS-LOW AND SPRAS = SY-LANGU.
        CLEAR TEXT.
        CONCATENATE 'EISLO' CNT INTO TEXT.
        S_FIELDCAT-FIELDNAME = TEXT.
        S_FIELDCAT-SELTEXT_M = T001W-NAME2.
    S_FIELDCAT-NO_ZERO = 'X'.
        S_FIELDCAT-DDICTXT   = 'M'.
        APPEND S_FIELDCAT TO T_FIELDCAT.
        CLEAR S_WERKS.
      ENDLOOP.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          IT_FIELDCAT = T_FIELDCAT[]
        TABLES
          T_OUTTAB    = <FS>.
    *&      Form  MOVE_DATA
          text
    FORM MOVE_DATA.
      LOOP AT ITAB.
        CLEAR STR.
        CONCATENATE ITAB-MATNR ' ' INTO STR SEPARATED BY SPACE.
        LOOP AT S_WERKS.
          CLEAR MARC.
          SELECT SINGLE * FROM MARC WHERE MATNR = ITAB-MATNR AND WERKS = S_WERKS-LOW.
          IF SY-SUBRC EQ 0.
            CLEAR TEXT1.
            TEXT1 = MARC-EISLO.
            CONCATENATE STR TEXT1 INTO STR SEPARATED BY SPACE.
          ELSE.
            CONCATENATE STR '0' INTO STR SEPARATED BY SPACE.
          ENDIF.
        ENDLOOP.
        <WA> = STR.
        APPEND <WA> TO <FS>.
        CLEAR ITAB.
      ENDLOOP.
    ENDFORM.                    "MOVE_DATA
    Reward points if helpful.
    Regards,
    Sankar..

  • After updating my Macbook Pro retina display to os x yosemite 10.10.2, the mause and track pad locks, and do not respond especially when using the Mac for a long period, please help, how can I solve this, I do not like feel like in windows, so I paid

    after updating my Macbook Pro retina display to os x yosemite 10.10.2, the mause and track pad locks, and do not respond especially when using the Mac for a long period, please help, how can I solve this, I do not like feel like in windows, so I paid good money for this mack, I feel calm

    Hi Buterem,
    I'm sorry to hear you are having issues with your MacBook Pro since your recent Yosemite update. I also apologize, I'm a bit unclear on the exact nature of the issue you are describing. If you are having intermittent but persistent responsiveness issues with your mouse or trackpad, you may want to try using Activity Monitor to see if these incidents correspond to occupied system resources, especially system memory or CPU. You may find the following article helpful:
    How to use Activity Monitor - Apple Support
    If the entire system hangs or locks up (for example, if the system clock freezes and stops counting up), you may also be experiencing some variety of Kernel Panic. If that is the case, you may also find this article useful:
    OS X: When your computer spontaneously restarts or displays "Your computer restarted because of a problem." - Apple Support
    Regards,
    - Brenden

  • Report that display 'Net Pay' by Empl for current and previous period.

    Hi,
    We are looking for a SAP report that display 'Net Pay' by Employee for current and previous period in USA payroll module. If you know of any, pl let me know.
    Thanks in advance,
    Niranjan

    Thanks Archana and Sikindar.
    We knew about this report, however, it gives information one below the other if we run, say for 2 periods, but what we are looking for is something as shown in example below
    Empl #      Empl # Name    Prev Pay period Net Pay        Current Pay period net pay.
    123              XYZ                     $ 1200.00                                 $ 1200.00
    256              ABC                    $  2000.00                                $ 3000.00 
    We want to run for 2 periods at a time and get the results as above. That way, payroll dept can run this report and compare if we are paying too much in current pay, compared to previous pay. This is basically to avoid any typos when they create new pay records in infotype 0008.
    Niranjan

  • Should OKP1 being all closed and only be opened for the current period ?

    Guyz,
    In OB52 (Financial closing period) , only "open period" being input on it. So, basically the closing period in OB52 is by opening the period provided to be posting.
    Then how about OKP1?
    It's provided to lock the actual period , actual transactions, or to lock the plan period or plan transactions..but the question is:
    a. Should it be all closed (ticked mark all transactions & all periods) except for the current period that is provided to be posting as period determined in OB52...For example, it is now June, then all periods & transactions other than June is being ticked mark.
    OR
    b. Should it be all opened except for the period that is being closed? For example, it is now June, so periods & transactions of period January to May are being ticked mark (closed).
    Which of the options is the best practice?
    Need your answers asap plz.... Thanking you ..

    Hello,
    For example in OB52, if you have opened for June, i.e.,
    06 of 2009 to 06 of 2009 (1st Period)
    In such case,
    In OKP1, you need to only untick June for all the months and close all remaining months (Untick June and tick all other months and transactions).
    Note that your planning activities for all the year must have been completed. Otherwise, you cannot enter the plan values.
    Regards,
    Ravi

  • Authorization check for Open and Close Periods ( OB52)

    Dear Experts,
                           We have created ZOB52 for Opening and closing periods. This is replica of Tcode: OB52 with some other developments that we required. Here for resticting user I had tried authorization Object: F_BKPF_BUP for particular company code wise posting. This was however not working. Kindly suggest.

    Hi,
    The last column in OB52 - AuGr (Authorization Group) helps you in restricitng certain users to use a posting period. This field is freely definable.
    If only a limited set of users is to be able to post in a particular posting period, proceed as follows:
    Add the posting period authorization (authorization object F_BKPF_BUP) to the authorizations of the selected users. Assign an authorization group (e.g. '0001').
    In OB52,  in the row with the account type '+', enter the period(s) whose use is to be restricted in the first period, those which are available to all users in the second period, and the authorization group (e.g. '0001') in the last column.
    For company code wise restrictions, you should have a seperate posting period variant for each company code.
    Edited by: Michael Gerard Leo on Jan 12, 2010 2:55 PM
    Edited by: Michael Gerard Leo on Jan 12, 2010 3:01 PM

  • Reg:T-CODE for open and close period for materials(new plant).

    hi sap guru's
    T-code for following process
        can anybody send me , how to create calendar to new plant . and what is the T-code to be use for open and close period of materials for new plant.
    thanks
    sakthi..

    Hi Sakthi,
    I am assuming that you are asking about the factory calendars which are assigned while difing the plant.
    Factory calendars are created through transaction "SCAL".
    Opening and closing of MM periods can be done through transaction MMPV.This is based on the company code.Before using MMPV ,you can look the last opened period in the transaction MMRV.
    Reward points if it helps.
    Regards
    Karan

  • Why is does my apple run SLOW.you go to open a program and the circle thing just spins for a delayed period of time.  You change from typing in a word doc and go to say email or internet and it takes several minutes to allow you open anything up.  Like it

    Why is does my apple run SLOW.you go to open a program and the circle thing just spins for a delayed period of time.  You change from typing in a word doc and go to say email or internet and it takes several minutes to allow you open anything up.  Like it is frozen.  I have tried rebooting the computer and it works for a few minutes then gets stuck.

    Which model iMac do you have?
    How large is your HD and how much space do you have left?
    Check out the following & do the necessary: 
    User Tip:  Why is my computer slow?
    What to do when your computer is too slow
    Speeding up your Mac
    OS X (10.6.6)
    Use Software Update or the OS 10.6.8 combo update to update your OS.  Also, update everything SU has to offer for your computer.  When done, repair permissions and restart your computer.

  • Material stock received and issued for a given period of time

    HOW to get the material stock received and issued for a given period of time including the open orders.
    if there is any BAPI Available then please tell me. or give me the table relations thaks.
    thanks inadvance

    hi friend,
    Why don't you try using a TIMER. Try using this code
    Timer timer = new Timer((TIMER), new ActionListener()
         public void actionPerformed(ActionEvent ae)
    // perform your task here...
    timer.setInitialDelay(TIMER);
    timer.setRepeats(true);
    timer.start();
    I think this will work fine.
    Bye,
    Ravi.

  • Can someone connect in FaceTime if they are using a friends Macbook Pro, yet, doens't have an Apple ID??  For example, I have an IPAD and a Macbook Pro.  Can I connect to FaceTime on my Macbook Pro and connect with a friend using my IPAD????

    Can someone connect in FaceTime if they are using a friends Macbook Pro, yet, doens't have an Apple ID??  For example, I have an IPAD and a Macbook Pro.  Can I connect to FaceTime on my Macbook Pro and connect with a friend using my IPAD????

    I have also tried changing the contact emails(you can contact me by) in Facetime(diff email for IPAD and Macbook Pro).  Facetime tried the call, I see the accept buttom appear and it goes away as the call never connects?   Any ideas??

Maybe you are looking for

  • Mid-2010 27" iMac with i5 - process for determine why slow

    I have a mid-2010 27" iMac with an i5 processor and 12 GB of memory running latest Maverick OS.  I mainly use the computer for email, web browsing, light weight spreadsheets and importing/organizing/sharing photos.  I understand why my computer would

  • VPN client cannot access Lan

    Hi, I can connect via VPN to my ASA 5505 but I cannot access my asa. I do not quite understand the routing,acl and nat configs I would need. attached is my config

  • Itunes quits unexpectedly when trying to load wont even start up completely?

    Itunes will quit unexpectedly when i try to load it, what should i do?

  • How to give level value 'unknown'

    Hi there, When creating a dimension with OWB, we get for every level also a row with empty values voor de levels underneath. E.g.: Dimension customer: Level Total, level customer group, level customer. I get: ===================================== Lev

  • Can not install from Creative Cloud

    We have Creative Cloud for Teams.  I am trying to get some software installed from the cloud for one of the users.  Every time I click Install on an application (have tried Adobe Acrobat, Adobe InDesign, Adobe Photoshop), it sits for a little while a