Changing from continuous to finite sampling

Hi All,
I'm programming the 6602 with DAQmx 7.4 Ansi C API.  This is pretty small issue, but since it might be a bug I thought I'd post it anyway.  When I run a counter input task with implicit timing (say period or frequency measurement) in continuous sampling mode everything works fine - the task can be restarted after it has been stopped without any problems.  The same goes for finite sampling mode.  However, if I run the task in continuous mode, stop it, switch to finite mode and run it again, then it never seems to finish.  More specifically, even after all the samples have been read, neither DAQmxIsTaskDone() nor DAQmxGetTaskComplete() indicates that the task is completed.  Also, the done event callback function is not executed.  Consequently, my thread for reading the data and saving it to file never completes even though all the data is read from the buffer.  Anyone know what is going on here?  As a workaround, maybe I  could monitor the amount of data read from the buffer and stop the task explicitly once the requested number of samples have been collected, but I'd rather have it complete naturally......
Jeff

Hi Axiom-
I have been able to replicate the same behavior you're seeing using NI-DAQmx 7.5, the most recent released version.  It seems that this may be an issue and I will file a corrective action request for the issue.
For the timebeing, your suggestion to monitor the number of samples read and programmatically stop the task seems like a solid workaround.  Please post back if you have any additional questions.
Thanks for keeping us on our toes!
Tom W
National Instruments

Similar Messages

  • Change from Continuous View to Single page for presentation in Ipad.

    I am a Windows/Android user. I could not find anything to accomplish this or anything else for that matter. No view menu...

    If you have the current version of Reader for the iPad (11.2.3), open your PDF.
    Click on the upper part of the page so you can see the menus above. Click on the icon that looks like an eye. Then you can choose View Modes: Continuous or Single Page, and an option for Night Mode.

  • Changing from finite to continuous samples and vice versa?

    Hello,
    I have a problem which I'm trying to overcome: I have a measurement system consisting of an analog output and reading two analog inputs. I would like to run it continiously to monitor the current values (without saving the previous data), however, when I click something like a record button, I'd like to start a recording of a predefined period (like a finite samples measurement) and then restarting the monitoring without saving again.
    Currently my measurement program is based on the examples "Continuous AO" and AI vis, and are made with continuous sample mode and while loops. How can I insert a record button?
    I tried putting event handlers in the measurement loop, however it suspended the loop from running.
    I attach a screenshot of my current measurement loop. (With the shift register I tried to read data, however I cannot get it out of the loop, until the loop is stopped)
    Thank you in advance
    Engage! using LV2012
    Attachments:
    question.png ‏81 KB

    I have tried adopting something similar, however it doesn't work the way it should. (Or at least the way I think it should) Could you please help me ironing it out? I've seen some vis on the internet with queue-controlled (but only one-way) and tried adopting them.
    The MainProgram vi is the app, with some settings (now limited to a signal file selection and channel settings). Then the data acquisition can be started by clicking the Start Acq button.
    And here come my problems: first sometimes the queue starts, sometimes it doesn't (or at least it doesn't start the data acquisition). And the main point: I set the sample rate, yet it is acquired at a much-much slower rate (my signal has a period time of 4 seconds, yet it needs at least 20 seconds to get near finishing). And the strangest: sometimes, mostly after some time (about 1-2 min) it hangs and does nothing with the daq (yet labview seems responsive, just my program hangs somewhere).
    So now only the controlled acquisition is in the problem and first I don't care about forwarding the data for analysis and saving. (That seems to be the smaller problem).
    What am I doing wrong? Thanks for your help. 
    I attach all the files.  (MainProgram is the app itself, MY.SIGNAL is the signal file I want to output.) I use a USB-6211 device. (at work a physical one, at home a simulated one).
    Engage! using LV2012
    Attachments:
    queued_daq.zip ‏366 KB

  • HT201304 It would be tremendously helpful to be able to access, set restrictions, and make changes from the parents device to all devices under the same iTunes account, so that I could make changes to my kids devices without physical access.

    Please help!
    It would be tremendously helpful to be able to access, set restrictions, and make changes from the parents device, to all devices under the same iTunes account, so that I could make changes to my kids devices without physical access.
    I understand that I can set up a different Apple ID for the kids devices, or take physical control of the device and make the changes myself. However, my teenage son is technically savvy enough to have a job in Silicon Valley, as are most young people these days. However, in order to access his devices the current way, I first have to bypass the four digit pass code. This starts a fight of why I need in the device and continues to escalate. The argument that I am the parent will gain access but the fight is simply exhausting, and quite frankly shouldn't have to happen at all. He is not yet an adult, he did not pay for his iPad or iPhone and I, as a parent, should have not only have the right to change options at will, and from anywhere, but look at history or current activity when I feel like it.
    I currently have the settings where app and in-app purchases require my password to be put in, and he must come to me to type it in, but I need more control and would like, and should be able to access any of our six devices and make individual changes simply by logging in to my account, with my password.
    If I can see all my devices on the "Lost My iPhone" app, this technology should be easy to make happen.
    C'mon parents! I have a pretty good kid, given all things that they can get into, but I am not stupid. For everything I see has been done, there is much more I haven't seen. I want my children to be kept safe and be able to know what they are looking at or listening to. We parents are the only ones who know our beliefs and what our kids can handle and when.
    Thanks for any support or information that I may be missing in order to fulfill my request.

    There are mobile device management solutions that can do this, including in Apple's OS X Server system, but most parents generally find that setting this up is more work than it's worth. If you're interested, though, there are a couple that at least purport to be free (I don't know if there are any hidden "gotchas"):
    http://www.unwireddevicelink.com/features/
    https://meraki.cisco.com/products/systems-manager
    and Apple's system:
    http://www.apple.com/osx/server/features/#profile-manager
    I don't think any, however, allow you to see current activity or browser history. iOS doesn't expose those to access from MDM solutions, to the best of my knowledge.
    Regards.

  • Is changing from iMac OS 10.6.8 to Yosemite difficult?

    What are the problems encountered in changing from iMac OS 10.6.8 to Yosemite?

    Depends. Be sure you do this first:
    Repair the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    Next, verify you can upgrade to Yosemite:
    Upgrading to Yosemite
    To upgrade to Yosemite you must have Snow Leopard 10.6.8 or Lion installed. Download Yosemite from the App Store. Sign in using your Apple ID. Yosemite is free. The file is quite large, over 5 GBs, so allow some time to download. It would be preferable to use Ethernet because it is nearly four times faster than wireless.
        OS X Mavericks/Yosemite- System Requirements
          Macs that can be upgraded to OS X Yosemite
             1. iMac (Mid 2007 or newer) - Model Identifier 7,1 or later
             2. MacBook (Late 2008 Aluminum, or Early 2009 or newer) - Model Identifier 5,1 or later
             3. MacBook Pro (Mid/Late 2007 or newer) - Model Identifier 3,1 or later
             4. MacBook Air (Late 2008 or newer) - Model Identifier 2,1 or later
             5. Mac mini (Early 2009 or newer) - Model Identifier 3,1 or later
             6. Mac Pro (Early 2008 or newer) - Model Identifier 3,1 or later
             7. Xserve (Early 2009) - Model Identifier 3,1 or later
    To find the model identifier open System Profiler in the Utilities folder. It's displayed in the panel on the right.
         Are my applications compatible?
             See App Compatibility Table - RoaringApps.
    Download the Yosemite installer and click on the Install button that will appear when it finishes downloading.

  • Change of Video Frame One Sample Out of Sync with Correct Point on Timeline

    Change of Video Frame One Sample Out of Sync with Correct Point on Timeline.
    It has been found on the author's PC that, in Audition 3 in Multitrack View, a video file displayed in the video window will change its frame one sample later than it should do with respect to the correct point on the timeline. This has led to extra work having to be done by the author, as detailed later.
    To demonstrate this issue:
    Create a new multitrack session. Enable the Time and Video windows. Enable only 'Snap to Frames'.
    Using an external program, render a two-frame video clip at 25fps. Let the first frame contain the letter 'A', and the second frame contain the letter 'B'. Making sure that the Display Time Format is set appropriately, in this case at 'SMPTE 25 fps (EBU)', lock this clip on the multitrack timeline, ensuring that the clip starts at time 00:00:00:00.
    Create a mono audio clip of silence at 48kHz 32-bit that is two frames long. Lock it on an audio track, ensuring that the clip starts at time 00:00:00:00.
    Place the cursor at time 00:00:00:01 and create a cue marker at this point by pressing F8.
    Zoom into the timeline so that approximately twenty samples are visible, with the cursor lying on the cue marker in the middle of the screen. The Time window should display 00:00:00:01. The Video window should display the letter 'A'.
    Move the cursor back in time (leftwards) by one sample. The Time window should change its display to 00:00:00:00, whilst the Video window should still show the letter 'A'.
    Move the cursor forwards in time (rightwards) by one sample, so that it overlays the cue marker again. The Time window should change its display back to 00:00:00:01, whilst the Video window remains showing the letter 'A'.
    Move the cursor forwards in time (rightwards) by one more sample. The Time window's display should remain at 00:00:00:01, but the Video window should now display the letter 'B'.
    As can be seen from the above steps, the video's change of frame content occurs incorrectly one sample later than it should; the change of video frame content should occur simultaneously with the change of the frame number displayed in the Time window, which is at the point that the cue marker has been placed.
    The practical effect of this issue is that it has caused the author a huge amount of extra work on an 89-minute long soundtrack-for-video timeline. There were over 1100 changes of shot which the author wished to mark by placing cue markers at the beginning of every shot. This should have been a quite simple process of enabling 'Snap to Frames', stepping through the video, and laying cue markers down by pressing F8 when the shot was seen to change.
    Because currently the Video window (referencing the cursor laying over a cue marker
    i that has been placed on the timeline using the 'Snap to Frames' option
    ) will actually display the end moments of the previous frame rather than the beginning moments of the current frame, laying down a cue marker when the shot is seen to change will actually place that marker at the beginning moments of the second frame of the new shot, not at the beginning moments of the first frame of the new shot, i.e. the cue marker placed will be one frame later in time than it should be. If it is wished for the cue marker to, as best it can, represent the beginning moments of the first frame of the new shot, it has to be manually repositioned so that it is at least a sample later in time than the time at which the shot has actually changed, in order for the Video window to correctly display the content.
    The author had to manually reposition all 1100+ cue markers.
    Ideally, the Video window should display a change of video frame in synchronization with the change of the frame display in the Time window, which occurs at the position of the 'Snap to Frames' point.
    Part of the PC system's specification is detailed below:
    Windows XP Professional Version 2002 SP3;
    Adobe Audition 1.0 Build 3211.2;
    Ad

    obe Audition 2.0 Build 5306.2;
    Adobe Audition 3.0 Build 7283.0;
    ASRock 775dual-VSTA motherboard, BIOS Version P.3.00;
    2.80 GHz Intel Pentium D Processor 915 2x2MB L2 Cache;
    2GB DDRII 667 RAM;
    Matrox G550 DualHead AGPx4 VGA card for Audition's two main work screens;
    Matrox Productiva G100 MMS PCI VGA for two additional "static" information screens;
    4 x PATA HDDs for OS & programs, swapfile & temp, project file sources, and guide audio;
    Onboard Realtek ALC888 7.1 channel audio CODEC with High Definition audio;
    Lite-On DVDRW LH-18A1P;
    VIA OHCI Compliant IEEE 1394 Host Controller.
    ASIO4ALL version 2.8;
    Via Hyperion Drivers 5.16a - (VIA Chipsets INF Update Utility V3.00A, VIA PATA IDE Driver Package V1.90, VIA SATA IDE Driver Package V2.30A, AGP V4.60A);
    Matrox PowerDesk-SE 11.10.400.03;
    Matrox Millennium G550 Display Driver Version 5.99.005;
    Realtek High Definition Audio System Software Version R1.91, Audio Driver Version 5.10.0.5605;
    DirectX 9.0c March 2008;
    Microsoft .NET frameworks 1.1, 2.0 and 3.0 with all service packs.

  • FCP6 BIG PROBLEM - Media Manager Speed change from FCP5.1.4

    Hi!
    We have problem using a media manager project from FCP5.1.4 in FCP6. Almost ALL clips with speed change are messed up (all new speed around 1% to 7%). This is really a problem for us, since we always do media manager of everything we do to be able to go back and make changes.
    We have 2 MacPro 2 x 2.66Ghz, 8GB RAM, 10.4.9, Quicktime 7.1.6, FCP6, Decklink HD extreme or AJA Kona LH (with the latest driver).
    We tryed with different format: HDTV 1080i50, DVCProHD 720p59.94, SD Uncompressed 10bit, .... always the same problem.
    Is there a new way to use the MM in FCP6?
    Thank you!

    Hi! And thanx for the tip.
    But we use Media Manager everyday with speed change WITHOUT any problem (with FCP 5.1.4).
    We already try something similar, we copied the good clips (with speed change) from the ORIGINAL timeline to the media manager one, deleted the bad clip (with the wrong speed change) and pasted the good one in there place. Then we reconnected those clips with the MEDIA MANAGED one. We get a warning that the IN and OUT of the media are not the same, CLICKED continue and everything is always (well 95% of the time) OK.
    SO yes, we have the solution, but it's really really long and painful, especially with multilayered sequences.
    Right now, when I open any Media Manager in FCP 5.1.4 (created with FCP 5.1.4) everything works fine. Doing the same thing with FCP6 = speed change problem.
    Thanks again,still looking for another solution.

  • Upgrade from Mobileme to iCloud - do I need to change from Mac OS X 10.6.8?

    Do I need to change from mac os x 10.6.8 to upgrade from Mobileme to iCloud?
    Please advise
    Is OS X Lion different? latest version?
    Thanks in anticipation

    rugbytom wrote:
    Does that mean though that I have to change to the Lion, despite its shortcomings, in order for iCloud to work and not lose the current beneifts of synchronisation I have with Mobileme
    Basically, yes.
    You can migrate your MobileMe account to iCloud at http://me.com/move even with Snow Leopard - when asked to confirm that you have Lion on your Mac, just lie and say 'yes'.
    If you have MobileMe mail set up to collect mail from external POP accounts you should cancel this before migrating, or you may find it still working in iCloud (where it isn't supposed to) and with no way of stopping it. You may find the MobileMe email settings will continue to work for a time after migrating but it will stop eventually so you should not rely on this. You should delete your MobileMe email account from Mail.
    You can then set up Mail manually in Snow Leopard to access iCloud email; it's a slight fudge because the 'wizard' will attempt to connect you to MobileMe as soon as you enter an @me.com address. The process, which includes a workaround for this, is described here:
    http://www.wilmut.webspace.virginmedia.com/notes/icloudmail.html
    You may be able to sync your calendars to iCloud by means of an unsupported hack, but you cannot sync Contacts or Bookmarks and iCloud's other facilities will not work. This page outlines the situation when you migrate to iCloud, including a link to the calendar hack:
    http://www.wilmut.webspace.virginmedia.com/notes/icloudSL.html
    To get the full functions of iCloud you need Lion 10.7.2

  • Why does the light on my battery charger change from green to orange after a few seconds?

    Why does the light on my battery charger cable change from green to orange?  The battery continues to accept a charge when light turns orange.

    Green = not charging.
    Orange = charging.
    Note that if your laptop is pulling enough power (using CPU and GPU heavily) the light will turn green because the power adapter cannot provide enough power to charge your batteries in addition to keeping the system going.
    In fact, you can drain your batteries even with the adapter plugged in with the 17 inch Macbook Pro if you push it hard enough, although I have not noticed this problem with my Retina Macbook Pro.

  • Satellite A300-1OM wirless connection changed from connected to limited

    I am having issues with continual use of the internet via my wireless home network, which appears to be an intermittent problem.
    On many occasions while using my wireless internet connection the connection has changed from 'connected' to 'limited connectivity', which then leads to difficulty opening the 'Network and Sharing Centre' and also 'Connect To a Wireless Network' dialog boxes, and when attempting to diagnose the problem using windows it only suggests moving closer to or restarting my wireless router, which I know to be work fine as I can operate another toshiba laptop and browse the internet using the same router in the same location.
    It seems the only method to repair this problem is to restart the computer, reopen the Network and Sharing Centre, click on the red 'X' between the graphic of my computer and the image of the earth (internet) allowing windows to diagnose the problem, and then choose 'turn on wireless connectivity', and after doing this the network begins operating as normal...until it repeats the malfunction a few hours later :(

    I've updated the WiFi Driver and BIOS, how can I find out what Wireless standard my notebook is using? As you can imagine with an intermittent issue, I won't know if the problem is fixed until (if) it fails again.
    I'm using Vista Home Premium
    With regards to restarting the router, why might this make any difference when it is evident from using two toshiba notebooks side by side that the router is still providing internet access to my other notebook once this notebook has downgraded to 'limited connectivity'?
    Thanks

  • Employer discount changed from 22% to 8%

    I recently sent a revalidation last month of my employment.  Verizon confirmed it and continued my discount.  I was getting a 22% discount, but this month's bill it is now a dismal 8%.  What gives?  My employer still states its a 22%. 

        Hi xxryu139xx! Boy, that's quite a difference in discount. Although I'd very much like to speak to the change, the terms and conditions of the agreement between Verizon Wireless and your employer are the determining factor for the discount percentage. These agreements can sometimes change from one year to the next, and can even have different percentages for employees depending on the employer's internal structure so that some employees will get different percentages than others. We assign the percentage based on the feedback we receive from the employer.
    DionM_VZW
    Follow us on Twitter www.twitter.com/vzwsupport

  • How do I transfer calendar changes FROM ipad TO computer?

    how do I transfer calendar changes FROM ipad TO computer?

    Thanks Chris. Trouble is, I have created  a pile of calendar detail (and contacts) in iPad, but have a blank version of Outlook  on Pc (had to reinstall). Reading synch instruction, implies iPad will synch with pc, and delete existing iPad content (plenty) and replace with pc outlook content (zilch). So I would stand to lose everything.
    Have turned on iCloud on iPad, but can't see any content in pc based iTunes, (nor of course, in Outlook)
    So want to be sure to keep what I have ON iPad and transfer it TO Outlook. I can then continue to edit/add content on iPad and transfer that TO computer (from time to time)
    Any ideas?

  • Changing from ODBC .csv datasource to another ODBC datasource?

    I have 64 reports that I wish to change from using .csv as a datasource to using ODBC to hit our proprietary database.  I can get the ODBC working with our database and create new reports, but it's been less than obvious as to how to reset the datasource without losing all the fields in the report. It's key that these reports retain their precise position for some of the data, so I can't just re-create them (nor do I have time to do so).  What order do I need to do things in to make this work such that I can map the new fields to the old field names without losing the fields positions in the reports?

    Thank you - I've tried that and have worked a lot with Set Datasource Location when the field names map one to one, but this is not the case.
    My goal is to use logicals to pass the database locations and I can do that if I can use this proprietary ODBC driver; it's just not working when I re-map - I'm getting an error. I'm continuing to work on this; if I come up with an answer to my own question I'll post it.

  • [svn:osmf:] 10660: Code changes from MAST code review.

    Revision: 10660
    Author:   [email protected]
    Date:     2009-09-28 17:29:18 -0700 (Mon, 28 Sep 2009)
    Log Message:
    Code changes from MAST code review.
    Modified Paths:
        osmf/trunk/apps/samples/plugins/AkamaiPluginSample/.actionScriptProperties
        osmf/trunk/apps/samples/plugins/MASTSample/.actionScriptProperties
        osmf/trunk/apps/samples/plugins/MASTSample/src/MASTSample.as
        osmf/trunk/plugins/MASTPlugin/.actionScriptProperties
        osmf/trunk/plugins/MASTPlugin/MASTPlugin.as
        osmf/trunk/plugins/MASTPlugin/org/openvideoplayer/mast/loader/MASTDocumentProcessor.as
        osmf/trunk/plugins/MASTPlugin/org/openvideoplayer/mast/loader/MASTLoader.as
        osmf/trunk/plugins/MASTPlugin/org/openvideoplayer/mast/managers/MASTConditionManager.as
        osmf/trunk/plugins/MASTPlugin/org/openvideoplayer/mast/media/MASTProxyElement.as
        osmf/trunk/plugins/MASTPlugin/org/openvideoplayer/mast/parser/MASTParser.as
        osmf/trunk/plugins/MASTPlugin/org/openvideoplayer/mast/traits/MASTPlayableTrait.as
        osmf/trunk/plugins/MASTPlugin/org/openvideoplayer/mast/types/MASTConditionOperator.as
        osmf/trunk/plugins/MASTPlugin/org/openvideoplayer/mast/types/MASTConditionType.as
        osmf/trunk/plugins/akamai/AkamaiBasicStreamingPlugin/.actionScriptProperties

  • Issue on payroll area which is changing from biweekly to monthly in Mid of

    Dear Experts,
    I have an issue on payroll area which is changing from biweekly to monthly in Mid of the Month.
    One employee was retired on 29th of March, so his payroll area was changed from biweekly to monthly on 29th. For retire we are running the payroll on 8th of every month. When we are running payroll for April he has received only 29th and 30th retire salary, by the time he is not yet retired also.
    In this case the main problem is monthly payroll time is early then biweekly. so the employee is getting retire salary then his regular pay.
    Can you guide me where we can control that monthly payroll area should not be triggered at this movement.
    Thanks
    Chandra

    You can do that but it is not that easy as it sounds if you have to do that over a period of say 10-20 years...lot of operational work!!
    Also say if you load the retiree action one month ahead say on 03/01/2011. And the employee is retiring on  03/29.
    Retire payroll is on 04/08
    Biweekly is on 04/15
    Now you decide to lock the employees after the 1st biweekly check of March...say which was process 14 days before 04/15 would be 04/01. The employee number is locked between 04/01 to 04/15. For 14 days you have locked these employees!!
    What happens if there is adjustment pay...you have to manually go and unlock the employee and lock him after the adjustment check.
    I will let you decide based on the comfort, SAP effort, Operational effort and system maintenance.

Maybe you are looking for

  • Windows HP laptop won't boot Windows - possible hard disk failure!

    Hi there! A month ago my HP Pavilion dv6-6b57sa completely froze mid-use, and was unable to move the mouse or get any sort of response. Naturally I held the power button to hard shutdown and restarted. Ever since then I have been unable to boot Windo

  • Item Renderer for DataGrid

    I have a button component as a Item renderer in the column of the datagrid . I am not able to access the Itemrenderer component(which I declared in other mxml file in the datagrid) This is the data grid where I have the Itemrenderer: <mx:DataGrid id=

  • Server App does not change SMB AFP option as expected

    I have been fighting SMB shares on Mac OS since upgrading to Mountain Lion (I skipped Lion) and I think I have the situation figure out at least in my case. First Opportunistic Locking needs to be turned off in Windows 7. It does not appear that Mac

  • PSE9 - organizer -  move folders

    Hi, I have a problem with moving folders to another in Organizer. After the move, the content of moved folder has random pictures in it! What's wrong? Thanks for a solution

  • E61 S60 browser for mobile sites ?

    I am wondering if there is some setting that I have set incorrectly... I use the mobile browser A LOT. I usually have no problem on most sites, other than Flash heavy sites. I think everyone has this problem. But, some of the most popular mobile site