Bug: DAQmxReadAnalogF64 (DAQmx_Val_Auto, DAQmx_Val_WaitInfinitely) sometimes overruns or inadequate returns of samples, loop

When you use: DAQmxReadAnalogF64 (DAQmx_Val_Auto, DAQmx_Val_WaitInfinitely).

set in over (and), sampling mode

This is supposed to:

-block forever, until the selected number of samples is available

-return exactly what a lot of samples.

I then run in a redeclenchables loop (some parameters omitted for clarity):

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

DAQmxCreateTask()

DAQmxCreateAIVoltageChan()

DAQmxCfgDigEdgeStartTrig ("PFI0", DAQmx_Val_Falling);
DAQmxCfgSampClkTiming (OnboardClock, 100_Hz, DAQmx_Val_FiniteSamps, 100_samples)

DAQmxSetReadReadAllAvailSamp (FALSE);

DAQmxTaskControl (DAQmx_Val_Task_Commit)

While (1) {}

DAQmxStartTask()
DAQmxReadAnalogF64 (DAQmx_Val_Auto, DAQmx_Val_WaitInfinitely, & samples_read);

/ * samples_read should be 100. process the data * /.
DAQmxStopTask (taskHandle);
}

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

What he must do, is give me exactly 100 samples, every time that happens the external trigger.

This does not work most of the time. But there is about a 10% chance on an iteration of the loop either:

samples_read<>

or

I get error - 200278, indicating that the task has stopped prematurely.

I think that it is a bug in DAQmx, in the case of the NI 4462.

How should I proceed? (OR does not have a public bugzilla, and I can't continue the investigation myself without the libnidaqmx.so.1.6.0 source)

Thanks for your help - Richard

P.S. I have set a complete program (in C) that illustrates the problem. This is essentially the code snippet above, but in an executable form.

P.P.S. initially started in this thread, it deviates so much from the original title, it seems useful to create a new thread:

http://forums.NI.com/T5/Multifunction-DAQ/how-can-I-detect-a-missed-trigger-i-e-2nd-trigger-arrives-...

Hi Richard,

I was able to reproduce the - error on my machine Windows using C 200278. What happens if you delete the validation task? That seems to prevent the error from happening. If this is the case on your machine so, I drop a request for Corrective Action for this question.

Tags: NI Hardware

Similar Questions

  • Bug: On the screen sometimes level indicators shows half serving only

    Usually after the resumption of hibernation as the screen shows on the left half of the indicator only. X 220, Windows 7 SP1 x 64, Windows Classic theme, the OSD version is 6.60.03.

    Solves it last "Hotkey features integration for Windows 7" version 3.81.0100 (version 6.62.01 of the on-screen display). "."

  • Bug (?) in preview (audio) in 2015.3 (13.8) - Audio looping when you use option frames skip

    Can someone confirm a new bug with audio playback while previewing? It seems to happen when you use the option to skip frames. This causes the audio preview loop after a few seconds, even if the video preview continues to run curly.

    It happens to me on Windows 7 and 10. The audio is a .wav file.

    The more I do the amount of frames ignored, more audio looping section becomes, so try affecting executives jump 5 for the most obvious result.

    Memory and cache purging does not solve this problem.

    This problem is fixed in update fixes after effects CC 2015.3 (13.8.1). This update, available now, can be installed by using the creative Office Cloud app, or by choosing Help > updates within any Adobe application.

  • Bug? Photo ring String property and values' returns the error 1054 in LV 8.5

    This property must exist for a ring photo?

    Ben

    James W wrote:

    I take it from what I read here that there as no way to programmatically update the values of a ring of photo running then?

    ...

    You are right that a RING of photo may not be populated at run time. On the other hand an image can be updated.

    This thread has many links to examples of photo.

    These tags can also help start with the photo of LV.

    Have fun!

    Ben

  • Small Bug: Detection of people - O key does not return to the grid view

    Windows 7

    When I tap the O key, I will in face detection module.

    But when I hit the e key O once again, I do not return to the display of the grid.

    To do this, I have to click on this icon to return to the display of the grid.

    The grid view is always key G

  • Blu - ray error: "file already exists", Code: "6", "Audio buffer overruns. Total too high sampling rate

    I hope someon can help out me here - I'm stuck in my tracks.    I read through many discussions on this topic, but do not understand what is happening here.    CS6.  Note: I used even before I put this material on a disk.  I currently have a separate sequence paired down, with only about 1/5 of the entire production.   1920x1080i, 29.97, H.264 Blu - ray, VBR 2-pass, PCM inside PP to produce .m4v/.wav.  This is what confuses me - I tried a target of 10 and a maximum of 20, and I still get this error.   I tried different bits max rate 'default' settings for transcoding in again.    Note the timecode listed "0.000000" - maybe someone said something.    I don't really understand yet again, so maybe it's something that I've set wrong in still vs my exports?

    Capture.JPG

    Good news!  Suggestion of Stan update seems to have solved the problem.  I think it was on the side of the PP, not yet.   I have updated both, but still using to try to make a comic about made export with the PP before update failed.   But once I upgraded to PP, a new rendering, etc. I am able to build a BD.

    Disappointment, before I had installed all updates patches, but later everything uninstalled and ran the vacuum cleaner, try to debug another problem.

  • bug in the queue with loss

    Hello

    In my project, I use the processes of consumers/producers using queues for transfer of measurement data

    When I remove elements in a process of consumption, a queue that is initialized to the size one and containing of waveform, sometimes empty items are returned. Is this a known bug?

    I have a workaround to do this, check if the element is empty.

    / Roger


  • Why schedule sometimes lets me use 24 HR time and sometimes not?

    Time preferences is set to 24 hours of time. There is no other choice for this in calendar preferences. A few times, I can enter 13 + hours and sometimes, he refuses and returns 1 if I go higher than 2 for the second digit. What is going on?

    Do you have 24 selected in system-> region and language preferences?

  • Classic blackBerry BB classic OS10 battery monitor bug

    Not sure why a company of the size of the Blackberry Limted cannot host JPEG files on their server for troubleshooting purposes.  If an admin email me, I will answer with screenshots.

    Anywho, the use of battery controller, located inside devmon has a cool little chart that has recently been distorted (hard to explain without screenshots) when you use the option ' since last Charge. I use the Release10.3.2.556/OS Version of the 10.3.2.858 software. On AT & T.

    Hello and welcome to the community!

    wtfeva wrote:

    Not sure why a company of the size of the Blackberry Limted cannot host JPEG files on their server for troubleshooting purposes.

    It's a thing of spam prevention... you must post a number of times before you can include pictures. I don't remember how much, but I remember there are some minimum number of messages, you need to do before that is allowed. Be a totally public forum, getting us slammed with spam a lot.

    wtfeva wrote:

    If an admin email me, I will answer with screenshots.

    There are no admins here... see:

    I hope that this information will be useful to you. It is a community of users, not a string all help really formal BB, your carrier, etc.

    wtfeva wrote:

    Anywho, the use of battery controller, located inside devmon has a cool little chart that has recently been distorted (hard to explain without screenshots) when you use the option ' since last Charge.

    Has nothing changed just before this behavior started? A new application? An update of sorts?

    Did you base... restart?

    wtfeva wrote:

    I use the Release10.3.2.556/OS Version of the 10.3.2.858 software. On AT & T.

    It's a pretty old OS now... I don't know what AT & T is on your model, but the most recent production OS is 10.3.2.2789... much further along 858. If the automated methods don't offer it, then you can consider using unofficial methods to get it.

    If you can't think of something of causal (from above) or if you want you can move to a more recent operating system level, these methods are available:

    Official methods, which will be controlled as to what exact OS versions are available:

    Non-official methods, which are cleaner and allow you to choose a version of the OS that maybe your carrier (or anyone they control your offers) delays in approval:

    Of course, before you start this, you want a good backup link, a manual copy of the memory of your device to your PC and complete documentation of your configuration (identification information of account, adding applications, configurations, etc.). Sometimes, restoring a backup returns unit corruption even, must be eliminated and reconfiguration from scratch can solve that.

    Be aware of the risks of 10.3.2 however... There are two things to worry about. First of all, be 100% sure that you know your BBID identifiers... If you do not, you may make your useless device to anyone, including yourself. Second, once you move to 10.3.2, you cannot fall back to 10.3.1 or earlier, by any medium (for example, even the unofficial AutoLoaders can not overcome this restriction anti-secours).

    Good luck!

  • BUG? Interactive report select other results of the tab of Page not found

    Hi all

    I have recently updated our installation of the Apex to version 4.0.1 on Oracle 11.2. There, I found the following problem, for which I don't know if it of a bug or not:
    Steps to reproduce:
    1. Select a sample application and open a page that contains a report interavtive
    2 run the page
    3. click on "Actions" and select "filter".
    4. wait for the filter to display, and then select another tab.

    The result is a page not found. The address bar displays the link: http://apex.oracle.com/pls/apex/wwv_flow.accept with no parameters.

    I tried to use a different model and finally I turned to the sample applications. It ends up that question.

    My questions:
    1. is it already known issue
    2. is there a work around? because this can be very annoying for our client.

    Thank you!

    Select this option.

    Published by: user13295208 on 25-Oct-2010 02:54

    Hi Mark,

    I was able to reproduce the problem based on your steps. Thank you! I I produced bug # 10238450 that has already been set for 4.0.2

    Concerning
    Patrick
    -----------
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Traditional DAQ and DAQmx data representation

    Hello

    I use a card PCI-6013-NOR and used DAQ_Op and DAQ_Start to acquire the data of the device (with game 1 win), who have a CCD camera to acquire data.

    I migrated the DAQmx application, it works fine, but the intensity of the curve drawn using data is lower than expected.

    During the migration of the old code, I replaced the logic below DAQ_Op

    /*------------------------------------------------------------------------------------------------*/

    TaskHandle ulTaskHandle = 0;

    DAQmxCreateTask ("", & ulTaskHandle);

    Double dMaxVolt = 5.0;
    Double dMinVolt = - 5.0;

    DAQmxCreateAIVoltageChan (ulTaskHandle, "Dev1/ai0", "", DAQmx_Val_Cfg_Default, dMinVolt, dMaxVolt, DAQmx_Val_Volts, NULL);

    / * This function handles various combinations to select the signal.
    * - Select_Signal (1, ND_PFI_2, ND_IN_CONVERT, ND_HIGH_TO_LOW)
    * - Select_Signal (1, ND_SCANCLK_LINE, ND_SCANCLK, ND_LOW_TO_HIGH)

    */

    RouteSignal();

    DAQmxCfgSampClkTiming (ulTaskHandle, NULL, dSampleRate, DAQmx_Val_Rising, DAQmx_Val_FiniteSamps, ul64SamplePerChan);

    DAQmxStartTask (ulTaskHandle);

    / * Allocation of memory for data acquisition. */
    Double * pDataBuf = new double [ulCount + 1];

    long lSamplesToRead = (long) ulCount;
    long lSampsPerChanRead = 0;

    DAQmxReadAnalogF64 (ulTaskHandle, DAQmx_Val_Auto, DAQmx_Val_WaitInfinitely, DAQmx_Val_GroupByChannel, pDataBuf, lSamplesToRead, & lSampsPerChanRead, NULL);

    If (ulCount! = (unsigned long) lSampsPerChanRead)
    {
    }
    on the other
    {
    for (unsigned long ulIdx = 0; ulIdx)< ulcount;="">
    {

    / * psBuffer is a short table.

    * Here, I'm trying to convert and copy the new buffer (double value)

    * to the old buffer (short values)

    *

    * I guess that old values will be in the millivolts range.

    * To convert the values of v of the buffer in millivolt I am multiplying by 1000

    *

    * I don't know if it is true.

    *(psBuffer+ulIdx) = static_cast((*(pDataBuf+ulIdx) * 1000));
    }
    }

    I'm not sure whether the conversion I did new buffer for old buffer is true. I need to create a DAQmx_Val_FromCustomScale to get the same value DAQ_Op returned?

    Could you find something wrong with the logic? How can I get the same DAQ_Op value returned by the double buffer returned by DAQmxReadAnalogF64() is there any best mechanism available?

    concerning

    Praveen.DA

    The reason for your bug is that you apparently did not understand what does the DAQ_Op function. In help for this, it is clearly stated that the data returned is I16. Your choice of data F64 was an obvious conflict with how you have porgrammed traditional in DAQ board. The Council resolution doesn't really matter. The big difference is set to scale and without scales.

  • MISSING ifconfig eth0 eth0 Link encap HWaddr LAN:eth2

    Hi team!

    I have a problem with the installation of the Cisco virtual driver in a server vmware UCS (be6k).

    In all packages (conductor, expressays), I have the same alarm, saying: hardware failure:

    LACK of LAN:eth2 ifconfig eth0 eth0 Link encap HWaddr 00: 0C: fallen 29:F9:51:8 B BROADCAST MULTICAST MTU:1500 metric: 1 RX packets: 0 errors: 0:0 overruns: 0 frame: 0 drop of TX packets: 0 errors: 0:0 overruns: 0 carrier: 0 collisions: 0 txqueuelen:1000 RX bytes: 0 (0.0 b) TX bytes: 0 (0.0 b) ifconfig eth0 rc 0 ifconfig eth1 to eth1 Link encap HWaddr 00 : 0C: fallen 29:F9:51:95 BROADCAST MULTICAST MTU:1500 metric: 1 RX packets: 0 errors: 0:0 overruns: 0 frame: 0 fall of TX packets: 0 errors: 0:0 overruns: 0 carrier: 0 collisions: 0 txqueuelen:1000 RX bytes: 0 (0.0 b) TX bytes: 0 (0.0 b) ifconfig eth1 rc 0 ifconfig eth2 eth2: information interface read error: device not found ifconfig eth2 rc 1

    How to solve this issue properly?

    Thank you very much for your help!

    Installation of the conductor and the OVAs Highway should include all required local networks.  If you connect to VMWare, you see 3 available for each virtual computer LANs?  Looking through the search for bugs, it seems that sometimes this error can appear if the hardware installed on the virtual machine is not compatible, see CSCuv33488.

  • Toshiba Satellite Pro M30 & Power Saver stop error

    Hello!

    I am struggling with this problem for months... the latest version of Eve on my toshiba satellite pro m30 running windows xp with service pack 1 installed gives a message box with an error message when the stop and I'm unable to eliminate this error. Unfortunately, I can't consider reinstall the system from scratch, because there are many other applications installed and I can't lose the settings for them. I read the forums and realized I'm not one of the problems with toshiba power saver. I'm even lucky to successfully at startup started it! Yet, it hangs at shutdown. It's pretty boring. also, I downloaded all the latest updates of this site for my laptop, including even the bios update.

    I would like the opportunity to be able to download the version without toshiba this site energy saving bug, and I'm sure many other people would appreciate the patch too!

    any comment on that?

    Andrew.

    Hello

    If your laptop is installed correctly it should work well. All the software has been tested. The only reason for your problem may be additional software that you have installed later.

    It is also possible that it may be caused by an Antivirus application. Maybe an application runs in the background? There are many reasons that may be responsible for this problem.

    If you reinstall your Notebook of recovery CD it will not work properly. It is very unjustifiable to write on some versions bug-free. I sometimes have problems with BONES, but almost always after using some freeware.

    Good bye

  • Weather widget broken on 10.10.5

    Anyone know of this bug on Yosemite 10.10.5?  All of a sudden the Weather Widget can't find location of legitimate cities and zip codes.  All deleted, rebooted, only works Cupertino CA default.  VERY annoying.

    Thank you

    The server crashes sometimes. She usually returned after a while.

  • PCIe-1429 randome time-out errors

    I use a card National Instruments PCIe - 1429 Camera Link which gives timeout errors about 20% of the time every time that the show clock is stopped and restarted.

    The problem I see occurs for a 1-tap 16-bit and 8-bit 8 - tap camera configuration.  Every time the camera changes modes show link camera clock is momentarily interrupted, and PCIe-1429 is unable to acquire an image of 20% of the time.

    In Measurement & Automation Explorer, it returns the error: "a timeout error has occurred while you wait for the specified event.  If you expect a picture, make sure all the video data is acquired during the period.  If you wait for a signal, check that the assertion of signal occurs within the period.

    Now, I know that my timing is correct because if I simply stop the clock to show again the PCIe-1429 will begin to acquire images.  He was to acquire and then always correctly the images until the next time the clock of transmission is interrupted.  It is on a probability of 20% of a timeout error if the clock of transmission is interrupted.  It behaves like the phase PCIe-1429 liaison camera receiver locking loop has re-synchronization problems.

    Our camera (an intern built Kodak) uses the National Semiconductor DS90CR287 channel link transmitter.  When the PCIe-1429 gives a timeout error, I check the clock of transmission DS90CR287 on an oscilloscope and it looks always good.

    Is this a known issue with the PCIe-1429 or a known sender of DS90CR287 problem?

    Apparently, there is a bug in the DS90CR287 channel link serializer.  The phase lock loop, sometimes fails to produce a clock output series of acquisition card and the operating cycle if the input clocks are interrupted.  A phase lock loop should be able to recover from that.  We noticed that National Semiconductor changed their sheets to require power cycling the DS90CR287 after all of the input clocks are interrupted.  We have implemented the procedure of power cycle and time-out errors now appear to have stopped.

    All fixed!

Maybe you are looking for

  • I saved in the folder in which are stored all the links or brands?

    My computer is broken. I need to save all the brands or the links I saved in Mozilla. File in which are stored all these marks on websites, in that I am saved? I can not find this folder or the prompt.

  • Can Tecra M8 - I install a VGA card?

    Hi, I was a little disappointed with my purchase of my laptop Tecra M8 because most of the games don't work correctly. My question is weather or not I can install a VGA card to make the games such as Call of Duty 4, Warcraft Frozen Throne and World o

  • Satellite M70 - 160 upgrade memory module RAM

    Hey, guys... I am the proud owner of a Satellite M70-160.I am considering upgrading my ram memory (I have 512 ddr2 at 533 mhz) and I woul like an another 512 and I have 2 problems. The first is that the memories of toshiba is the best? I mean they of

  • How to convert a pdf attachment to a word document?

    I received evidence for an article that I wrote to make final corrections but when I open the file it is a set of symbols that I can't read.  Please help, I'm on a deadline.

  • Authorization to administrator

    When you try to delete a folder of pictures, I get a message saying that I need administrator permission... I am the administrator.  Can someone please w / this?  I'm a newbie, thank you.