Using AI Sample Clock to Trigger Counter Samples

My basic question is:  Is the ai\SampleClock signal only active while an analog input task is running?
The details are:
I have an X-series PCIe-6321 multifunction DAQ card.  It is controlling a SCXI chassis and has a SCXI-1180 and SCXI-1302 so I can control analog inputs of the chassis as well as access the 4 counter  on the card.  My application requires that I use all 4 counters to measure a frequency input signal and synchronize the samples to the analog input signals.  I have created 5 tasks, 1 for the AI and 1 for each counter.
I am using LabVIEW 8.6.1 with the latest NI-DAQ drivers on and 64-bit Vista OS 
1. Are there any driver or hardware restrictions that would cause this solution not to work? 
2. Can I use the ai\SampleClock as in input sample clock for each of the frequency tasks?  If I do this will the sampling start be syncronized?  I.e. if I start each of the frequency tasks first, will they wait until the AI task is started before they start sampling?
3. If that doesn't work, do I need to route the sample clock from the AI task to a PFI line (PFI1) and then use that as input to the frequency task sample clock? 
I usually do option 3 when synchronizing two cards in  PXI chassis and only use the software task start in stead of of synchronizing on a digital start, since the sample clock will control the samples anyway.  I need to know if the same behaviour works with the scenario above.
Thanks,
Bob
Prolucid Technolgies Inc. 
Solved!
Go to Solution.

Hi Bob,
I can confirm that the ai/SampleClock will only be active while the AI task is running.  As far as the other questions go:
1.  You'd have to provide more information about what you looking to do exactly, but there is no problem with routing the sample clock of the Analog Input task to be used with the Counters.  I would read through the section of the X Series User Manual that discusses sample-clocked frequency measurements (starting on page 7-16) for some more information about what is actually going on during this configuration to make sure it suits your requirements. 
The frequency of the signal to be measured should be at least twice as fast as the sample clock of your AI task.
2.   You can indeed route the signal to all four tasks at the same time (you can refer to the Device Routes page in MAX to double-check routing restrictions).  The sampling will be synchronized provided the four counters are started before the AI task, but the counters will be armed at different times unless you configure an Arm Start Trigger (see page 7-45 of the X Series User Manual).  I would consider using the ai/StartTrigger if you wish to do this. 
The effect of not arming the counters at the same time would be a different number of periods to average on each counter for the very first sample (assuming averaging is enabled).  This might not be a big concern but I just wanted to point it out.
3.  The routes are available internal to the board so external routing isn't necessary, you can just specify to use the AI Sample clock for the clock of each counter and the routes will be made for you.  If you prefer to export the signal on a PFI line and route it back in on a different PFI line this option is also available to you but shouldn't be necessary.
I hope this helps you get started.  I'd make sure to take a look at chapter 7 of the X Series User Manual if you get a chance since it describes how all of the counter configurations work in more detail.  If you have any related questions don't hesitate to post back.
Best Regards,
John
Message Edited by John P on 12-01-2009 07:52 PM
John Passiak

Similar Messages

  • Measure a frequency out of the trigger counter sample vi

    Hello,
    I want to measure the frequency of the simulated signal. I already succeeded in counting the pulse when rising. I probably need to integrate a wait until moduleso it will count the rising signal per time unit. I tried this but it didnt work out. Can you help me so that the VI will display the frequency with the wait until module.
    Kind regards,
    Michiel Huijgen (the Hague university, Holland)
    Attachments:
    Trigger Counter vb.vi ‏241 KB

    Start a game with the correct resolution / refresh rates https://wiki.archlinux.org/index.php/Ga … e_X_server

  • Question on "Master Detail page using ADF" sample

    I downloaded the "Master Detail page using ADF" sample application. I modified editDepartment.jsp page to include the Commit button as follows:
    <html:submit property="event_Commit">Save and Commit</html:submit>
    When I go to edit a department record and click on the new "Save and Commit" button, I SQLed the DEPARTMENTS table and noticed that the edits were not commited. I also restarted the embedded OC4J server and still get the same results. For some reason, the department view object contains the modification but the entity object doesn't. Why?

    Scott,
    My colleague suggested a workaround, which is to explicitly include the detail table's id in the master table's partialTargets list. So, for example, in MasterDetailDP.uix, changing:
    <table model="${bindings.DepartmentsView1}"
           id="DepartmentsView111"
           partialRenderMode="multiple"
           partialTargets="_uixState">to:
    <table model="${bindings.DepartmentsView1}"
           id="DepartmentsView111"
           partialRenderMode="multiple"
           partialTargets="_uixState EmployeesView312">...will cause the detail table to be updated when sorting the master table.
    There is some question about whether sorting a table should actually cause the currently selected row to change - we're still discussing this point.
    Andy

  • Parse error when using  ojspc SAMPLE.WAR

    Hi,
    I am facing oracle.jsp.parse.JspParseException while using ojspc SAMPLE.WAR
    Parse error in index.jsp:
    oracle.jsp.parse.JspParseException: /index.jsp: Line # 20, <%@ taglib uri="/tags/struts-logic" prefix="logic" %>
    Error: org.apache.struts.taglib.logic.IterateTei while reading TLD /WEB-INF/struts-logic.tld
    index.jsp contains
    <%@ taglib uri="/tags/struts-logic" prefix="logic" %>
    and web.xml
    <taglib>
    <taglib-uri>/tags/struts-logic</taglib-uri>
    <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
    </taglib>
    --Kailas                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    one solution: assume the toplink library to be so full of bugs as to be unusable and switch to the hibernate persistance manager where it works fine.
    Edited by: pointer2null on Feb 17, 2009 11:02 AM

  • Determine Physical Samples using a Sample Scheme

    Dear QM friends,
    currently I am struggling with a QM issue that maybe you can help me with.
    Within the one of our factory sites we have rolled-out QM for quality inspection at GR, for this we use Physical Samples (just like we do in other factory sites). Only thing is that in this specific site they want to draw their physical samples based on a sample scheme. The other site use formulas to draw samples.
    So we have setup a sample-drawing procedure to determine the samples based on a specific sample scheme that has been setup for this factory.
    What I expected SAP to do when doing a goods receipt of for example 3 items is that SAP will draw 3 Physical Samples with a quantity of 1. However strangely SAP creates 1 Physical Sample with a size of 3 items.
    With kind regards,
    Kenny Galle

    Thanks for both of your responses
    In relation to you questions I checked the following:
    1. I am using Primary Samples alone and they are to be taken from a Sample Scheme linked in the Sample-Drawing Procedure;
    2. Increasing the sampel size does not work, I am still left with one physical sample and multiple items. Where I want a physical sample PER item.
    When we use a formula in the Sample-Drawing procedure (e.g., "P1" or "TRUNC(P1/10)+1") it works fine and we get a Physical Sample per serialize item.
    Any guidance will be highly appreciated!

  • Using Commerce Samples from 7.0 in 8.1

    Folks,
    Have a general question.We know well that BEA do not provide any commerce samples
    with 8.1 and it exists in only 7.0
    When I develop a commercial site with 8.1, can I use the samples? I have 3 original
    weblogic 8.1 portal licenses.
    Thanks
    Johnson

    Much of the sample code in 7.0 (in wlcsApp and e2eApp) is contained in
    PipelineComponents and webflow InputProcessors, but the commerce code
    contained in those should still work if put into something else (e.g. a
    pageflow, a business process, a control).
    Additionally, you can run 7.0 PipelineComponents and InputProcessor in
    an 8.1 application, although we don't provide any specific development
    tools to support developing those.
    http://e-docs.bea.com/wlp/docs81/upgrade/chapter3.html#1049039 has some
    information about how to enable Pipeline and webflow in your app and
    webapps.
    Greg
    Johnson wrote:
    Folks,
    Have a general question.We know well that BEA do not provide any commerce samples
    with 8.1 and it exists in only 7.0
    When I develop a commercial site with 8.1, can I use the samples? I have 3 original
    weblogic 8.1 portal licenses.
    Thanks
    Johnson

  • Using External Clock to write counter value to buffer

    Using CTR mode config which input controls at what frequency the counter value gets written to the buffer? How do I set it up so the counter value is written to the buffer at the same time Anologue inputs are written to a buffer, without using the other counter.

    Hello,
    Could you please explain what type of counter operation are you interested in doing? That would help me in suggesting something.
    But if I roughly understand what you are saying here, you can use a same clock to provide as scan clock for analog input and then use that clock for the counter. But depending on what counter operation you are trying to do will decide whether that clock be provided as source or Gate.
    You may take a look at examples provided at the following location too :
    Measurement Hardware
    Sincerely
    Sastry V
    Applications Engineer
    National Instruments

  • Internal clock for the counter

    Hello everyone,
    I am new to NIDAQmx and I am doing angular position measurement. I found provided sample for the counter, 
    it says that I need to use external sample clock. Could someone provide me sample, that uses external clock that was generated by one task
    and another task which uses that generated clock and reads encoder input! I am doing it in C++.
    Thank you!!!

    Hello Khassan,
    Here is a link to a Developer Zone article that describes how to implement two tasks that share a clock, The example covers how to implement this with Analog input and output. You can work with it to fit it to your application: http://zone.ni.com/devzone/cda/epd/p/id/2352
    Reagards,
    -Travis E
    National Instruments
    Applications Engineer

  • How to use 20 MHz clock of the 6602 Timing card on other boards?

    Hello,
    I have a 1042 PXI with 6602 timing card and several other boards including 6534 Digital I/O board and 5122 Digitizer.
    I want these boards (6534 and 5122) to use the 20 MHz clock of the 6602 board as their Sample Clock.
    But when I set "/TimingIO/20MHzTimebase" as the source of the Sample Clock for the 6534 board I get the following error sometimes (sometimes everything works fine) :
    """Error -200621 occurred at DAQmx Wait Until Done.vi:2
    Onboard device memory underflow. Because of system and/or bus-bandwidth limitations, the driver could not write data to the device fast enough to keep up with the device output rate. Reduce your sample rate, or reduce the number of programs your computer is executing concurrently. """
    When I use "OnboardClock" as the source of the Sample Clock for 6534 I never get this message. I tell 6534 to use 6602's 20 MHZ clock by connecting
    "/TimingIO/20MHzTimebase" terminal to the appropriate input of the
    "Sample Clock vi" in the 6534's task. Output rate of the 6534 that I use is (much) less than 1 MHz.
    Could somebody explain the source/reason of the error message above? It seems like 6534 can not use 6602's 20 MHz clock though it has 20 MHz oscillator itself...
    Is there a way to use 20 MHz clock of the 6602 for 6534?
    Thanks in advance!

    Hi Ampm,
    The two answers are related to each of the answers:
    1) In this knowledgebase we can see that actually the 6602 cannot
    export his clock into PXI_Star. Since your digitizer cannot received but from
    this line, we need to find a different solution (see below).
    2) PXI_Star is actually a signal and should be named something
    like this “/Slot5/PXI_Star”. Make sure you PXI chassis is configured in MAX.
    There are two possible approaches:
    1)     
    I would suggest to PLL all
    clocks to the PXI 10 MHz clock. This takes full advantage of the hardware you
    have.
    2)     
    Export the 6602 20 MHz clock
    on a front panel PFI line and externally connect it to the CLK IN of the 5122.
    Good luck,
    Gerardo O.
    RF Systems Engineering
    National Instruments

  • How do I use daqmx to get encoder direction/count on E-series board?

    Hardware:
    PCI-6014
    Labview 7.1
    I have a linear actuator and wish to get distance/direction.  The
    motor has a quad encoder with phase A and B only.  I connected the
    lines according the the E-series, PFI-8 and PFI-6, and ground to
    digital ground. I then attempted to design a control with daqmx but
    failed.  I have tried the daqmx examples but none were attempting
    a reverse in direction.  Most examples given for direction change
    are for traditional daq control; i cant make a correlation on what to
    use to substite traditional daq with daqmx vi's. 
    2 questions:
    How do I use daqmx to get encoder direction/count on E-series board?
    Are there low pass filter vi's recommended for each phase connection to stabilize data?
    Thanks,
    Wayne Hilburn

    Hello Wayne,
    Take a look at the Count Digital Events.vi shipping example.  You can find this in LabVIEW by selecting Help >> Find Examples... then browsing to Hardware Input and Output >> DAQmx >> Counter Measurements >> Count Digital Events.
    If you set the "Count Direction" control to "Externally Controlled", you will be able to count up and down depending on which direction you rotate your encoder.  Make sure you wire Phase A to Ctr0 Source and Phase B to P0.6.  P0.6 is the up/down line for counter 0.
    I hope this helps.  Please let me know if you have any further questions.
    Regards,
    Sean C.

  • How do I change safari 5.1 in Windows XP to use a 24hr clock

    I have installed Safari 5.1 in Windows XP and the display shows the Time format with AM/PM. How do I change the settings to use a 24hr clock? My Windows XP settings are already using HH:mm:ss as a 24hr clock but this does not appear to be used by Safari Explorer.

    Try this, see if it makes a difference >  How To Disable Lion's 'Resume' Feature - MacRumors.com

  • How to use a timer in director to count down to quit

    how to use a timer in director to count down to quit

    Hello Christos,
    I'm sorry, but I have to give you again some links, at the moment I don't have "selfmade" files for you.
    First these Adobe help files:
    http://help.adobe.com/en_US/Director/11.5/Beginners/WS287f927bd30d4b1f5218ba7912ff9103109- 7feb.html
    http://help.adobe.com/en_US/Director/11.5/UsingScripting/WSc3ff6d0ea77859461172e0811d64c1a 1b3-7ae3.html
    Second an interesting thread from the forum with a "cookbook":
    https://forums.adobe.com/thread/1261561
    Hans-Günter

  • How to insert into a table using a procedure in a trigger

    I have following trigger and based on the some condition, it should inser a row in to a table using the procedure:
    CREATE OR REPLACE TRIGGER RSSC.RR_SERV_ADD_ON_REQ_bu before update on RSSC.RR_SERV_ADD_ON_REQ
    for each row
    DECLARE
    lr_appr_trans_hdr APPR_TRANS_HDR%ROWTYPE;
    -- Inserting a row into APPR_TRANS_HDR table
              lr_appr_trans_hdr.apth_ref_system := 'RSAO';
              lr_appr_trans_hdr.apth_xref_col_name := 'RSAO_ADD_ON_REQ_NUM';
              lr_appr_trans_hdr.apth_xref_id := :NEW.RSAO_ADD_ON_REQ_NUM;
              lr_appr_trans_hdr.apth_trans_srce := 'I';
              lr_appr_trans_hdr.apth_balance_amt := :NEW.RSAO_TOT_AMT;
              lr_appr_trans_hdr.apth_is_finance_adj := 'N';
              SPI_APPR_TRANS_HDR (
              lr_appr_trans_hdr.apth_id
              ,lr_appr_trans_hdr.apth_create_dt
                   ,lr_appr_trans_hdr.apth_create_user_id
                   ,lr_appr_trans_hdr.apth_update_dt
                   ,lr_appr_trans_hdr.apth_update_user_id
              ,lr_appr_trans_hdr.apth_ref_system
                   ,lr_appr_trans_hdr.apth_xref_col_name
                   ,lr_appr_trans_hdr.apth_xref_id
                   ,lr_appr_trans_hdr.apth_trans_srce
                   ,lr_appr_trans_hdr.apth_udc_name_cd
                   ,lr_appr_trans_hdr.apth_udc_acct_num
                   ,lr_appr_trans_hdr.apth_level1_apprvl_stat
                   ,lr_appr_trans_hdr.apth_level1_apprvl_dt
                   ,lr_appr_trans_hdr.apth_level1_apprvr_id
                   ,lr_appr_trans_hdr.apth_level2_apprvl_stat
                   ,lr_appr_trans_hdr.apth_level2_apprvl_dt
                   ,lr_appr_trans_hdr.apth_level2_apprvr_id
                   ,lr_appr_trans_hdr.apth_received_dt
                   ,lr_appr_trans_hdr.apth_balance_amt
                   ,lr_appr_trans_hdr.apth_cust_name
                   ,lr_appr_trans_hdr.apth_sent_dt
                   ,lr_appr_trans_hdr.apth_wbs_element
                   ,lr_appr_trans_hdr.apth_gl_acct_num
                   ,lr_appr_trans_hdr.apth_is_finance_adj );
    When I use the above, it is saying wrong number of argument or type.
    When I use the following instead, I am getting :NEW.APTH_ID must be declared.
    SPI_APPR_TRANS_HDR('APPR_TRANS_HDR',to_char(:NEW.APTH_ID),'APTH_ID',:OLD.APTH_ID,:NEW.APTH_ID);
    How can use the procedure in a trigger.
    Following is the table structure:
    Column Name     Data Type     Column Comments
    APTH_ID     NUMBER(16) Computed unique identified per large table standards (yyyymmddnnnnnnnn)
    APTH_CREATE_DT     DATE     sysdate
    APTH_CREATE_USER_ID VARCHAR2(65)     ‘conv’
    APTH_UPDATE_DT     DATE     sysdate
    APTH_UPDATE_USER_ID     VARCHAR2(65)     ‘conv’
    APTH_REF_SYSTEM     VARCHAR2(4)     ‘RSAO’
    CPA_PREM_NUM     NUMBER(13,0)     NULL
    RSR_REQ_NUM     NUMBER(16)     NULL
    RSAO_ADD_ON_REQ_NUM     NUMBER(16)     rsao_add_on_req_num
    APTH_TRANS_SRCE     VARCHAR2(2)     ‘I’
    APTH_LDC_NAME_CD     VARCHAR2(4)     NULL
    APTH_LDC_ACCT_NUM     VARCHAR2(25)     NULL
    APTH_LEVEL1_APPROVAL_STAT     VARCHAR2(1)     NULL
    APTH_LEVEL1_APPROVAL_DT     DATE     NULL.
    APTH_LEVEL1_APPROVAL_ID     VARCHAR2(30)     NULL
    APTH_LEVEL2_APPROVAL_STAT     VARCHAR2(1)     NULL
    APTH_LEVEL2_APPROVAL_DT     DATE     NULL.
    APTH_LEVEL2_APPROVAL_ID     VARCHAR2(30)     NULL
    APTH_RECEIVED_DT     DATE     NULL
    APTH_BALANCE_AMT     NUMBER(11,2) RR_SERV_ADD_ON_REQ.rsao_tot_amt – amount previously extracted to sap
    APTH_CUST_NAME     VARCHAR2(65)     NULL
    APTH_SENT_DT     DATE     NULL
    APTH_WBS_ELEMENT     VARCHAR2(25)     NULL
    APTH_GL_ACCT_NUM     VARCHAR2(15) NULL
    APTH_IS_FINANC_ADJ     VARCHAR2(1)     ‘N’
    Edited by: user652807 on Sep 3, 2008 4:51 PM

    It appears you're missing the format mask in the TO_CHAR, ...
    TO_CHAR(:new.apth,'YYYYMMHR24MISS')
    The full code would help a bit more.

  • Can't able to use :NEW in after insert trigger

    When i am trying to assign value to an element of the NEW pseudo record, its giving error like :new pseudo record can't be used in this type of trigger.
    What exactly i've done is given below
    create or replace triger tri_name
    after insert
    on tab_name
    for each row
    begin
    if :new.x='123' then
    :new.y:=null;
    end if;
    end tri_name;
    Thanks & Regards
    --DKar                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    from oracle documentation...
    Old and new values are available in both BEFORE and AFTER row triggers. A new column value can be assigned in a BEFORE row trigger, but not in an AFTER row trigger (because the triggering statement takes effect before an AFTER row trigger is fired). If a BEFORE row trigger changes the value of new.column, then an AFTER row trigger fired by the same statement sees the change assigned by the BEFORE row trigger.
    for more details read the documentation

  • How can I use the system clock.

    My java program need to use the system clock to initiate some functions. Is there a method to do this or do I need to create one ??
    Any help appreciated.

    The following article will likely contain information useful to you:
    Working in Java time: Learn the basics of calculating elapsed time in Java

Maybe you are looking for

  • How do you correct error 13019, my iPod won't sync with my Library?

    I keep trying to sync my iPod and at first I thought it was due to some songs that wouldn't load from my computer, so I deleted those. But it still keeps popping up saying "iPod could not sync due to unknown error 13019" how do I fix this? Help me ou

  • Format probelm about the downloaded txt file

    I encounter a problem. after the 4.7 system upgrade to ECC6.0 ..(sandbox) Our report can't download the correct txt file. I wrote a test program. REPORT  ZTEST  NO STANDARD PAGE HEADING. write: / '123',          / 'abc'. I download from menu :system-

  • Download link for blob field on page

    I have a form based on table with a blob column: TEMPLATE blob The 'Display as' on the item is set to 'File Browse...' The Source Type is set to 'Database Column' and Source value or Expression is set to 'TEMPLATE' I want the 'Download' link to appea

  • BPM Worklist Problem After Setting Frontend Host and Port

    Hi all, I was following the EDG for SOA 11.1.1.5 and was encountering a problem with the BPM Worklist after setting the Frontend Host and Port. We have a topology that includes a load balancer that terminates SSL, two OHS instances, and two SOA insta

  • Reader 9 Signature

    Under the document tab the first option is Signature, but when selected is is greyed out.  Under the Security Settings, I was able to create a signature.  Under Security, Show Security Properties it shows that Signing is not Allowed. I have the same