Trouble with DAQmxReadDigital Timeout (200284) when used in a threaded loop

Hi,
I'm using a NI6537 for fast Digital Acquisition. The board is installed on a NIPXIe-1062 crate controlled by a NI PXIe-8130 controller, where the software is running. I'm reading all the 32 lines as a single channel, at 50MS/s, and the clock is the one provided by the board itself. I put the timeout as infinite, but I also tried various other settings. As I'm reading a finite samples bunch of 524288 samples, at 50 MS/s, a timeout of 1 second should be by far sufficient.
As far as I put the DAQmxReadDigitalU32(...) call in a simple loop I have no troubles, everything working fine.
for (...) {
   DAQmxReadDigitalU32(...);
} // That loop works perfectly
while, if a have a loop inside a multi-thread process, or simply I give the system some freedom inside the loop, sometimes I get the timeout error. Note that the time cost of the Sleep() function is just of some millisecond, so there is no reason for the call to timeout.
for (...) {
   DAQmxReadDigitalU32(...);
   Sleep(1); // To release system resources...
}// That loop stops erratically
With the last code, I can also see that actually the board did not complete the reading, i.e. is returning less samples than what requested. It seems to me that someting is stopping the acquisition, but I'm not able to figure what. The same happens even in LabView, using the VI read: sometimes the read randomly generates a timeout error and stops, even if LabView is the only running application.
Could you point me what I'm doing wrong?
Thanks, Piero.
DAQmxReadDigitalU32

Duplicate Post
ColeR
Field Engineer

Similar Messages

  • Having trouble with Tiscali/TalkTalk site when accessed with 'FireFox', can't 'reply' to emails or report 'spam', other functions seem ok

    Having trouble with Tiscali/TalkTalk site when accessed with 'FireFox',
    can't 'reply' to emails or report 'spam', other functions seem ok
    == This happened ==
    Every time Firefox opened
    == On/Off few months now all time

    Try deleting cookies and cache:
    1. Tools| Clear recent history
    2. Time range to clear: Everything
    3. If it isn't already selected, select '''Cookies''' and '''Cache'''
    4. '''Clear now'''
    <u>Check cookie exceptions</u>
    1. Tools | Options | Privacy Panel
    2. Set '''Firefox will: Use custom settings for history''' Insure Accept cookies for sites and accept third-party cookies is selected
    3. Click '''Exceptions'''. If the misbehaving site is in that list, select it and click '''Remove site'''
    Also see [[Updating Firefox]]

  • Still Having Problem with Battery Overheating with Car Dock/Charger when using Maps/Navigation

    I'm having a problem with the battery overheating when using Google Navigation in the OEM Samsung car dock and car charger.  On a trip last weekend, I started off with a fully charged battery (because posts on other sites have complained that the Charge cannot keep up with the power draw of the Google nav app while using the car charger).  About an hour into my trip, I got a message that the battery was overheating and to unplug the charger which I did.  I then had to contend with the screen going out because it was running on the battery.  I let the phone discharge to about 70% then tried the car charger again.  Within a few minutes, I got the same overheating message.  It was not an overly hot day and the car A/C was set at 68 degrees.  
    This morning (with the battery at about 85%) I tried to use the Navigation without the car dock while charging and got the same results...the phone battery overheated and I had to unplug the charger. The battery temperature reached 116 degrees. (also, the battery level was also dropping while using the Maps or Nav application even though it was hooked up to the car charger).  
    I'm very disappointed with this situation since I was hoping I could replace my old Garmin GPS with the Charge.  But between the phone dimming the screen while running on battery, and having a depleted battery in the phone at the end of the trip, its just not a viable option.  I really like this phone, but I'm running against the "return" clock.  
    Any ideas?
    Could this be a software problem that will be corrected by an update in the future?
    fyi:  other Charge problems in the last 5 days:
    - dropping audio on calls to other Verizon phones.
    - use of camera flash causing the phone to reboot.
    (I do have the 'class 4' 32gb card in my Charge)
    Thanks in advance,
    Rich

    Jerry:
    Yes, the phone is charging while in the car dock.  I confirmed it both under the "about phone-status-battery status" menu and by my battery widget.  By watching the battery widget, I also noticed that the voltage steadily increased over the ride home.  It started at about 3.90 volts and ended at 4.02 volts.  I don't know if that is significant.  This time the battery did not overheat.  The Max temp was 110 degrees, but no notice to disconnect came up.  This might be because the sun was behind me on the drive home rather than beating down on the dash like it was this weeked.
    I've ordered a cheap universal dock from Amazon for about $15.00 which clips onto the a/c vent.  I want to see if this keeps the temperature down.  If this works, I can still return the fancy-schmantzy Samsung OEM car dock. (The car-dock interface wasn't that impressive anyway).
    Please let me know if the volt change means anything.
    And thanks again for your help!
    Rich

  • Am using firefox 5 and am not able of uploading any file as attachmenet using my Yahoo email account , this problem does not happen with hotmail account or when using IE.

    when sending email through yahoo account , i cant upload any attachment with email, a sign of uploading lasts forever without uploading the file.
    this issue do not happen with hotmail account or when using IE to browse Yahoo account.

    Install ClamXav and run a scan with that. It should pick up any trojans.   
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101

  • Quicktime Player with the magic mouse, when used with a bug -

    On 10.7 Lion, Quicktime Player with the magic mouse, when used with a bug …
    Quicktime Player will not respond, but use the USB mouse with no problem

    Message was edited by: b j t

  • Does Mackie Control work with Final Cut 7 when using USB MIDI?

    I have a Mackie Control Universal Pro connected via USB to my mac and it works GREAT with Logic and all the complimentary Logic Studio software.
    The problem I am having is, when I try to use it with Final Cut, it wont work at all. I have read the post concerning this that was answered by Andy Mees but, I dont use a true MIDI connection, only USB.
    Any thoughts?

    Does Mackie Control work with Final Cut 7 when using USB MIDI?
    No one will know until FCP 7 is released.
    -DH

  • TCP/IP Timeout setting when using CLS

    G'day community,
    I'm in a project where we need to change the link-loss detection for DMQ connection using TCPIP, independent of the systemwide TCPIP/IP settings (we're talking DMQ v5.0-RP47 in OpenVMS 8.4).
    There's no problem when using DMQ - DMQ connections: the logicals DMQLD_PING_TIMEOUT and DMQLD_PING_INTERVAL work fine here.
    However, when connecting with non-OpenVMS systems via CLS, this does not work. It looks like the TCP driver is perfectly happy pinging CLS and CLS doesn't notice the communication partner went away (until the system-wide timeout is reached; but that has an higher value for other purposes!).
    Is there a way to detect a connection was lost before TCP at systemlevel detects this?
    Thanks in advance!
    Oscar

    hi mike...thanks again...
    I created two parallel loops as you said...it works fine but one problem is there....as I said two parallel while loops are there with separate stop button...so when I start vi both are starting.... when I stop the my other code while loop it stops but my tcp vi does not stop even I stop the button because it is in the forever state...so it does not reach that button until the client initiate for once atleast....I just want to exit this forever state from server side.whenever server wants... 
    how to terminate that forever state from tcp listen vi?
    Attachments:
    tcp.png ‏158 KB

  • Trouble with split into clips when importing from camera

    I'm importing old video from mini DV tapes into iMovie. Unlike many other people writing here, I'm not having trouble with the connection between the camera and the computer. That works fine. I click "import" and the video IS imported.
    The problem is, iMovie splits up the video it loads into little clips, some are long and some are less than a second long. Then, when it displays them in the clips window, they are out of order. For instance, the first few bars of a song might be pulled off and be in a short clip near the bottom of the list while the rest of the song is in a longer clip near the top. As a result, I am forced to carefully put them back in order -- like making a jigsaw puzzle -- as I drag them into the project.
    Can I either turn off whatever it is that splits the input into clips (I'd like just one big clip) OR at least could the clips be displayed in the order that they were loaded from the camera so that clips that belong together are next to each other?
    Thanks (and sorry for asking what is PROBABLY a dumb question),
    ak

    The best answer I've found so far to my own question is the post from Randman here:
    http://discussions.apple.com/thread.jspa?messageID=9007098
    As he points out, the problem is that iMovie is splitting and ordering the clips by their "time stamp", but if the video was previously edited (even by iMovie itself!) this time stamp may reflect the time it was edited rather than the time it was filmed. This is especially a problem for clips that have a title or special effect used on PART of it, because the modified part does not show up anywhere near the unmodified part in the list of clips.
    Randman ALSO provides a sort of solution: rename the files themselves. I found this did work. (You rename them so that time stamps in the filename are in increasing order when listed in order by "last modified" which reflects the time they were loaded from the camera!)
    I've written myself a script to do this automatically, but it is a bit of a hack and not really suitable for distribution. But, I suggest that someone with more time and programming experience than I write such a script that would help people with this problem!

  • No Data retrieved with AJAX Call HTMLDB_GET when using Safari Browser

    In my apex (4.0) app i have certain page a which uses JS AJAX htmldb_get to pull some data from an on-demand process using xml structure
    var get = new htmldb_Get(null, $v('pFlowId'),
    'APPLICATION_PROCESS=get_markerdata', $v('pFlowStepId'));
    if (!MEBMarkerdataXML) {// Tabelle mit Kunden leer? Dann aus DB abfragen
    MEBMarkerdataXML = get.get('XML');
    l_Count = MEBMarkerdataXML.getElementsByTagName("Kunde").length;
    I ran into a strange behavior when using Safari Browser (Mac and Windows) when opening the page.
    As long as the process retrieves less than 50 rows everything works fine. The data is pulled from the OnDemand Process and delivered to the browser; the XML Data can be selected in JS for further processing
    <<<<<<<<<<<<<< HTTP Traffic taken from Safari <<<<<<<<<<<<<<<
    Anfrage-URL:http://80.149.218.10:8080/apex/wwv_flow.show
    Anfragemethode:POST
    Status-Code:200 OK
    Anfrage
    Content-Type:application/x-www-form-urlencoded
    Origin:http://80.149.218.10:8080
    Referer:http://80.149.218.10:8080/apex/f?p=41107101:43:1599514482232751::
    User-Agent:Mozilla/5.0 (Windows NT 5.1) AppleWebKit/534.55.3 (KHTML, like Gecko) Version/5.1.5 Safari/534.55.3
    Formulardaten
    p_request:APPLICATION_PROCESS=get_markerdata
    p_instance:1599514482232751
    p_flow_id:41107101
    p_flow_step_id:43
    Antwort
    Cache-Control:no-cache
    Content-Type:text/xml;charset=UTF-8
    Date:Thu, 03 May 2012 10:19:35 GMT
    Pragma:no-cache
    Server:Apache-Coyote/1.1
    Transfer-Encoding:Identity
    X-DB-Content-length:53329
    X-ORACLE-IGNORE:IGNORE, IGNORE, IGNORE, IGNORE
    <<<<<<<<<<<<<<<<
    When calling for more then 50 rows Safaris shows a POST Error -1001 and no Data is delivered.
    This occurs only on some Mac's and my Dev WIN-XP PC using SF Browser; never on iPad/iPhone . Never when using FF on Mac or PC.
    I googled a lot of different Sources, it seems to be a Timeout Problem when making a long runing AJAX Call. But i did not find any useful hint.
    Any Ideas from the APEX & HTTP Gurus?
    Regards
    Peter

    It's just that in my experience htmldb_Get.get() is troublesome for browsers, due to the fact it performs a synchronous request. The browser can do nothing else while it waits for the response. I've seen Firefox really struggle with it in the past couple years. Also, I've seen no good reason to use synchronous XMLHttpRequest calls. As you can see, it's simple to refactor a call to htmldb_Get.get() into a call to htmldb_Get.GetAsync().
    For your case in particular, I was just guessing Safari have implemented a timeout to ensure that they don't end up waiting indefinitely for a request that never returns as this would be fatal. You're probably hitting that timeout.
    I don't think htmldb_Get is officially documented anywhere, but you can find the source here... http://apex.oracle.com/i/javascript/uncompressed/apex_4_0.js
    There is also a pure jQuery way to perform AJAX request, I recommend using this because at least it's documented. Here's a snippet of a typical APEX AJAX request done the jQuery way:
    apex.jQuery.ajax({
      dataType: "xml", //supports text, xml, json, jsonp, script, or html
      type: "post",
      url: "wwv_flow.show",
      traditional: true,
      data: {
        p_request: "APPLICATION_PROCESS=get_markerdata",
        p_flow_id: $("#pFlowId").val(),
        p_flow_step_id: $("#pFlowStepId").val(),
        p_instance: $("#pInstance").val()
      success: function (data, textStatus, jqXHR) {
        // Do your thing in here
      error: function (xhr, ajaxOptions, thrownError) {
        // Handle error in here
    });Then you can refer to great documentation here... http://api.jquery.com/jQuery.ajax/

  • Problem with variables in formulas when using CrystalReportViewer

    Post Author: Aksu
    CA Forum: Formula
    Hi! I have a problem with variables in Crystal Reports formulas, when using CrystalDecisions.Windows.Forms.CrystalReportViewer class from VS2005-project. ReportViewer always gives error:*************Crystal Report Windows Forms ViewerThis field name is not known.Details: errorKindError in File C:\{dir&#93;}\{file}.rpt:Error in formula <mCustomerAttributes>.'Dim result As String'This field name is not known.Details: errorKind ************* Report without variables works fine with Viewer and in Crystal Reports Designer report with variables works also fine. I have tried with both "formula-syntaxes" - basic and crystal. But Viewer always gives error when trying to define new variable.I think the problem might be with CR -versions, because VS-project has formerly been designed to VS2003 and CR9 or 10. Now I'm using VS2005 and CR11. Though I have changed all references to new CrystalDecisions-asseblies (Ver.11.0.3300.0), when I debug the project and checkout the Viewers ReportSources FormatEngine Shows version CR9_2.... I have no idea where it gets this version...***************DEBUG-view when Viewer is created *******************CrystalReportViewer    |_        ReportSourceClassFactoryName ... , Version=11.0.3300.0 , ...    |_            ReportSource            |_                FormatEngine    {CrystalDecisions.CrystalReports.Engine.FormatEngine}                        |_                        ClientVersionHeader    {CrystalDecisions.Shared.ReportServiceVersionHeader}                            |_                            |    version = 920     (int)                            |_                                Static members                                            |_                                        VER_CR9    = 920    (int)**************************************** Could anyone have any answers or tips for this problem? I'd really appreciate it... ---Aksu

    Has anyone been able to answer this question?
    I am having the same problem:
    I am designing a report in Crystal Reports XI Developer that contains parameters, which are passed to a stored procedure and are also used within formulas ( in Crystal Syntax ie. {?FORMAT_ID} ) in the report itself.
    I can run the report successfully in CRXI Developer.  The formulas use the correct values from the parameters entered during execution and everything looks good.
    I then deploy the report to Business Objects Enterprise XI.  I do all of the things necessary to manage the report including setting up the proper database connection information and default parameter values.
    When I run the report using the Crystal Report Viewer, I get the following error message:
    Error in File Forecasting.rpt:
    Error in formula <Report Format>.
    'if (not isNull({?FORMAT_ID} ) ) then
    This field name is not known.
    Details: errorKind
    This happens when I press the "Preview" button in the Manage Object dialog from Crystal or when I run the report using InfoView.
    I have changed the formulas and it doesn't seem to matter what the specific content of the formula is; other than the existence of a parameter reference in the formula.  If I comment out the parameter and replace it with a hard-coded value, it gets through the formula fine.
    Does Business Objects Enterprise XI support crystal reports with parameter references in the formulas?
    Thanks,
    Tim H.
    Edited by: Tim Haley on Nov 25, 2008 11:11 PM
    Edited by: Tim Haley on Nov 25, 2008 11:12 PM

  • Cannot rename file with non-ASCII characters when using the

    My application moves files from one directory to another by calling File[] srcFiles = srcDir.listFiles() to get a list of files in the source directory, and then calling srcFiles.renameTo(destFile) to rename each file.
    This does not work (renameTo returns false and the file is not moved) under the following circumstances:
    - the file's leaf name contains non-ASCII characters, for example "�"
    - the OS is Solaris 9
    - the LANG and LC_* environment variables are unset, i.e. the C locale is being used
    If I set the LANG environment variable to, for example, en_GB.UTF-8 then the rename succeeds.
    I have tried calling srcFiles[index].getName().getBytes("UTF-8") and the non-ASCII characters are being replaced with ? (0x3f) characters when LANG is unset.
    Is this a bug in the JRE? I would argue that since my code does not actually manipulate the filename (I just use the File object that File.listFiles() gives me) then the rename should succeed. Of course I would not expect the file name to be displayed correctly if I printed it out.
    I have reproduced this behaviour with JDK 1.4.2_05 and 1.5.0_04 on Solaris 9.
    Francis

    Thanks for the info Alan.
    I considered setting the locale in the environment (this sounds like the "correct" fix to me and we might implement it later), but this application shares a WebLogic server with many other applications so we would have to do a huge amount of testing to make sure that the locale change wouldn't break the other apps. In the end I worked around the problem by making the code that generates the filenames in the first place strip out any non-ASCII characters (the names of the files are not critically important).
    Looking forward to JSR-203, in the meantime perhaps a note about this behaviour in the java.io.File javadoc would be useful.

  • Has anyone had issues with poor image quality when using lightroom to process raw images from Canon 7dmk2

    Hi everyone..
    ..I have been having image quality issues when using Lightroom to process raw files from a 7d mk2... They are all soft with poor clarity.....tonight in despair I tried processing them  using  canon's software and they are totally different..."much better"
    anyone else had similar problems....Andy

    I have a 7D2 and have not had what I interpret as poor image quality that has anything to do with the camera.
    Can you post a screenshot of what you’re seeing and what specifically you don’t like?  Maybe there is something you can do differently or at least there may be an explanation for what you’re seeing.
    And if you have a raw image that you wouldn’t mind sharing in a public forum, upload to http://www.dropbox.com/ then post a public share link to it in a reply, here.
    In other words post a screenshot of what you see in LR, another of what you see using DPP, and a link to the raw file you’re processing.

  • Problems with a Business Object when using data RAW.

    Hi,
      I've created a Z bapi with parameter tables as
        FILE_BIN like SDOKCNTBIN
    The structure SDOKCNTBIN has one RAW field.
    When I go to SWO1 and implement a new Bapi, the following error occurs:
    "Field SDOKCNTBIN -LINE is too large to be included in container"
    Does anyone knows why when I declare an structure with a field RAW, gives that error?
    Thanks in advance!

    Does this occur when using Immediate Mode?
    Here's a blurb from my ADF Toy Store paper about Batch Mode and immediate mode.
    http://www.oracle.com/technology/products/jdev/collateral/papers/10g/adftoystore/readme.html#batchmode

  • ACR returning images with pixel drop-out when used as smart filter in HDR2

    Photoshop CC - when using a 32-bit image in HDR2 "Tone in ACR" returns an image that contains areas where random groups of pixels are simply black. Typically occurs in shadow areas.
    Same 5 raw files processed by Oloneo exhibit no problems. Individual raw files processed by Photoshop CC show no problem - only seen in HDR2.
    I tried accessing Photoshop Bug Report but it hands you off to Photoshop.com where after you make the report it won't let you sign in. Revel only accepts photos.

    GOT IT!!!!
    After we eliminated Adobe settings, and the software, I started wondering what's outside that could be affecting VPE.
    It's the resolution of the screen!  I have a MBP Retina.
    Using SetResX, I cranked the resolution of my screen from the default retina 1440 x 900 to the hardware's native res of 2880 x 1800.
    THIS FIXED IT.
    The resulting PNGs from the export perfectly match the planes (DXF Mesh).
    So, I'm asserting that there may be a bug in the current release of PS CC where it is not compatible with the default retina resolution on the MacBook Pro.

  • Problem with spaces in filenames when using ODI tools

    Hi everyone,
    has anyone of you ever encountered the following behaviour:
    When using any ODI tool related to file manipulation the tool does not work if the file parameter value contains a blank/space. Example:
    OdiFileDelete "-DIR=c:temp" "-FILE=Test this.txt" "-RECURSE=NO" "-CASESENS=NO" "-NOFILE_ERROR=YES"
    In this case an error will occur saying the file does not exist although it exists in the directory.
    Has anyone a workaround for this?
    Thanks in advance,
    Hauke

    Hi Madha,
    thanks for the prompt answer.
    We decided to rename the files to make the tools work. Definitely not always applicable but in our case it's possible. Any hint why the behaviour is designed like this?
    Regards,
    Hauke

Maybe you are looking for

  • Cannot get "keepgenerated" option to work

    I am attempting to keep the Java files generated from some JSP's. I have           placed the followin in my weblogic.properties file:           weblogic.httpd.initArgs.*.jsp=\           pageCheckSeconds=1,\           compileCommand=d:/jdk13/bin/java

  • Can't open an Executable From Click Button

    Hi, Everyone! I've broken a learning module into several small project files to match the client's standards. I've set up click buttons within each file to open each of the published movies for the module. Everything works as expected. Now I need to

  • I want to replace my iphone 4g

    i want to replace my iphone 4g with new one model 5S, me know apple have any police

  • Does JMF really support RTSP

    Hi, I am trying to stream QuickTime .mov file located on a Darwin streaming server to a client side player/applet. The files were created using the JMF and are encoded using the CINEPAK codec. No error is thrown and nothing appears. I have also tried

  • Why does text in browser run over on top of each other?

    Text runs over and on top of one another. This is not zoom or text size issue as I've tried tried to change that to no avail. I'm in version 3.6.10. I just installed it in my new system: Windows 7, 64 bit. The same websites open fine in IE.