How to use a counter to build a Logic Analyzer?

Hi guys, i have heard that we can use a counter as a Logic Analyzer based on an incoming signal and its clock frequency. Anyone know how this works?
I am trying to read a set of signals, which I have no knowledge of  except that there would a Clock, reset and a data line; and I want to develop a Logic Analyzer to 'know' these signals.
Thanks, Anoop
Solved!
Go to Solution.

Lynn,
I have a PXI-7813R, which along with its FPGA is sufficient I believe for this purpose.
How many digital signals do you need to examine simultaneously?
Well, I am not sure, but based on the signals generated by similar devices, I would guess between 4 and 6. I expect there to be a Clk, Rst, Data and some other signals.
What is the maximum frequency?
I have no idea or how to even come up with a guess on this one.
What is the maximum and minimum number of samples per signal that you need to capture?
Again, not a clue. Would it not depend on the Clk frequency?
Are any of the signals ever in a high impedance (tri-state) mode?  
Again, don't know, sorry.
Is the minimum pulse width for non-clock signals the clock period, half the clock period, or something else?
Sorry again.
How would you go about in this situation?

Similar Messages

  • How to use JavaBean in Form Builder 6i

    Hi,
    How to use JavaBean in Form Builder 6i (Oracle Developer 6i)?.
    i'am using Oracle Sever 8.0.4 and Oracle Developer 6i.
    Please give your valuable suggestion
    Regards
    Seema

    I would suggest you start with the sample Java bean code we have
    on otn.
    http://otn.oracle.com/products/forms
    go to the sample code section.

  • How to use ni-6008 and build a four channel data acquisition at a rate of 250 samples per channel and display all the data in a waveform chart

    how to use ni-6008 and build a four channel data acquisition at a rate of 250 samples per channel and display all the data in a waveform chart 

    Hi kdm,
    please stick in one thread for the same topic!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How to use Alcon in Flash Builder 4.5

    I am using Alcon as memory and performance profilers.
    I searched around the Internet, only found articles that talk about how to use it in Flash:
    Debug.monitor(stage, 1000);
    But what is the counterpart to this statement in Flex environment? What should I pass to monitor method?
    Thanks.

    Hi
    Currently i haven't found any documentation describing how to compile and use this tlfx.
    I went through the change log to see what was added, and it looked quite good.
    I have tried to compile it, but my experience with fb4 is very limited. I have only worked with it for a couple of months.
    I would like a description of how to compile and use this tlfx liblrary in a flex application, so that i can have table supprt as well as support for bullets and numbering.
    TIA
    Allan

  • IP - Problem in FOX formula: how to use 0FISCPER3 counter of a DO function?

    Hi,
    IP 7.0:
    I'd like to define a top-down function which distributes the values in 0FISCPER3 = # to the periods selected by the user with two variables (period from and period to variable).
    -> Problem I experience is the conflict in different data types. How can I use the value of the selection variable for 0FISCPER3 in a counter of a DO function. Here is the code:
    formula example:
    change the value of the keyfigure ZQUANTITY of PRODUCT11
    to the value of ZQUANTITY of PRODUCT09 times 1.1
    assumption for fields to be changed: ZPRODUCT
                     ==> operand: {name of keyfigure, ZPRODUCT}
      DATA L_FACTOR TYPE F.
      L_FACTOR = 1.1.
      { ZQUANTITY, PRODUCT11 } = { ZQUANTITY, PRODUCT09 } * L_FACTOR.
    DATA LV_COUNTER TYPE 0FISCPER3.
    DATA LV_PERIODS TYPE  0FISCPER3.
    DATA LV_PERIOD_FROM TYPE 0FISCPER3.
    DATA LV_PERIOD_TO TYPE 0FISCPER3.
    *Transfer variable period from and period to into local variable and count interval of periods.
    LV_PERIOD_FROM = VARV(Z_PERIOD_FR).
    LV_PERIOD_TO = VARV(Z_PERIOD_TO).
    LV_PERIODS =  LV_PERIOD_TO - LV_PERIOD_FROM.
    Do top-down distribution for all adjustment values on period = #
    LV_COUNTER = (LV_PERIOD_FROM).
    DO.
    <b> { 0G_QVVGRM, LV_COUNTER} = { 0G_QVVGRM, # } / LV_PERIODS.</b>
    <b> LV_COUNTER =  LV_COUNTER + 1.</b>
        IF LV_COUNTER >= LV_PERIOD_TO.
            EXIT.
      ENDIF.
    ENDDO.
    -> the lines indicated in bold give errors. If I change the datatype of LV_COUNTER to I, how to start the do function the value of the first period selected by the user?
    function TMLV is also not supported apperantly in IP.
    Help would be very appreciated
    regards
    D

    Small extension:
    function TMVL does work, but I still have the problem to use the difference in periods solely for calculation in a key figure. I cannot switch from type 0FISCPER into F or I. In SAP R/3 ABAP this is no problem but apperantly in FOX it is???
    Hereby revised coding:
    DATA LV_COUNTER TYPE I.
    DATA LV_PERIODS TYPE  0FISCPER3.
    DATA LV_PERIOD_FROM TYPE 0FISCPER3.
    DATA LV_PERIOD_TO TYPE 0FISCPER3.
    DATA LV_FISCPER3 TYPE 0FISCPER3.
    *TRANSFER VARIABLE PERIOD FROM AND PERIOD TO INTO LOCAL VARIABLE AND COUNT INTERVAL OF PERIODS.
    LV_PERIOD_FROM = VARV(Z_PERIOD_FR).
    LV_PERIOD_TO = VARV(Z_PERIOD_TO).
    LV_PERIODS =  LV_PERIOD_TO - LV_PERIOD_FROM.
    DO TOP-DOWN DISTRIBUTION FOR ALL ADJUSTMENT VALUES ON PERIOD = #
    LV_COUNTER = 0.
    DO.
      LV_FISCPER3 = TMVL(LV_PERIOD_FROM,LV_COUNTER).
    <b>{ 0G_QVVGRM, LV_FISCPER3} = { 0G_QVVGRM,#} / LV_PERIODS.</b>
    { 0G_QVVGRM,#} = { 0G_QVVGRM,#} - { 0G_QVVGRM, LV_FISCPER3}.
    IF { 0G_QVVGRM, #} < 0.01.
    EXIT.
    ENDIF.
    LV_COUNTER = LV_COUNTER + 1.
    ENDDO.
    ERROR: conflict between operation type F and 0FISCPER3

  • How to use tlfx in Flash builder 4.

    Hi,
    How can i compile the tlfxproject and include it in flash builder 4?
    I need the table and bullet features, to create an advanced editor.
    I already have the source for tlfx, but don't know how to proceede.
    Thanks.
    Allan

    Hi
    Currently i haven't found any documentation describing how to compile and use this tlfx.
    I went through the change log to see what was added, and it looked quite good.
    I have tried to compile it, but my experience with fb4 is very limited. I have only worked with it for a couple of months.
    I would like a description of how to compile and use this tlfx liblrary in a flex application, so that i can have table supprt as well as support for bullets and numbering.
    TIA
    Allan

  • How to Use Row Count Transformation

    Environment: SQL Server 2008 R2
    Purpose: Track number of records, which were loaded into each destination, entity tables or affected by data transaction. Record each table name and the number of records for each  table. 
    Code:
    CREATE TABLE dbo.PkgAudit
    PkgAuditID INT IDENTITY(1, 1),
    PackageName VARCHAR(100),
    LoadTime DATETIME DEFAULT Getdate(),
    Status1 Varchar(50),
    Status2 varchar(20),
    Status3 Varchar(20)
    ETL process: See the following pictures. I have two DFT. Reference to the code in details.
    Click here
    The first one as below
    The second DFT
    Logic: Load the data from the staging table/ If matched with SSN then status is record exists in the pkgAudit table. If not matched, records the number of records and the status is inserted table in the DFT#1 (Step#1)
    In DFT#2, record the name of the tables and number of records for each table
    Expected Results:
    1, Pakage, 20140304 10:24:12:17, 4 loaded, 3 inserted in individual and SSN table, 1  exists in SSN
    Problem: In DFT #1, I placed RowCount Transformation. It generated a couple errors. I also dont know how to concatenate the name of the table and the number of records and the status of the affected table (inserted or exists or loaded).
    I am here to learn as my level of competency is novice. I appreciate the support to ease my learning process. Screen shots is highly appreciated. 
    ~ I tried to load more than picture but the editor allows only 2 pic per post. hope MSDN peeps improve it

    Hi Sandra,
    Thank you for your reply.
    The expression is used for a variable, then the variable can be used in your INSERT statement. According to your screenshot, the PkgAudit table has five columns that you need to insert into. Please refer to the following steps:
    1. Create three Int32 type Package scope variables @TotalCount, @InsertCount, and @MatchCount, and specify their initial value to 4, 3, 1 respectively.
    2. Create three String type variables @NumberofRecords, @Status1, and @Status2. Then, set the ValidateAsExpression property of each variable to True, and set the expression for the three variables as follows:
    NumberofRecords:  (DT_STR,10,1252)@[User::TotalCount] + " loaded"
    Status1:  (DT_STR,10,1252) @[User::InsertCount] + " inserted in individual and SSN table"
    Status2:  (DT_STR,10,1252) @[User::MatchCount] + " in SSN"
    Please refer to the following screenshot:
    3. In the Execute SQL Task, modify your SQLStatement to:
    INSERT INTO dbo.PkgAudit(PackageName
    ,LoadTime
    ,NumberofRecords
    ,Status1
    ,Status2
    ) VALUES(?,?,?,?,?)
    4. Click the Parameter Mapping tab of the Execute SQL Task, and set the parameter mapping as follows (supposing all the columns in the PkgAudit table use varchar data type):
    Regards,
    Mike Yin
    TechNet Community Support

  • How to use wlappc on a build machine where weblogic server is not installed

    All,
    We have a build environment where Weblogic server is not installed. We are currently moving from WL8 to WL10 but because of the relative paths in the weblogic.jar for version 10 I cannot figure out what jars I need in order to use the compile utilities without actually having to have the entire WL10 Application server installed on my build machine.
    In WL8 we just needed the Weblogic.jar, webservices.jar, and wlManagement.jar.
    Now it seems we need wlfullclient.jar webservices.jar and the weblogic.jar and all the jars in the relative classpath for the weblogic.jar, which is a very long list.
    Is this really so? Seems shortsighted on Bea's/Oracle's part if we now need to have a full installation of the application server just to use the compile utilities on our build machine.
    Any help on what jars to include so as to use wlappc or wlcompile on a build machine where weblogic 10 server is not installed would be appreciated.
    Todd Flora

    I no longer need help with this, as I have determined to load weblogic on our build machine.

  • How to use powl in page builder with WDR_CHIP_CATALOG component

      Hi all,
    I´m trying to create a home page via page builder.
    Within the component WDR_CHIP_PAGE   I use for the chip catalog component WDR_CHIP_CATALOG. For configuration of this component I´ve tried many options but I am not able to include powls. Which configuration name should I enter  (e.g: BSSP_CHIP_CATALOG_HP)?Inside the configuration context, at selection in provider I´ve included as provider X-SAP-WDY-CHIP but nothing happens.
    Thanks and best regards
    Pablo

    You can use  http://labsdownload.adobe.com/pub/labs/flashruntimes/air/air3-8_sdk_sa_mac.tbz2 with FB 4.6. Below are the steps to overlay the sdk
    1. Exit Flash Builder. 
    2. (Optional) Back up the Flex SDK by copying the entire directory.
        In Flash Builder, for example, copy the directory at:
    Mac OS: /Applications/Adobe Flash Builder 4.7/sdks/4.6.0
    3. Download the appropriate AIR SDK file for your operating system e.g. http://labsdownload.adobe.com/pub/labs/flashruntimes/air/air3-8_sdk_sa_mac.tbz2,  unzip and save it on your MAC OS X.
    4. In Terminal, run the below command
    sudo ditto /path/air3-8_sdk_sa_mac /Applications/Adobe\ Flash\ Builder\ 4.6/sdks/4.6.0
    5. (Optional) To access the new AIR 3.8 APIs, update your application descriptor file to the 3.8 namespace.
    To update the namespace, change the xmlns attribute in your application descriptor to: <application xmlns="http://ns.adobe.com/air/application/3.8">
    6. (Optional) To ensure that the output SWF file targets SWF version 21, pass an additional compiler argument: -swf-version=21.
    Hope this will help.
    Regards,
    Nimit

  • How to use row count as the starting point for a sequence

    I want to create a sequence, which starts with the row count on a table. I used the following, but it's not correct. Please help.
    CREATE SEQUENCE "PARTY_POC_S" MINVALUE 1 MAXVALUE 2000000000 INCREMENT BY 1 START WITH
    (select count(*) from "S_PARTY") CACHE 20 NOORDER NOCYCLE ;

    may be someting like this
    NOT RECOMMENDED
    DECLARE
      stCount               NUMBER;
    BEGIN
      SELECT COUNT (*)
        INTO stcount
        FROM S_PARTY;
      EXECUTE IMMEDIATE    'CREATE SEQUENCE PARTY_POC_S MINVALUE 1 MAXVALUE 2000000000 INCREMENT BY 1 START WITH '
                        || stcount
                        || ' CACHE 20 NOORDER NOCYCLE';
    END;

  • How to use selectBooleanCheckbox in expression builder

    Hi
    I have a selectBooleanCheckbox on my UI as below.
    <af:selectBooleanCheckbox id="sbtFlg"
          label="Enable/Disable SUBMIT button"
           binding="#{pageFlowScope.invoiceTableManagedBean.submitBtnActive}"/>I am setting the value of this component in the listener 'SubmitButtonListener' as below
        RichSelectBooleanCheckbox submitFlag = (RichSelectBooleanCheckbox)context.getViewRoot().findComponent("sbtFlg");
        String id = actionEvent.getComponent().getId();
        log.info("+++++ Component id ++++ "+ id);
    //Here is some logic to get the     allRows object
        if( allRows.length == 0) {
            log.info(">> length ==0");
            //submitFlag.setSelected(false);
            submitFlag.setValue("false");
        }else{
         //submitFlag.setSelected(true);
          submitFlag.setValue("true");
        }Now I want to use the boolean value of the checkbox on disable property of commandButton.
    <af:commandToolbarButton actionListener="#{invokeActionBean.setOperation}"
                                                   text="#{wf:getResourceValue('SUBMIT', 'bindings.customActions')}"
                                                   disabled="#{!pageFlowScope.attachmentListManagedBean.areAllRequiredDocumentsAttached or !pageFlowScope.invoiceTableManagedBean.submitBtnActive}"
                                                   action="#{invokeActionBean.invokeOperation}"
                                                   partialSubmit="false"
                                                   immediate="true"
                                                   rendered="#{lOVManagedBean.initiator}"
                                                   visible="#{wf:isCustomActionAvailable('SUBMIT', 'bindings.customActions')}"
                                                   id="submitButton">
                            <f:actionListener type="com.bmc.crms.listener.SubmitButtonListener"/>Is this a right way to call this property?
    pageFlowScope.invoiceTableManagedBean.submitBtnActive"
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    I tried the following with your suggestion.
    Submit button code
    <af:commandToolbarButton actionListener="#{invokeActionBean.setOperation}"
                                                   text="#{wf:getResourceValue('SUBMIT', 'bindings.customActions')}"
                                                   disabled="#{!pageFlowScope.attachmentListManagedBean.areAllRequiredDocumentsAttached or !pageFlowScope.invoiceTableManagedBean.submitBtnActive}"
                                                   action="#{invokeActionBean.invokeOperation}"
                                                   partialSubmit="false"
                                                   immediate="true"
                                                   rendered="#{lOVManagedBean.initiator}"
                                                   visible="#{wf:isCustomActionAvailable('SUBMIT', 'bindings.customActions')}"
                                                   id="submitButton">
                            <!-- <f:actionListener type="com.bmc.crms.listener.SubmitButtonListener"/> -->
                            <f:actionListener type="com.bmc.crms.listener.RoleChangeListener"/>Button on which I want to call he listener wherein I am setting the boolean value
    <af:commandButton text="Add Invoice" id="addInvoiceButton"
                                            rendered="#{lOVManagedBean.initiator}"
                                            action="#{pageFlowScope.invoiceTableManagedBean.addInvoice}"
                                            actionListener="#{bindings.execute.execute}">
                            <f:actionListener type="com.bmc.crms.listener.SubmitButtonListener"/>
                             <f:actionListener type="com.bmc.crms.listener.MRFlagListener"/>   
                         </af:commandButton>Checkbox component
    <af:selectBooleanCheckbox id="sbtFlg"
                                                    label="Enable/Disable SUBMIT button"
                                                    value="#{pageFlowScope.invoiceTableManagedBean.submitBtnActive}"/>  Listner
      public void processAction(ActionEvent actionEvent){
        log.info("+++++ SubmitButtonListener.processAction() start++++ ");
        Map pageFlowScope = RequestContext.getCurrentInstance().getPageFlowScope();
        InvoiceTableManagedBean invoiceTblBean = (InvoiceTableManagedBean)pageFlowScope.get("invoiceTableManagedBean");
        // or InvoiceTableManagedBean invoiceTblBean = (InvoiceTableManagedBean)pageFlowScope.get("InvoiceTableManagedBean");
        invoiceTblBean.setSubmitBtnActive(true);
        FacesContext facesCtx = FacesContext.getCurrentInstance();
        UIComponent uiComponent = facesCtx.getViewRoot().findComponent("submitButton");
        AdfFacesContext.getCurrentInstance().addPartialTarget(uiComponent);
        log.info("+++++ SubmitButtonListener.processAction() end ++++ ");
    }However, on execution I get the following errorfor the SubmitButtonListner.
    ]] Root cause of ServletException.
    javax.servlet.jsp.JspException: com.bmc.crms.listener.SubmitButtonListener
         at com.sun.faces.taglib.jsf_core.ActionListenerTag.doStartTag(ActionListenerTag.java:179)
         at oracle.jsp.runtime.tree.OracleJspIterationTagNode.executeHandler(OracleJspIterationTagNode.java:43)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
         at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
         at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
         at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)Am I doing anything wrong here?

  • How to use the current view in script logic - %DIMENSIONNAME_SET% not work

    Hello,
    I have the requirement to use the values from the current view in the script logic. User would like to use the members which were selected from the current view in the calculation.
    We are using SAP BPC 7.0 SP06
    I have prepared the following scrpit:
    *XDIM_MEMBERSET TIME=$YEARS001$.NA
    *XDIM_MEMBERSET ACCOUNT=BAS(PLVEH_EXP)
    *SELECT(%CBU%,ID,BUSINESSAREA,[ID]='%BUSINESSAREA_SET%'")
    *SELECT(%CIO%,ID,INTERNALORDER,[ID]='%INTERNALORDER_SET%'")
    *RUNALLOCATION
    *FACTOR=USING
    *DIM BUSINESSAREA WHAT=BANA;WHERE=%CBU%;USING=<<<
    *DIM INTERNALORDER WHAT=IONA;WHERE=%CIO%;USING=<<<
    *DIM INDICATORS WHAT=INVEHPRI;WHERE=INPXQ;USING=INVEHQUA
    *ENDALLOCATION
    I have read in the sdn that it is possible to get the current values using %DIMENSIONNAME_SET% variable and use it but it returns all the members that were selected in the datapackage.
    I would like to know if there is any special consideration regarging the use of variable or if there is another way to solve it.
    Thanks in advance.

    Hi,
    If you want the code to be executed for the current view selected, you can place the code in Default logic which executes the logic for what ever current view values you send the data through Input schedule.
    The key word you have mentined is for script running through Data Manager which gets the value selected through user promt.
    Hope this helps,
    Regards,
    G.Vijaya Kumar.

  • How to use total elements in a script logic?

    Hi All,
    I am using BPC 7.0 MS. I need to create a calculation using script logic as follows:
    The application name is GYP and it is composed by the following dimensions:
    PL (Account type) in this dimension are the units
    Time
    Category
    Entity
    Product
    RptCurrency
    I would like to make a calculation like this:
    UNITS of any product (base element) and any entity (base element) for the BUDGET category and LC currency divided by UNITS of TotalEntity.
    Also, I would like to check before the calculation if UNITS have any value to proceed with that calculation.
    Best Regards,
    Luisana

    Hi Robert,
    Thank you for your reply.
    Let me explain better what i would like to do. I have an application called GYP, it is composed for the following dimensions:
    PL (Account type)
    Time
    Category
    Entity
    Product
    RptCurrency
    In the PL dimension i have an element called UNITS and another one called UNITSBYX. I would like to get a calculation like this:
    For the BUDGET category and LC currency.
    UNITSBYX = UNITS for each ENTITY / UNITS for ALL_ENTITIES
    Let's say I have three entities:
    Units for Entity1 = 50
    Units for Entity2 = 100
    Units for Entity3 = 300
    Units for All_Entities = 450
    The calculation should be like this:
    UNITSBYX = Units for Entity1 / Units for All_Entities
    UNITSBYX = 50 / 450
    UNITSBYX = 0.11
    UNITSBYX = Units for Entity2 / Units for All_Entities
    UNITSBYX = 100 / 450
    UNITSBYX = 0.22
    I hope you get my point.
    Kind regards,
    Luisana

  • How to use counter as an start and stop trigger in 6009

    Hi ALL.
    I'm using USB 6009 as a subject of to acquire data.
    I would like to know on how to use the counter digital input as a start and stop trigger. 
    The acquisition will only start when the first pulse of the digital signal is received and it will stop when the desired number of pulse is received.
    I was trying to use the VI as attachment as my reference. However, after tried, the VI is not working for USB 6009 as the counter input cannot be used as a trigger.  
    I would be happy if anyone could suggest me some ideas on this matter.
    Thanks.
    Attachments:
    DigitalStartandStopTrigger.vi ‏32 KB

    Hi Kate. 
    Thanks for your response.
    For your information, I've design my VI using the counter method. However, it doesnt work well. Please see the figure below. The file also attached with this reply.
     At first, the first counter from Device 2 will start counting. If the counting equal 0, then the acquisition for Device 1/AIO also the counter of Device 1/ctr0 begin acquiring data and counting the edges respectively.
    However, when I did the test, it doesn't work as wanted. It is happened because when counter of device 2 in not equal to 0, the acquisition for Device 1 not happened as it will go to false state.
    Is there anything that someone could suggest on how to start the acquisition for device 1 only and if the counter of device 2 is equal to 1. I would like the acquisition of device 1 start only when the counter of device 2 is equal to 1. I cannot use the trigger as 6009 is not support for it. 
    -Fird- 
    Message Edited by Fird on 07-02-2009 04:28 AM
    Attachments:
    Acquire Data Test 4.vi ‏27 KB

  • How do I use a counter for time measurement with NI-DAQmx and C++?

    Hi,
    I need my C++ program to read time (number of elapsed ticks) using the counter on PCI-6229. I had this written and working for the non-MX driver, and now I need to re-write it for NI-DAQmx.
    Here are the steps that I want to accomplish:
    1. Route the 80MHz timebase to the input of "Dev1/ctr0"
    2. Start the counter and let it count the ticks.
    3. After a while, read the number of ticks from the counter.
    Here is how I am trying to do it now (without success):
               DAQmxCreateTask ( "" , &taskHandle ) ;
               DAQmxCreateCICountEdgesChan ( taskHandle , "Dev1/ctr0" , "" , DAQmx_Val_Rising, 0 , DAQmx_Val_CountUp ) ;
               DAQmxConnectTerms ( "/Dev1/80MHzTimebase" ,  "/Dev1/Ctr0Source" , DAQmx_Val_DoNotInvertPolarity ) ;
               DAQmxStartTask ( taskHandle ) ;
               then DAQmxReadCounterScalarU32 ( taskHandle , 0.25 , &curCount , NULL ) ;
               and DAQmxClearTask ( taskHandle ) ;
    No errors are generated, but I do not see the tick count being incremented when I repeatedly read the counter.
    Advice will be greatly appreciated!!

    Hi Peter,
    Welcome to the forums!   I just want to make sure I understand what you are trying to do.  You would like to count the rising edges of the 80 MHz clock using DAQmx in C++.  In order to route the timebase to the counter, you need to use the signal name (PFI8) instead of the counter (Ctr0Source) for the counter source input.  This name is found in Measurement Automation Explorer (MAX) by right-clicking on the device and choosing “Device Pinouts.”  This will physically put the 80 MHz clock on the PFI8 line, so make sure you reset the device or disconnect the terminals after you are done. 
    That being said, may I ask what you are trying to do by reading the number of elapsed ticks?  If you are trying to monitor a hardware timed pulse, it would be better to count the frequency or period of that pulse.  This would provide better accuracy, because you are not relying on how fast DAQmx Read can poll the hardware.  If you are simply looking for a software based timer, I would recommend taking a look at this MSDN forum post. 
    Using the GetTickCount function instead will free up your counter and provide comparable accuracy to counting the edges of the timebase.
    I hope that helps you out, let me know if you have any further questions about this. Good luck with your project.
    Rod T.

Maybe you are looking for

  • Frozen on the first day

    My brother just got his iPod Nano today. He put about 400 songs on it and he was listening to it for a little over an hour... Then it just froze...It was still playing(i think) but it froze...He couldnt change the song, go to a menu, or fast forward

  • How do you fix itune error 7(windows error 1114)

    how do you fix itune error 7 (windows error 1114)

  • How to call program in BDC

    Hi everyone! For BDC programming, I use this statement (example only): CALL TRANSACTION 'F-02' USING   bdc_tab                         MODE    'N'                         UPDATE  'S'. Is it possible to call the program ID and screen no. instead of th

  • Previews of files are wrong when I try to open them

    My Mac (Grey/Blue Power PC G4) is 10.3.9 using Photoshop CS version 8. The problem is when I try to open files from a card reader. When I try to go to File Open then select on a preview icon, the preview image is totally different from the actual fil

  • How to code a button to play and pause sound using load sound?

    how to code a button to play and pause sound using load sound?I have used load sound methos to attach the sound.Can anyone help me?