How meter and analog value FIFO synchorize

I use a card NI 6123.

Anyone knows how to put 6 analog values and the value of the counter in FIFO with the same rate: 4 k.

Thus, every second, there should be 6 * 4 k analog values and 4 k in FIFO counter value.

The problem is:

1. the counter is a numeric value, so I can't put a sampling on it. So how can I put the value of the counter in the FIFO every second of 1/4000

2. how to sync analog channels and channel meter.

-------------------------

DAQmxErrChk (DAQmxCreateTask("",&datHandler));

DAQmxErrChk (DAQmxCreateAIVoltageChan(datHandler,"Dev1/ai0:5","",DAQmx_Val_Cfg_Default,-5.0,5.0,DAQmx_Val_Volts,NULL));)

DAQmxErrChk (DAQmxCfgSampClkTiming(datHandler,"",4000,DAQmx_Val_Rising,DAQmx_Val_ContSamps,4000));

DAQmxErrChk (DAQmxCreateTask("",&ctrHandler));

DAQmxErrChk (DAQmxCreateCICountEdgesChan(ctrHandler,"Dev1/ctr0","",DAQmx_Val_Rising,0,DAQmx_Val_ExtControlled));

DAQmxErrChk (DAQmxStartTask (datHandler));

DAQmxErrChk (DAQmxStartTask (ctrHandler));

-----------------------------------

Thank you

It is possible to apply for a meter in the buffer.  (this is actually preferred).  Simply specify a sampling and source clock.  Given that you want the meter to "lock" data from the meter to the same rate as the sample analog clock to simply specify this sample clock as the sample for the meter clock.

An example of event in the buffer (life-long) count can be found here by using an external clock (your HAVE sample digital Instruments\NI-DAQ\Examples\MStudioVC2005\Counter\Count Events\CountDigEventsBuffContinuous_ExtClk clock):...\National)

Check out this example and I think he should get you operational.

Tags: NI Software

Similar Questions

  • DAQmx Timing of the meter and analog readings


    Hey all,.

    Quick update. I hung a second function generator to a PFI port on my DAQ and did a sample clock for each channel (IA and CI) type, then did two clocks to the same port. Bingo, I have the same number of samples in each column, and the data looks correct.

    If the lesson learned: you can use the same external clock, but not the same clock for different channel types. Tip.

    -Lyric

  • How to sync analog & meter and two usb devices

    Hello

    What I want to do is synchronize the analog inputs and an entry on a device (USB-6009) meter and then synchronize this device to a different USB USB-9211.

    I had a quick glance at the Web site and there are a few articles to the knowledge base on how to do these operations independantely (IE synch and synchronization channel) but I'm not sure how to bring it all together. My concern is that the USB-6009 case has only a single meter (which double as the PFI?) and it is generally used for the signal synchronization on the slave device? Used to say that I won't be able to use the meter to measure input? The USB-9211 a there a PFI connection?

    Any suggestion would be appreciated.

    See you soon!

    Hi David,

    If you want to synchronize and always stay USB, you will need to look at the chassis USB 4 9174.  With this, you can get a digital I/o module, for example the 9401, to interface with chassis backplane and synchronize the frame on another device like the 6009.  Another plus, it could ask, is that the bottom of basket 9174 meters integrated into the chassis, which have more capabilities than the meter 6009 and are accessible via the same DIO module that you use for synchronization.  This seems to be the best route to go because of the capabilities that you are looking for.

  • Terca M4: How to activate the external ports, DVI and analog?

    Please can someone please tell how to activate the two external ports. I would use two DVI and analog to the office. Currently if you activate a second screen machine sets up the flat screen and the other the DVI external display. Is this in any way about this?

    See you soon

    Hi Matthew

    As far as I know you can connect an external monitor or a TFT. For this you can use the VGA (15-pin) port or DVI - D video, supported by PortReplicator III (PA3314E).

    Sorry, but I don't understand why you need the two holes at the same time. How many external screens that you want to use? Sorry if I'm missing something but perhaps you can explain your wishes more precisely.

    Good bye

  • How can I design square wave which has a positive and negative values equal to the other and separated from each other by controlled time or distance

    How can I design square wave which has a positive and negative values equal to the other and separated from each other by controlled time or distance, as indicated in the figure below. and enter this signal in a data acquisition.

    At the time wherever you go for the beautiful diadram, you could have done the vi

    Your DAQ would like a waveform (table of values and dt ak 1/sampling rate)

    If you set the sampling rate you know the length of the array, create a matrix of zeros and set the values of the two amplitudes...

    Because I don't want to connect other duties here are some photos

    And it does have a few drawbacks leaves to be desired in my solution, just think... rounding errors and what might happen if the tables are becoming more...

  • How to find the value max and min for each column in a table 2d?

    How to find the value max and min for each column in a table 2d?

    For example, in the table max/min for the first three columns would be 45/23, 14/10, 80/67.

    Thank you

    Chuck,

    With color on your bars, you should have enough experience to understand this.

    You're a loop in the table already.  Now you just need a function like table Max and min. loop.  And you may need to transpose the table 2D.

  • Drag the control example and how to record a value of the indicator?

    Hello world

    I want to drag the Boolean buttons on my front panel in the time of execution, how can I do?

    I remember that I have seen an example or why, it's a map on the front panel, but I don't remember the name TT someone knows?

    and the second question is how to store a value of the indicator, like the first time, you set the value and close the vi and run it again, the value will remain unless you change in the second run time?

    Thanks in advance

    Thanks to you two, are there good examples of mouse followed the structure of the event available?

    and my second question is for example: read a file using the vi, I created the first, that the value of all the positions of the button on the front panel, and the 'get file vi extension' shows the name of the file on the front panel. then I close the vi and open it again, the button positions is always there where they are, but the file name string is empty.

    How can I save the filename so indicator when I opened that vi still once, if not the other position button file selection, the filename indicator still shows the previous name?

  • How to perform an addition of column values in an insert query that would insert in the 3rd column, and the values how to insert into another table.

    I have two tables (2) RESULT TAB (1)

    CREATE TABLE TAB

    (

    NUMBER OF SNO

    A NUMBER,

    B THE NUMBER.

    NUMBER OF THE SUM

    );

    CREATE AN ARRAY OF RESULT

    (

    NUMBER OF SNO

    NUMBER OF THE SUM

    )

    my doubt is:

    (1) I want to insert a table TAB, my question is how to insert a column to the SUM using the column A AND B... Here im adding two values of the column and store result in the AMOUNT column.

    SNO   A  SUM           

    1 100 150 250

    2 300 100 400

    I want to like this, it is possible with single insert query?


    (2) at the time of the insertion TAB of values that SNO, and the values of table TAB $ insert in the table of RESULTS... is it possible these two inserts at the same time?

    in fact, im using another this table.fro TAB and easy to understand I write like that, please solve this problem

    First, you post in the wrong forum as this one is only for Oracle's SQL developer tool. So you might ask your question in the general forum of SQL.

    Second, you might solve your problems with bind variable:

    Insert tab

    (sno, a, b, sum)

    values

    (: SNO,: A: B: A + B :))

    You should not use sum as column name because it is a reserved word.

    More you cannot insert into two different tables with a single SQL, but you can use PL/SQL to do this:

    Start

    insert into tab values (: SNO,: A: B: A + B :);)

    insert into result values (: SNO,: A + B :);)

    end;

    If you meet sno from a sequence, you could do something like this:

    Start

    insert into values tab (seq_sno.nextval,:,: B,: A +: B) return sno in: SNO.

    insert into result values (: SNO,: A + B :);)

    end;

    Hope that helps,

    dhalek

  • How to choose the value of a string are numeric together and words of letters (for example, TEST)

    Hi all

    How to choose the value of a string are letters (for example, TEST) and all numeric...

    for example
    TEST 123456
    TEST 34567
    123456 ABCD
    1234 TEST
    TESTING 12345
    TEST 1@234$
    YOUR T 123456

    I want the results of the query as below.
    TEST 123456
    TEST 34567

    And I tried to use regexp_like in this case but without success. See the code below.
    SELECT * FROM TABLE WHERE regexp_like (Description, ' [TEST] % & [[: digit:]] + $');

    How can I do this, please answer.

    Thank you

    WF

    If you want to return only the rows that contain the string 'TEST', followed by zero or more space characters, followed by one or more digits?

    How about this:

    SELECT *.

    FROM my_table

    WHERE REGEXP_LIKE(description,'^TEST\s*\d+$')

  • ASD service - how to get the values of Description and reason in the workflow

    Hi all

    I've created a workflow-based service of ASD. When the catalog of the ASD is requested, the first tab is 'Request information' which has the field description and reason. How to access these values to the underlying stream.

    Thank you

    Hello

    Here's a simple solution:

    ASDRequestId = System.getContext () .getParameter ("__asd_catalogRequestId");

    ASDRequest = vCACCAFEEntitiesFinder.getCatalogItemRequest(vRA_CAFEHost,ASDRequestId);

    Request_Reason = ASDRequest.reasons;

    Request_Description = ASDRequest.description;

    Request_Owner = ASDRequest.requestedFor;

  • How to get the value of the outputtext in javascript and send it to backing bean

    Hi Experts ADF,

    JDev Version 11.1.1.7.0

    I have the following: the value of the outputtext must be treated in javascript and the serverlistener method has the same value. I founded this value returns a string that wshould see the mouseover NIJ.

    Help, please. Thanks in advance.

    < af:column sortProperty = "#{bindings." OrderProposalReadClient.hints.exceptions.name}.

    filterable = "true" sortable = "true".

    headerText = "#{suiviewBundle.EXCEPTIONS} '"

    ID = "c16" >

    < af:outputText value = "#{row.exceptions}" id = "ot32" clientComponent = "true" > "

    < af:clientListener type = "mouseOver".

    method = "customJsFunction" / >

    < af:serverListener type = "mycustomserverEvent".

    Method="#{pageFlowScope.ChangeOrderProposalBean.handleServerEvent}"/ >

    < / af:outputText >

    < / af:column >

    JavaScript

    < af:resource type = "javascript" >

    var customJsFunction = function (event)

    {

    var exceptiondata = AdfPage.PAGE.findComponentByAbsoluteId ('ot32');

    AdfCustomEvent.queue ();

    Returns true;

    }

    < / af:resource >

    BackingBean

    public String handleServerEvent(EC ClientEvent)

    {

    Please let me know how to get the value that javascript code sends here.

    Let's say javascript sends the value of outputtext as "001".

    So, I have to check "001" in my list and return a value that appears on mouseover.

    }

    Kind regards
    Roy

    Hello, Roy.

    To use the value on another component of the user interface, I shows an example:

    -code of the page

    shortDesc = "shortDesc" >

    method = "customJsFunction" / >


    -the javascript code

    var customJsFunction = function (event)

    {

    var exceptiondata = event.getSource ().findComponent("ot32").getValue ();

    AdfCustomEvent.queue (event.getSource (),

    "mycustomserverEvent,"

    {param1:exceptiondata},

    (true);

    Returns true;

    }

    -OutputTextCase11.java

    public void handleServerEvent (EC ClientEvent)

    {

    String param = (String) ce.getParameters () .get ("param1");

    RichOutputText outputText = (RichOutputText) ce.getComponent () .findComponent ("ot1");

    outputText.setShortDesc (param);

    outputText.setValue (param);

    AdfFacesContext.getCurrentInstance () .addPartialTarget (outputText);

    }

    I hope this helps you.

    RFH.

  • How to do a function with the same argument multiple times and return values in the variables?

    The problem I have is that I have created a function that is really kind of database.  Basically, a bunch of:

    If (a.value == 'number') {}

    b.value = "this expression."

    }

    Inside of the shape are 2 drop-down lists that return numeric values I want to process through this function and the value of return inside separate variables.

    var a = this.getField ("OPE003. EVEN.1.MIP");

    MIP (a);

    var Result1 = Mip();

    I tried to smash * a * to treat the second field

    a = this.getField ("OPE003. EVEN.2.MIP");

    MIP (a);

    var Result2 = Mip();

    Result1 and result2 are placed in an array, joined as a string.

    In doing so, I always get the last treatment twice more than the final result.

    Can I use a function as a batch processor that way?

    You're right, I changed the code to what you said, but how to pass another value by my function so I can get Result1 and Result2?

    is it

    var a = this.getField ("OPE003. EVEN.1.MIP");

    var b = this.getField ("OPE003. EVEN.2.MIP");

    Result1 var = Mip (a);

    var Result2 = Mip (b);

    var c = new Array [performance(1), result2]

  • How to read the value attribute and put inside?

    What happens if we want to read the attribute value? And want to put the data of runtime on the value of the attribute as

    < psoID ID = "user id" / >

    How to get the value of the ID as the user id. And how to put the run value on it?

    I can think about is that

    /psoID/@ID/value GOLD psoID/@ID/*[local-name () = 'value']

    And how to put the value inside ID ="? »

    Thank you

    Because we are dealing with a structure of type anyType you must use the functions of node (local name) in combination with predicates ([]) to read or write values (node) of the element:

    To read the value for example use the copy rule:




    This wil read:

    /processResponse/result/psoID/@ID

    on the message:





    You will see the value 'B '.

    To write, you use:




    Kind regards

    Melvin

  • Photoshop Elements 8, how to show the value, the hue and saturation of a specific area of a pickture?

    Hello

    Photoshop Elements 8, how to show the value, the hue and saturation of a specific area of the image?

    How to choose the area? Which tool?

    Thank you in advance, Karl

    Make sure first that your range of information is visible: window menu / Info (shortcut F8)

    In this palette, click the small icon 'more '.

    Select "Palette Options".

    and choose HSB to second reading of palette.

  • How to get the value of viewattribute and how to assign the text field. URG

    Hi all,
    I created messagestyled text programmatically and I want the value of viewAttribute.
    I don't know how to define the instance of the view and display attribute.

    I tried this way, it is what is called the vo class but after that i dnt know how to set

    Here the code that I used...

    (1) I create the messagestyled text
    OAFormattedTextBean cctextbean = (OAFormattedTextBean) pageContext.getWebBeanFactory () .createWebBean (pageContext, FORMATTED_TEXT_BEAN, OAWebBeanConstants.VARCHAR2_DATATYPE, "CCText");

    OAMessageStyledTextBean ccidbean = (OAMessageStyledTextBean) pageContext.getWebBeanFactory () .createWebBean (pageContext, MESSAGE_STYLED_TEXT_BEAN, OAWebBeanConstants.VARCHAR2_DATATYPE, "CCId");

    (2) and I called the view object
    OAViewObject ccview = (OAViewObject) AM.findViewObject ("CmpnyDetVO1");

    (3) I want to set the view instance and viewattribute using code. This stage i dnt know how to define.

    (4) I want to know, how to get the value of the attribute to display and how to set the value to the messagestyled text field.

    I'm new to OFA. It's Urgent.

    Thanks in advance
    Fabrice

    Hello

    use
    Import oracle.jbo.Row;

    OAViewObject ccview = (OAViewObject) AM.findViewObject ("CmpnyDetVO1");
    Line line (Row) = ccview.first ();
    Test String = (String) row.getAttribute ("");

    then to set the value of the text of messagestyled

    OAMessageStyledTextBean bean = (OAMessageStyledTextBean) webBean.findindexedchildrecursive ("CCId");
    bean.setText (test);

    Thank you
    Gerard

    Published by: Gauravv on August 4, 2009 09:38

Maybe you are looking for

  • Questions of Time Machine

    I have a MacBookPro Retina Display 2012, running OS X 10.11.6. I tried to use Time Machine to back up this system (a single) on TWO external drives.  Lately, I am having some problems.  In other words, when I try to restore, or even to find a file, I

  • How to copy my files to email contact lists for transfer on my laptop after repair of the manufacturer.

    Hello My laptop almost 3 year, shows signs of age and I have to send it to the manufacturers to replace a keyboard and the reader of cd/dvc. I'll have to save all my pictures and documents on a portable player so I can copy them to the repairedcomput

  • The disk check runs every time you start, but never completed

    Original title: Check Disk computer error... Need help please Hello my computer is unable to check the disk... I believe that my windows vista crashed and when I turn on my computer... it continues to try to check the disk, but it keeps going and it

  • volume control does not close

    I adjusted the volume on my laptop and clicked outside the frame to close, but it won't go away. I tried to open another volume control and she and a new fence will close, but the old a rest. I restarted and it is still there. What can I do to make i

  • Computer freezes and my event log is suggesting a WMI error

    I checked the forums of these resources and tried a few things, but I can't get my laptop to stop freezing on me. My event log indicates a WMI error.  And try a restore of the system in safe mode uses an error code of «the instruction at 0x76042f91 r