HAVE sampling frequency is divided by the number of channels + 1 for simulated ENET-9213, WLS-9213 and USB-9213

Hello

In the code in the example attached, I create a task with a single channel of AI.

I get the maximum sampling frequency using DAQmxGetDevAIMaxSingleChanRate (or DAQmxGetDevAIMaxMultiChanRate), both return the same value of 1351 s/s.

When I try to configure the sample calendar using DAQmxCfgSampClkTiming at the maximum sampling frequency clock he does not accept the rate and returns the following error. Note that the error message shows 2 channels, even if only a channel has been added.

OUTPUT:
DAQmx error:
Sampling frequency is greater than the maximum sampling frequency for the number of specified channels.
Reduce the sampling frequency or the number of channels. The increase in the conversion rate or
reduce the time of the sample can also mitigate the problem, if you define one of them.
Number of channels: 2
Sampling rate: 1.351351e3
Maximum sampling frequency: 675.675676

Why the device driver thinks I have 2 channels in the task, when a channel has been added?

Please find the code to reproduce this problem attached.

Kind regards

whemdan

The MathWorks

Hello w,

By default, the ENET/WLS/USB-9213 in NOR-DAQmx module has the AI. AutoZeroMode the value of the DAQmx_Val_EverySample property. This causes NOR-DAQmx acquire the channel of the internal path of the unit (_aignd_vs_aignd) on each sample to return more specific measures, even if the operating temperature of the device moves over time. If you need the sampling frequencies higher than this allows, you can call DAQmxSetAIAutoZeroMode(..., DAQmx_Val_Once) (who acquires the formatting string when you start the task) or DAQmxSetAIAutoZeroMode(..., DAQmx_Val_None) (which disables the setting entirely).

Note that for measures by thermocouple with cold junction compensation sensor of the 9213 NOR, NOR-DAQmx acquires channel built-in CJC (_cjtemp) on each sample as well, for the same reason.

Brad

Tags: NI Hardware

Similar Questions

  • Determine the number of channels selected for traditional DAQ

    The blocks 'DAQmx task' and "Traditional DAQ Channel" look pretty similar (see attachments). The DAQmx block ist an individual selection of channels and I am able to determine the number of selected channels.

    Now I am trying to determine the number of selected channels to a traditional DAQ, but the property DAQmx block does not work here. I already tried the trad to some form of blocks. Range of data acquisition, but failed.

    Any idea?

    In traditional DAQ, there are several ways of specifying the list of channels. Assuming that your picture shows how you use your channel list is just a string of delimited by commas. Wire a constant to a string array node worksheet and specify "comma" as the separator and the number of columns must tell you the number of channels.

    Ben

  • Sampling frequency of HAVE is incorrect for simulated ENET-9213, WLS-9213, and USB-9213

    Hello

    ENET-9213, WLS-9213 simulation and devices USB-9213, I'm able to correctly get the sampling frequency of I = 1351 samples/s using DAQmxGetDevAIMaxSingleChanRate, which is incidentally on the value of spec'ed of 1200 s/s.

    However, when I create a task and add a voltage channel and then HAVE the sampling frequency of the task of query, I get a sampling rate of only 9 samples/s. I tried the same code with other devices and I get the sampling frequency corresponding to the device data sheet, it seems THST this problem is limited to 9213 devices.

    Why sampling returned by the task using DAQmxGetSampClkMaxRate rate returns than 9 s/s.

    And why the rate of conversion of DAQmxGetAIConvRate only 18 s/s.

    I enclose the test code which may be used to reproduce this problem.

    Kind regards

    whemdan

    The MathWorks

    Hello

    When I tried this with a USB-9213 simulation, I used the Sample clock Max Rate, as well as the Rate.vi of AIConvert:Max property node.  I could see that for 1 channel, I could spend up to 675.67/s, and I couldn't for 16-channel get79.49S/s (which total is equal to 1271 S/s, which is in the specifications).  The multichannel and single channel, I could get an AIConvert Max Rate of 1351.35.

    Something that could happen is that you do not explicitly set this device runs in mode high speed.  You'll want to set the property Get/Set/rest AI_ADCTimingMode channel at high speed, and you should see much better results in this way.

    Something else to note - I use DAQmx 9.0

  • The sampling frequency is divided between channels USB-6211

    I use a USB-6211 DAQ card.  The jury is announced with a rate of 250 kech. / s.  I started to take action with 2 channels and could not get the frequency of sampling of 125kHz, then when I tried to make measurements on 5 channels, I could get a maximum of 50 kHz sampling frequency.  This figure of 250 kech. / s is really the sum on all channels, or is there a way to get that channel?

    I have only a simple Laview program with a while loop, 1 assistant DAQ entry with 5 channels, assistant DAQ 1 exit with 1 output channel, box 'Relaxation and door' to catch a progressive input signal, a smoothing filter and graphics.

    250 kech. / s is an aggregation rate as shown on the first page of the document specifications.  This means that the device has a single A/D converter that is shared by all channels under analysis.  According to th etime to the multiplexer and all time for the internal amplifier, your maximum rate may be slightly less than 250,000 / N where N is the number of channels.

    Lynn

  • VM is to have 1 CPU, can we reduce the number of core for CPU.

    VM is to have 1 CPU, can we reduce the number of core for CPU.


    Capture.JPG

    In this article: the number of cores per processor in a virtual machine (1010184)

  • How to detect the number of channels on an oscilloscope?

    I have various models sitting around the laboratory, some two-channel, a few four-channel oscilloscope.  I would like for my program to be able to detect the number of channels is available.

    I can just tell my program how much string is available based on the model number, but is there a VISA command to request scope directly what channels he has?  I would also be able to ask what, if any, ability to function math there.

    "all drivers of the oscilloscope must return the instrumentID after initialization, and that should be enough to know the number of channels.

    What Albert was referring to is that all compatible drivers IVI in their base class interface have an attribute/property that indicates how many channels has the scope.

    If you don't want to use the driver of the IVI for the scope then maybe download some of the drivers and check the source code to see how they calculate this dynamic repeated capablity.

  • is the number of identical series for a mac and windows version

    I bought CS6 standard in 2012.  This is the mac and windows version. Is the number of identical series for both?  I started with windows and now have a mac pro.  Adobe does not accept the serial number.  I already have activated 2 computers.  I can't tell if Adobe does not accept the serial number because I reached the max activations or the mac version has a different serial number.  It just says: the serial number is not valid.

    Any suggestion would be appreciated.

    IIRC, they are different - you must contact technical support directly to solve this - we cannot do anything here to questions of activation.

  • How to maximize the number of RDP session for Remote Desktop connections in windows 2008 server?

    1. How to maximize the number of RDP session for Remote Desktop connections in windows 2008 server?
    2. By default, the system says 2. and to not change/increase.
    3. is everything permissible special necessary to buy?
    Hello
     

    Your question of Windows is more complex than what is generally answered in the Microsoft Answers forums as it is related to maximize the number of RDP session for Office remote connections to the server. Appropriate in instances of Windows Server.

    Please post your question in the Forums of Windows Server.

  • Device j have a windows xp but I n can't find driver for 1 cmpatible yet mp3 player and sensible is connected automatically

    I have a windows xp but I n can't find driver for 1 cmpatible yet mp3 player and sensible is connected automatically

    Hello

    Unfortunately, the community of Windows is able to provide support in English. The following URL will help ensure that you receive support appropriate for your location information. Open the link and select your region from the drop-down list, and then click the arrow to continue.
    http://support.Microsoft.com/common/international.aspx

  • writing cannot be porformed, because data channels number does not match the number of channels in the task

    Hello

    I'm writing analogues of the buffer to several channels using NOR-6723.

    For some reason any, whenever I go to the buffer double function (1-d) that contains buffers for all channels.

    I always find myself with exception indicating that the numbers of channels in the data are '1 '.

    I use c#:

    Task m_TaskHandle = new Task();
    
    string sChannelsList = "Dev2/ao21:23";
    
    m_TaskHandle.AOChannels.CreateVoltageChannel(
    
    sChannelsList,
    
    "", 0, 5, AOVoltageUnits.Volts );
    
    int iNumberOfSamples = 4;
    
    double dSamplingFrequency = 1000;
    
    m_TaskHandle.Timing.ConfigureSampleClock("",
    
    dSamplingFrequency,
    
    SampleClockActiveEdge.Rising,
    
    SampleQuantityMode.ContinuousSamples,
    
    iNumberOfSamples /* Only relevant if mode is FiniteSamples */);
    
    // Data code is heredouble[] adSampleBuffer;// array values removed from this code snippet (here i have function that generates data)// array size is: num_of_samples * total_channels (in this case 4 * 3)
    
    AnalogSingleChannelWriter ChanWriter = new AnalogSingleChannelWriter(m_TaskHandle.Stream);
    
    ChanWriter.WriteMultiSample(false, adSampleBuffer);
    
    m_TaskHandle.Start();
    

    Not sure I'm I missing, how the MSTDIO determines the "number of data channels", I receive as an exception, it is always equal to 1.

    would appricate to help.

    Thank you.

    Hi idanbis,

    As the snippet you posted, you can create more than one channel using the ao21:23 range. That said, you should use AnalogMultiChannelWriter to configure your write instead of AnalogSingleChannelWriter operation.

    To write using AnalogMultiChannelWriter::WriteMultiSample (boolean, double, you must know the data you want to write must be stored in a 2D array.) Each element in the first dimension of the array corresponds to a channel in the task, while each item in the second dimension, to a sample of write on its channel. For example, that:

    Double [,] data = new double [numChannels, numSamplesPerChannel];

    Then:

    data [0, 0... numSamplesPerChannel]; It is the set of all samples in the first string (ao21 in your code).

    I hope that was helpful. Let me know if I left any doubt remaining.

    Best regards

    Anzurio

  • limit the number of query results for content Presenter CMIS

    Hi dear,

    I have a problem. I added content present on my page in Jdev ide, not at run time. And I need a query including the limitation of the number of results.

    My query is: ${' SELECT * from ora: t:IDC:GlobalProfile WHERE the ora: p:xRegionDefinition =-"CSGMNEWS_REGDEF\" ORDER BY ora: p:dInDate DESC'}


    I just want to add a number parameter.

    Can you help me please? How can I limit the number of results?

    Kind regards

    Yacouba

    Published by: erdo on 21.Mar.2013 18:37

    Hello.

    Content Presenter has a setting (maxResults) to set the maximum returned results:

    Sample:

    xmlns = "http://xmlns.oracle.com/adf/controller/binding" Refresh 'ifNeeded' = >







    When you add your CP to a page at design time, you can access the pageDefinition and provide more values for attributes of CP.

    I hope this help you.

    Kind regards.

  • generic calculations with changing the number of channels

    Hello

    I want to do some math basic with a flexible number of channels. The point is that I get an error if I specify strings that do not exist in my calculations. For example:

    CCh("[1]/CNV",2)-CCh("[2]/CNV",2) + CCh("[3]/CNV",2)-...

    I think that it should be possible to do this using a script, but you have no idea how to do it only with the calculator?

    Thanks in advance

    Jeremy

    You can do this easily using the recoding for VBScript method described in the following KB:

    http://digital.NI.com/public.nsf/allkb/B769AE10EDB656D28625692D00583166?OpenDocument

  • How Oracle 'row_limiting_clause' for the number of lines. percent for HUNDRED lines works in Oracle 12 c?

    Platform: Windows 7 x 64 database: Oracle Database Enterprise Edition Release 12.1.0.2.0 12 c - 64 bit.

    How row_limiting_clause Oracle to rowcount. percent for HUNDRED lines works in Oracle 12 c?

    Row_limiting_clause Oracle is acting funny. In the code below, the 'fetch_test' table has 10 rows

    Case 1 When using row_limiting_clause with first extract 0.5 lines only I get, no line selected

    Case 2 When use the row_limiting_clause with the first rows only 5 percent clause I get,1 row as output.

    This means case 1! = 2 cases [0.5! = 0.5 (5 percent of 10 lines)]

    SQL > select * from fetch_test;

    COL1 COL2

    ---- ----

    1A

    2B

    3 C

    4 D

    5 E

    6 F

    8: 00

    5%

    : j

    10 J

    10 selected lines.

    case 1:

    SQL > select col1 from fetch_test

    2 first extract 0.5 lines only;

    no selected line

    case 2:

    SQL > select col1 from fetch_test

    2 extract the first rows of 5 percent;

    COL1

    ----

    1

    1 selected line

    What Oracle Documentation has to say,

    https://docs.Oracle.com/database/121/SQLRF/statements_10002.htm

    If the number of lines has a fraction, then the fractional part is truncated. If the number of rows is NULL, 0 rows are then returned.

    This explains the case 1, but I can't find any possible explanation in case 2 in my example above. and there is no mention on percentage clause in the Oracle Documentation.

    Already asked on stack - overflow.but I got the answer regarding "assumes percent Gets the cycle of 5% to 10%.

    No idea why Oracle doing what they do on the documentation!  I hope that now you have the answer: a rest (when you use percent in the line limiter) will ALWAYS return a number integer, rounded upward.

  • How can I get the number of a random process to use in math´s and show the solution to the user?

    I wrote this function and I try to show the number of seconds that the user had to sooner or later the stopbutton to the user click.

    its about to hit stop councelling while inside ther is a random number already, but the user do not know or see.

    the eye opens in a random between 40000 and 100 milliseconds. If they open the user should click on stop without seeing them. so his Sensa.

    I just tried.

    This code is on the mc with the eyes to make them open at random. This is the second image the main code of the time. 1 frame is the Start button and a small description. on the second stop button and closed eyes with the script here as I have already said. and on the framework of the 3rd is the end wher it should be displayed to the user. That's how I tried. Please let me know any suggestions and or other solutions to my problem! If you need to see my flashfile help me just let me know. I send to you or something :-)
    MIC (at) hellrec.at


    function randomRange(minNum:Number,_maxNum:Number):Number

    {

    return (Math.floor (Math.random () * (maxNum - minNum + 1)) + minNum);

    }

    var myTimer:Timer = new Timer ((randomRange (100, 40000)), 1);

    myTimer.addEventListener (TimerEvent.TIMER, openeyes1);

    myTimer.start ();

    var: duration: uint = getTimer();

    function openeyes1(e:TimerEvent):void {}

    gotoAndPlay (26);

    e.updateAfterEvent ();

    }

    to save the use of number:

    function randomRange(minNum:Number,_maxNum:Number):Number

    {

    return (Math.floor (Math.random () * (maxNum - minNum + 1)) + minNum);

    }

    var randomNum:Number = randomRange (100, 40000);

    var myTimer:Timer = new Timer(randomNum,1);

    myTimer.addEventListener (TimerEvent.TIMER, openeyes1);

    myTimer.start ();

    var: duration: uint = getTimer();

    function openeyes1(e:TimerEvent):void {}

    gotoAndPlay (26);

    e.updateAfterEvent ();

    }

    p.s. Please check the useful/correct.

  • How to find the number of lines executed for a single query in oracle

    Hi all

    I have a query that will return the details according to certain search criteria.
    Here I want to how many lines is performed (as a column) for the given search criteria, including the details of the column table... in a single query.



    Thanks in advance
    Geraldine

    I want all the details and number of rows in table...

    SQL> select ename, job, count (*) over () total
      from emp
     where deptno = 20
    /
    ENAME           JOB                     TOTAL
    --------------- ------------- ---------------
    SCOTT           ANALYST                     5
    SMITH           CLERK                       5
    JONES           MANAGER                     5
    ADAMS           CLERK                       5
    FORD            ANALYST                     5
    
    5 rows selected.
    

Maybe you are looking for