How to read the counter NI9411 using C API data?

I use the API C of NOR-DAQmx to read the data of a cDAQ-9188

I am able to read analog voltages and entered digital fine (NI9201 and NI375).

Problems with counters (frequency of measure) (NI9411).

I just get error "all or part of your samples are not yet acquired" after the timeout.

My pseudo-source:

DAQmxCreateTask ("", & taskHandle);
DAQmxCreateCIFreqChan (taskHandle, "cDAQ9188-189E9F4Mod1/ctr0","", 1, 1000, DAQmx_Val_Hz, DAQmx_Val_Rising, DAQmx_Val_LowFreq1Ctr, 0.1, 1, NULL "");
DAQmxCfgSampClkTiming (taskHandle, "pfi0", 5.0, DAQmx_Val_Rising, DAQmx_Val_ContSamps, 5);
DAQmxStartTask (taskHandle);
DAQmxReadCounterU32 (taskHandle, 5, 10.0, (uInt32 *) data, 5, & read, NULL);

My device and any other names are correct?

Thank you.

Have you compared it against examples of api C?  I think that you have the option to install the examples when you install the daqmx drivers.

If you have done this, and it looks the same then I would say you should try Troubleshooting If you produce any data at all.

-Bear

Tags: NI Hardware

Similar Questions

  • How to read the videos recorded using the FLVPlayback component?

    Hey guys,.

    I recorded video using fms and I want to play using the FLVPlayback component. I did some research but I can't find something

    useful, I tried this code:

    FLVPlayback.source = "rtmp://localhost/appname/instancename/video";

    This code does not work. Did I do wrong or something? Can someone tell me please on track!

    Thanks in advance!

    Randy

    You may probably want to use something like a text box can be changed in your swf file, where a path is entered could be played by the FLVPlayback component in the swf file.

  • How to read a counter value for the separation of the two edge before meter is stopped by the second edge (6602 Council)?

    I use a timer/counter with DAQmx 6602. I use the separation of two - available via DAQmx cash edge. Count between the two edges works properly, however I do not know how to read the value of the counter during the counting operation (i.e. after the first edge triggered the beginning of the count, but before the second edge triggered the end of the counting). I'll have to wait for the second goes off the edge of the end of the countdown until I can get a counter value. I need to be able to access the current value of the County during the count operation. This was possible in traditional DAQ. How can it be accomplished using DAQmx?

    Ah shoot - I was afraid that this might be the case (for what it's worth, my series of X returned intermediate values, but the material and the underlying driver are quite different)...

    You just need to take one measure at a time or you are buffer several measures of separation of the two edges at the same time?  So just to take one measure at a time, you can set a task of edges of count using the database internal time as the source using an arm start trigger (first edge) and a sample of clock (second Board) to work around the problem.

    Best regards

  • How to read the files on time capsule

    How to read the files on time capsule from iPad?

    Thank you

    Using an application like navigation on the iPad. More info here:

    Stratospherix - FileBrowser - overview

  • How to read the status of User1 DIP-switch with a cRIO FPGA chassis?

    How to read the State of the DIP switches on a FPGA cRio chassis?

    I work with a cRIO 9022... My idea is to put the system in "service" mode with USER1 switch to IT and communicate with the FPGA via the FPGA - GUI (VI) on the host computer instead via the RT module that is used in normal conditions.

    Any ideas? Unfortunately, I don't have an unused channel on the left... .and (as I know) cannot use the interface RS232 of FPGA.

    Many thanks in advance,

    Luke

    Hi, this is the correct information. You cannot read the FPGA of DIP-switch status. The only thing you could do is to use the function of Reading Switch.vi located under the range of functions-> real-> utilities RT time

    It's how you probably know side host RT and not the FPGA.

    Cordially Virginia

  • How to read the two columns of data from the Port series

    Hello

    I'm reading two columns of data from the serial port.

    Example:

    52439 52430

    52440 52437

    52209 52214

    51065 51070

    52206 52390

    I use the serial of Visa service and I can read the first column of data from the serial port, but I can't understand how to read the second column.

    I want to both sets of chart data.

    I enclose my VI.

    Thank you for your help.

    The analysis of string function takes a "Format string" on top (with the right button of the function and choose Help, which explains all the entries).  In particular, you can say 'Give me two numbers separated by a tab' and the output will be two numbers (whole or floating, depending on the chosen format).  In particular, %d\t%d specifies a decimal integer, , whole decimal.

  • How to read the 32-bit depth .bmp image

    How to read the image, 32-bit depth using LabVIEW .bmp?


  • How to read the analog inputs of one Board of R for (PXI-7851R) series

    You can guide me please with the steps for reading of the analog inputs of a series a. card I use as the target fpga PXI-7851R.

    Have you looked at the examples provided with LabVIEW? There are examples showing how to read the analog inputs.

  • Don't know how to read the results of netstat EI s list? If I received 860592506 bytes sent from 43421482 how to convert MB? And does this mean byte received?

    Don't know how to read the results of netstat EI s list? If I received 860592506 bytes sent from 43421482 how to convert MB? And does this mean byte received?

    Hello

    This shows the total number of bytes transmitted and received via the Ethernet card. This is the total of the amount of use up to this day.

    This includes all the Web sites you have visited and emails you sent, etc..

    You can calculate using one of the following methods:

    Method 1:

    860592506 / 1048576 = 820,72 MB

    Method 2:

    Multiply 860592506 with 9.53674316 * 10 ^-7 that will give us the result in mega bytes.

    860592506 bytes = 820 MB 9MB not, accept my apology for the miscalculation.
    Similarly 43421482 acroos = 40MB

  • M127fn MFP: How to read the meter of pages on m127fn mfp

    How to read the total number of pages printed on this m127fn MFP?  In status screen supplies, it shows only "pages printed with this offer.

    Due to another problem, a technician from HP told me through a hard reset, after which I had to get all of my preferences. So this mave have reset the NVRAM that is associated with the page counter as you suggest. I installed the latest firmware today but the page counter is at 104 and supplies report 634 and "basket is very low" message that is expected since it is a life of aprox 700 starter cart.

    Thank you for your insight and suggestions. I'll keep an eye on the config. page counter when I start a new shopping cart.

  • How to read the data in a device connected to the usb port

    Is there a class or object, or the piece of code in Java that is comparable to the PDQComm32.ocx and the mscomm32.ocx used in VB6? I need to know how to read the data of a device plugged into the usb port of the BBerry. Is it possible to use the BB to read data from a device via a usb cable?

    I'm new in Java and I'm looking for the opportunity to write a project to read the data in a device with this program that can turn on a BB instead of on a pc.

    Thank you

    Did you watch net.rim.device.api.system.USBPort?

    That's what the doc says:

    Provides access to the USB port of the device.

    Avoid using this class in applications, as it is not portable. On the contrary, if you need to access the USB port, use factory CLDC Connector to serve a connection.

    Rab

  • How to read the values of the field of LOV disabled?

    Hi all

    I have a requirement, based on values that we entered one of the LOV fields, then we are arising from the new values based on the value that we entered this field of LOV. And then I must by default new LOV values derived in a two other fields of LOV and then disable them. Once the fields are disabled, then I'm not able to read the values using the pagecontext.getparameter... I get nothing when I tried to read using the pagecontext.getparameter.

    Pointers on how to read the values of disabled field/LOV?

    Thank you
    Clarriiza

    1. you already have values, and that's what you set in the LOV before turning off, right? So why do you need to recover again from the LOV.

    2. are you disabling or making it readonly? I think that if it is disabled, you might still be able to get the value using pageContext.getParameter.

    3 have you tried to get the handle to the LOV bean and get the value using lovBean.getValue (pageContext)?

    4. another Option is to combine the value of a FormValue Bean also (as well as the LOV bean) and retrieve it from FormValue.

    5 BTW, why are, why you're seen LOV if you disable it? Can't you just a TextBox?

    See you soon

    AJ

  • How to read the value of an independent textInput element inside the method?

    Hello

    I had a group of detail based on a readonly viewobject. I added an independent element textInput, you say, EndDate to this group that the user can enter a value inside. Now, when I run the app I select a row in the table and press a button that triggers a method inside a bean. My question is how I read the value in independent textInput (EndDate) within the method element?

    getTable () .getRowData () does not print the unbound attribute. It seems that it only contains attributes underlying viewobject

    I use JDev 11.1.1.4

    Kind regards
    Will do

    Will do,

    You can better create a transitional attribute for that in your view object, so you can use a regular expression #{row.bindings...} to get the value.

    Steven Davelaar,
    JHeadstart team.

  • How to read the Statspack report in Oracle 11.2 g Standard Edition

    Dear all,

    I use Oracle 11.2 g Standard Edition in the laboratory.

    For the performance tuning, how to read the Statspack report?

    Please note I cannot use the feature of Oracle AWR due to the Limitation of the license. Thus, as if I will generate report AWR with Oracle Standard Edition, it will be not correct error and printing "time DB is equal to zero for any report interval."

    Sumit-
    Bangalore, India

    The CWA requires additional licenses - Oracle's Diagnostics Pack.
    http://download.Oracle.com/docs/CD/E11882_01/license.112/e10594/options.htm#CIHIHDDJ

    This is only available for the Enterprise Edition licenses on top. I don't know anyway to the CWA standard edition licenses, so I recommend against using it even where it does not on its own.

  • How to reverse the counting of the af. : column-to-head-cell?

    Hi all

    I'm new to ADF and I hope someone out there can help me.

    In an application of ADF 11g with general of the Tables in the ADF skinning, I need for a particular table ADF to overturn the butchering of the header.
    It's a bad design, I know, but before I just reject the design because they can't do it, I'll try just so someone with more experience ADF knows how to do.

    In the .css file, I have the following:

    AF | : column-to-head-cell {background-color: #72b3dd;}
    do-family: Arial;
    make-weight: bold;
    do-size: 16px;
    color: #FFFFFF;
    padding-left: 15px;
    border-top: 2px solid #acd1eb;
    border-bottom: 2px solid #acd1eb;
    border-right: none;
    border-left: none;
    height: 47px;
    }

    If for example I try to add an inlineStyle for the af:column tag:

    < af:column sortable = "false".
    headerText = "first column heading.
    inlineStyle = "" background-color: Fuchsia; ">"

    -stripping for the cells of the row (e.g. af |: data in the table-row af |: column-cell data) may be overules, but not the header cell (af |: column-to-head-cell)

    Does anyone know how to reverse the counting for a column header cell in a Table of the ADF?

    Hello

    Why don't you use the inline style property and not the skin file? If you must run instance according to the count, then adds a styleClass name to the table. For example 'myHeaderChangeStyle' change the def of skin to

    AF | : column-to-head-cell {background-color: #72b3dd;}
    do-family: Arial;
    make-weight: bold;
    do-size: 16px;
    color: #FFFFFF;
    padding-left: 15px;
    border-top: 2px solid #acd1eb;
    border-bottom: 2px solid #acd1eb;
    border-right: none;
    border-left: none;
    height: 47px;
    }

    .myHeaderChangeStyle af | : column-to-head-cell {}
    background-color: Fuchsia;
    }

    Frank

Maybe you are looking for