AI scanclock sleep mode--labv​iew RT

I've been using AI single scan in a time critical loop, with 0 buffer, to
sleep on the AI Scan Clock. Everything seemed to be working real nicely
(i.e, all of my lower priority threads seemed to be serviced correctly),
until I started trying to do hardware calls in lower priority threads to
"check" to see how long it took to service low priority threads by
initiating counter pulses at the onset and offset of these loops (there
seems to be no other reliable way to get this information with tens-of
microsecond resolution). All went to hell then. When I slowed down my
loop to try to use more "software" type sleep modes instead of the AI
single scan sleep (that is sleeping for milliseconds), everything seemed
to work again.
A
s we started delving in to see about different types of sleep modes, we
noticed that there is a small paragraph in the "counter wait" sleep mode
documentation that says while the time critical loop is asleep from a
counter wait, NI-Daq calls cannot be made. This would explain the
behavior I'm seeing (i.e, "all went to hell").
In any case, there is nothing in any of the development areas or
documentation stating that NI-Daq calls are not serviced while the time
critical loop is asleep due to AI Single Scan waiting for the AI scan
clock. It seems quite reasonable that this is the case, though, and it
makes sense to keep all your hardware calls in the time critical loop
(though I tried to violate this rule for testing purposes, and in fact
sleeping on a ms wait does allow such calls!). I just hadn't seen the
counter wait documentation because I'm not using the counter wait.
Long story short, are NIDaq calls serviced during an AI Single Scan
sleep? If not, can this be a
dded to the documentation where this type of
sleep is described?? This cost us about four days (though I probably
deserve it for making hardware calls in low priority loops!).
Thanks
Scott
Reverse first field of address to reply

Hello Scott,
The behavior you are seeing is expected and is due to the fact that the NI-DAQ driver is a single-threaded DLL. For more information I would check out the following NI Developer Zone article:
Avoiding Shared Resources and Priority Inversions for Deterministic Applications
While we try to get as much useful information in the manual as possible, we always recommend checking out the NIDZ for good additional information.

Similar Messages

  • Is there a way that iTunes can act as a Radio Alarm Clock? I have found the radio station I enjoy listening to in the iTunes Radio List. Is there anyway iTunes (and my Mac) can be set to come-on and start playing that Radio Station from Sleep mode at spec

    Is there a way that iTunes can act as a Radio Alarm Clock?
    I have found the radio station I enjoy listening to in the iTunes Radio List. Is there anyway iTunes (and my Mac) can be set to come-on from Sleep mode and start playing that Radio Station at specific times of the day?
    Any App or plug-in that does that?
    Many thanks
    Kevin

    Turning your Mac into a clock radio.
    1.  In iTunes create a playlist that contains just the radio station you want to wake up to.
    2.  Export the playlist (as .m3u works well).  Get Info on your playlist file and look at the Open With entry to make sure it points to iTunes, VLC or some other app that will stream your station.
    3.  In iCal create an event entry at the time you want to wake up.
    4.  Right (or Control) click on your wakeup event and select Get Info.
    5.  For "alarm" select Open File.
    6.  Now under Open File there will be a place to add the file to open.  It will probably be some default entry (like iCal).  Click on it will allow you to select "other."  Then use the file dialog to select your playlist file.
    Your Mac will wake you up at the appointed time.  You don't need to keep iCal running.  If you want to put you Mac to sleep for the night then there is one more thing you need to do.  Open System Preferences to Energy Saver and click on the Schedule button.  Check Start up or wake and set the wake up time to slightly before your iCal alarm time.
    Dan

  • Going in & out of sleep mode

    I have an iBook G4 with a 12" display I haven't had any problems with it until my last update (I update whenever there are available updates). I restarted my mac like normal after the update and found that after the white loading screen with the tiny apple logo loaded my mac asked me to restart. It did this 5 or 6 time in a row. With luck it finally loaded back up and I backed up all of my files & decided to reformat and start from scratch thinking it was something to do with the update.
    After the reformat & reinstallation of OS 10.4 I thought I was ok, but I wasn't. Now when I shut the screen for it to go into sleep mode it seems to start sleeping then turning itself back on, then sleeping again. It does this until I open the screen back up. Next it will come on and then go back to sleep until I wake it with the keyboard, then it runs fine.
    I need to know whats wrong with my iBook so I can see about getting it working right again.
    iBook G4   Mac OS X (10.4.9)   1.33 Ghz, 512 Mb Ram

    Update it only happens now when it is plugged in to the charger.

  • Mac Tower Pro  10.8.5 keeps going into sleep mode

    Purchased from Apple, refurbished 2012 Mac Tower Pro.  At the same time, purchased a new Dell U2713HM, 27" monitor.
    Have been operating on this new system since about the first week of December 2013.
    Issue:
    The computer has constantly gone into sleep mode after a few minutes of no activity.  I can have iTunes radio playing, but the system still goes into sleep mode.  As  I am typing and moving the curser, the machine stays awake.
    This has caused much frustration because when it goes into auto sleep mode, it quits all programs that I am in, and when it does this, I lose all the work I had accomplished.  It litterally closes everything and goes to sleep in about 2-3 minutes of no activity.
    BTW:  the computer and monitor have all its new OEM cables that came in the box, when I purchased the units.
    Solutions attempted:
    System Preferences — Energy Saver:  computer sleep and display sleep set to "never"  and unclicked the box "Put hard disks to sleep when possible." 
    Dell settings:  Turned off all energy savers.
    Results:
    Nothing.  Problem persists.

    I apologize for the angst.  The problem has cost too much money in lost time and material because when it would automatically shut down after a few minutes, all my work was lost. 
    I misunderstood the terms of the warranty.  Thank you for your input and patience.  Much appreciated.  For the benefit of others that experience this with a new Mac that auto shuts down.  Check the following:
    1.  Go to System Preferences.
    2.  Click on Security and Privacy.
    3.  Click on Advanced  (bottom right corner)
    4.  If the first line is checked (Log out after 5 minutes of inactivity);  uncheck it and then click OK button.
    5.  Be sure to click the lock before existing Security and Privacy.
    Now the machine will cease shutting down programs to go into sleep mode as soon as machine is inactive for a few minutes.

  • Yoga 2 Pro Draining Battery Fast in Sleep Mode

    I have a new Yoga 2 Pro with i7 processor. It works great and normal battery life is about 4-5 hours. But with a fully charged battery, i can close the lid at night triggering sleep mode, and wake up to an almost dead battery.
    Why is this happening? It's really dissapointing and I'm going to return it if I can't find a fix. I'm on the latest BIOS with all current updates. I am not using Hibernate mode.
    Closing the lid shoud not cause battery to continue to drain at normal usage rates.
    I'm hoping it's the WINDOWS 8 software but I've tried all the settings I can find.

    the OP said battery was draining overnight because y2p was not going into sleep mode. then op changed some settings and, as i understand it, now his y2p does not drain battery overnight because he pushes power button and it goes into hibernate mode before closing lid.
    I would like to raise the issue of the difference between hibernate and sleep mode. I too find that if i put my y2p (and my mbp-bootcamp) into hibernate mode then my battery does not drain overnight. however, both my laptops drain the battery overnight in sleep mode... anyone have clear understanding of this? i've look at many articles on the web, but haven't found any that specifically indicate how fast sleep mode should drain batteries. I think my gf's mba-OSx also drains overnight in sleep mode and OSx doesn't even have a hibernate option (correct me if i'm wrong)... 

  • My iphone 4s will not find my printer 6500A 710n-z when in powersave/​sleep mode.

    My iphone 4s will not find my 6500A  710n-z when in powersave/sleep mode.  I really don't want to disable the powersave mode...it already has latests firmware installed.  Suggestions?  It will print if I wake up the printer by hitting the power button to wake it manually.

    I had this problem for about 3 months Now, but today I think I fix it,  by clicking on SETTINGS and then DO NOT DISTURB and switching MANUAL from green to White, now I receive my calls, try this it worked for me..:)

  • HP Color LaserJet Pro MFP M177fw don't go to sleep mode

    Hi and sorry for my english In settings of HP Color LaserJet Pro MFP M177fw I tryed 15 and 5 minutes before sleep mode. After 15 or 5 minutes printer going to sleep, but if I'm used printer even only one time, after that he don't sleep ( printer's screen not dim), not after 5 and 15 minutes. Printer is connected through wi-fi, Windows 8.1 x64. Any ideas?)

    Hi Denis88,
    I see by your post that the printer isn't going into sleep mode.
    I can help you with this issue.
    Make sure the printer is connected directly to a wall outlet. (don't use a power hub or a surge protector)
    I would update the printer's firmware if the printer won't go into sleep mode.
    HP Color LaserJet Pro MFP M177fw Drivers.
    Select your operating system, click next, click the link for firmware.
    I have provided some information from the manual for the sleep mode that you can check out.
    COLOR LASERJET PRO MFP.
    EcoSMART Console: Change the default times for entering Sleep mode or Auto Power
    Down mode. Configure which events cause the product to wake.
    Printer Settings Auto-off Configure the product to automatically turn off after a period of
    inactivity. You can adjust the number of minutes after which the product turns off.
    Touchscreen control panel:
    1. From the Home screen on the product control panel, touch the Setup button.
    2. Open the following menus:
     System Setup
     Energy Settings
     Sleep/Auto Off After
    3. Select the time for the Sleep/Auto Off delay.
    NOTE: The default value is 15 Minutes.
    4. The product automatically wakes when it receives jobs or when you touch the screen on the product
    control panel.
    You can change which events cause the product to wake. Open the following menus:
     System Setup
     Energy Settings
     Wake/Auto On Events
    To turn off a wake event, select the event, and then select the No option.
    Hope this helps resolve your issue.
    Have a nice day!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • Smart Cover doesn't put iPad into Sleep mode in Unlock position after iOS 8.3 update

    Prior to the iOS 8.3 update, closing my Smart Cover would put my iPad into Sleep mode when in the Unlock position.  Since the update, this function no longer works in the Unlock position.  In the Lock position, I hear the click and the iPad does go into Sleep mode.  Since I am the only one using my iPad, I don't need it locked when at home.  Has anyone else experienced this problem?

    hi guys. i'm back.
    i solved my problem. i refer my iphone 5 to a local distributor. a repairman checked my iphone and i described my problem. he checked my battery. it was fine! then after an hour excavation around hardware solution he told me that the charging kit crashed because of heavy mobility usage!
    yes. i did not covered my phone with any cover. the cpu pressure by ios update crashed the kit! now my phone get back after the kit changed and work finally. i restored my phone to ios 8.2 now.
    i'm going to buy new iphone. but i'm really confused if such this issue really happened for iphone 6 too!!!!!
    i'm totally disappointed .

  • Pc does not come out of sleep mode, no display on monitor, no response from mouse or keyboard.

    Computer acts as though it is in sleep mode, does not respond to keyboard or mouse input. Confirmed monitor is OK. turning power on and of does not fix this issue. any ideas on how this migt be fixed?

    The key issue is power. Please use this guide to test the PSU.
    I am a volunteer. I am not an HP employee.
    To say THANK YOU, press the "thumbs up symbol" to render a KUDO. Please click Accept as Solution, if your problem is solved. You can render both Solution and KUDO.
    The Law of Effect states that positive reinforcement increases the probability of a behavior being repeated. (B.F.Skinner). You toss me KUDO and/or Solution, and I perform better.
    (2) HP DV7t i7 3160QM 2.3Ghz 8GB
    HP m9200t E8400,Win7 Pro 32 bit. 4GB RAM, ASUS 550Ti 2GB, Rosewill 630W. 1T HD SATA 3Gb/s
    Custom Asus P8P67, I7-2600k, 16GB RAM, WIN7 Pro 64bit, EVGA GTX660 2GB, 750W OCZ, 1T HD SATA 6Gb/s
    Custom Asus P8Z77, I7-3770k, 16GB RAM, WIN7 Pro 64bit, EVGA GTX670 2GB, 750W OCZ, 1T HD SATA 6Gb/s
    Both Customs use Rosewill Blackhawk case.
    Printer -- HP OfficeJet Pro 8600 Plus

  • MSI GT70 2PE Pro Shuts off after power up and sleep mode, then works

    I got this laptop less than a year ago and I am kinda getting upset about my decision buying it. It is the GT70 Dominator Pro with the GTX880M graphics card.
    Only thing I did was install a SSD drive for my main drive and use the 1TB drive that it came with as a storage drive. Everything was working perfectly for about 4 months without any issues.
    My problem started with the laptop shutting off in the middle of playing Watch dogs and wouldnt boot to windows, so i went to the BIOS and found out for some reason it changed my primary drive to the storage so i changed it back and all was good. After about a month it similar thing happened but this time I couldnt even get to the BIOS, after pressing the F10 or whatever it is for BIOS the computer freezes in a black screen.
    I contacted MSI and sent it out for warranty, they had to change the whole motherboard as it was not serviceable (Issue was a faulty MB).
    Last week the laptop started acting up again, here is my issue. When powering it on the fan and light comes on but after couple of seconds it turns off, then powering it on for 2nd time it works. This happens 80% of the time, i have to turn it on twice before it works.  Even more frustrating thing is when it is at Sleep mod, I press the power to wake it up, so it does but before getting to windows screen it shuts off.
    I was wondering if anyone have similar issue like mine or know what could cause this. My tower PC that i built have a MSI board and graphic card thats why I went with their laptop but I had pretty bad experience with it so far and its not a cheap laptop either. I might have to go through another warranty work if it keeps giving me the issue.

    Try update IRST driver.
    https://downloadcenter.intel.com/Detail_Desc.aspx?DwnldID=24006

  • MacBook Air 2013 battery drains quickly while in sleep mode

    I just purchased a 13" mid-2013 MacBook Air this week, and so far everything is working well - a remarkable improvement over my 2007 MacBook! But, I've noticed that the battery seems to drain very quickly while in sleep mode. For example, it drained 10% over five hours. I've turned off bluetooth and made sure that the PowerNap option is not selected under Energy Saver preferences. And the battery health/capacity seems to be good. Are there other things that I should turn off/check out? Has anyone else experienced this? Is this even abnormal for the battery to drain at this rate while in sleep mode? Thank you!!

    You can return a new Mac within 14 days of purchase.
    A new Mac is in warranty for 1 year from the date of purchase.
    A new Mac comes with 90 days of free tech support from AppleCare.
    AppleCare: 1-800-275-2273
    Call AppleCare.
    Best.

  • Macbook Pro 17" (Mid-2009) Randomly Getting Stuck in Sleep Mode when Unplugged

    Hey guys, this is my first time posting so please excuse me if I do anything wrong. Here's the issue:
    I have a Macbook Pro 17" (Mid-2009) that has had an issue with the whole computer shutting down at random, but only when unplugged from the MagSafe power adapter. Upon scouring all the forums and discussions I could, I haven't found anyone with the same exact circumstances as myself, hence this post. Let me explain.
    Many say it's a battery issue. That can't be, because this has been happening for months, and after I finally got my laptop repaired a few days ago, it still occurs. I had sent it in for a logic board failure, but consented them to fix any other parts that weren't functioning properly. Upon the return of my machine, I found that they installed a fresh hard drive, new battery, new logic board, and a new speaker on the right side. This must mean that neither the logic board nor the battery are the issue.
    What else can this point to? Again, it only occurs when the Mac is unplugged from a power source, and it doesn't totally shut down. It goes half way, essentially stuck in sleep mode. The white indicator light on the front freezes, and the power button has to be held to fully turn the laptop off, then pressed again to reboot. It can last anywhere from a single minute to a few hours before shutting off again, and it's always the exact same circumstance, no matter what kind of computing I'm doing at the time.
    Note that while no one else has found the solution to lie within resetting the PRAM or SMC (in the discussions I read), I still need to try that tonight and see if it affects anything.
    Thanks in advance,
    Sean

    Macs are having problems with SSD drives. The root cause is the OS X journaling file system. The Apple-written SATA controller driver can saturate the bus at times, inhibiting performance. Some manufactures are even selling special "Mac" versions of their SSD drives that are slowed down on purpose to compensate for this problem. Unfortunately, the problem still exists in Snow Leopard, from what I've read.
    Also, I read that Apple has secretly slowed the recent new laptops down (3.0GB/s to 1.5GB/s) to compensate for the problem.
    Dave M.
    MacOSG Founder/Ambassador  An Apple User Group  iTunes: MacOSG Podcast
    Macsimum News Associate Editor  Creator of 'Mac611 - Mobile Mac Support'

  • Macbook Pro Stuck in Sleep Mode

    My macbook pro went to sleep and wouldn't wake up. This has happened a few times before and was usually cured by just holding down the power button to turn it off then turning it back on. This time that's not working though.
    When I try to turn it back on only the little power light comes on and the disc in the drive spins up, but that's all the further it gets. There is no chime and nothing is displayed on the screen.
    Anyone know what the problem might be and anyway to fix it? Tried clearing the pram, but that did nothing.
    Hope it isn't major as I'm a month out of warranty ... plus the nearest store is over an hour away.

    Well, after more searching around the internet, I found that sleep mode and bad ram make the front light do the same thing. So after my restart it was stuck in some kind of sleep mode coma, the ram must have died when I forced it to power down. Once I took out my corsair ram and threw the original stick that came with it back in, it fired up.
    Hope this helps someone else.

  • MacBook Pro Stuck In Sleep Mode - Won't Boot

    LAPTOP
    2008 17" aluminum Macbook Pro running Snow Leopard
    SCENARIO
    I was using my laptop, closed the lid and took it to the office. Removed it from the laptop bag and it would not come out of sleep mode using mouse / keys. I hit the power button once (this has happened before and hitting the power button once has woken it from sleep mode). This did not help. I held down the power button for a hard reboot. The laptop shut off. Now I can't get it to turn back on.
    ISSUE
    When I hit the power button to turn it on:
    The SIL blinks twice slowly like it's in Computer Sleep state and then the laptop turns off.
    When I hold the power button to turn it on:
    The SIL blinks slowly once like it's in sleep mode, then stays solid and dim for 4 seconds, then blinks very fast for 2 seconds, then goes dark for a second, then blinks slowly once more like it's in sleep mode, then the laptop turns off.
    In both instances, I can hear the dvd drive begin to spin immediately after hitting the power button. Also, when I put my ear to the laptop, I can hear the hard drive start up before the laptop shuts off.
    TROUBLESHOOTING
    I've tried the following. All resulted in no change.
    - Reset PRAM / NVRAM
    - Reset SMC
    - Checked RAM was installed correctly, wasn't jiggled loose for some reason
    - Boot laptop with power cable, no battery
    - Boot laptop with battery, no power cable
    - Boot laptop with power cable and battery
    - The above 3 boot scenarios with PRAM / NVRAM reset and SMC reset
    RESOURCES
    Intel-based Mac: Startup sequence and error codes, symbols
    http://support.apple.com/kb/HT2674
    Mac computers: Sleep Indicator Light behavior
    http://support.apple.com/kb/TS4167
    Intel-based Macs: Resetting the System Management Controller (SMC)
    http://support.apple.com/kb/ht3964
    About NVRAM and PRAM
    http://support.apple.com/kb/HT1379
    I just purchased my second fresh battery for this machine and cannot afford an entirely new laptop right now. Any help is greatly appreciated. Thank you so much in advance.

    Did you figured something out ? Mine, of similar age, started behaving the same yesterday. Since I replaced most of the original devices, I suspect the onboard clock battery being depleted by now... ? I'm not even sure there such a battery in there.

  • MacBook Pro stuck in sleep mode: can't restart or shut down, black screen

    I'm running the latest version of Snow Leopard on my mid-2009 MacBook Pro Unibody. After installing the latest Software Update, including a Firmware update for my SuperDrive, the following problem has occurred, for the very first time:
    I closed the lid of my laptop for the night, as I do routinely every night, thus putting my MBP to sleep. I leave the various apps open, usually Firefox, iTunes and Entourage. The next morning my MBP felt hot and the screen remained black... it would not change. After repeatedly trying and failing to clear the black screen and bring my apps up, I held the power button down to do a complete Shut Down. My system turned off, but did not do an actual Shut Down. When I press the power button to turn it on, it comes right back into sleep mode with the screen remaining black. I cannot seem to force either a Shut Down or a Restart. I unplugged all peripherals and the power cord, let my MBP cool down completely--for a couple of hours-- and tried everything again. Still no change: I'm stuck in sleep mode with a black screen. I've also tried resetting the PRAM and the SMC, but neither works, probably because I'm not coming from a Shut Down. Is anybody else having this problem? Anyone have any suggestions? I think the problem must be somehow related to the latest update, but whatever it is, I'd like to resolve it.
    Thanks in advance for any help.

    I can't get into my system to see my update version, but I'm certain I'm running the most up-to-date version of Snow Leopard and all other latest updates applicable to my mid-2009 MBP, as I run Software Update routinely. I thoroughly completed all update installations, including the SuperDrive Firmware update, followed all instructions meticulously, including rebooting, and actually used my system for at least one full day without any problems. I'd even recently repaired all permissions. Everything was "humming" along very well. This problem came totally out of the blue. Because the screen is black, I can't actually see what's on it; however, I've put my MBP to sleep every night by closing the lid and it awakens in the morning when I raise the lid. This time the sleep light indicator is on, but nothing happens when I lift the lid, touch the track pad or a key. If I hold the power button down briefly, the sleep light goes out, but when I press the power button again, the light comes right back on. If I depress the power button for several seconds, to initiate a shutdown or restart, it simply shuts off the fan and refuses to completely shut down. This is evidenced by the fact that depressing the power button to start up brings the sleep light on very quickly. I can tell by the way the system sounds that it is on behind the blackened screen. Sorry I can't get you the update versions.
    Thanks

Maybe you are looking for

  • Export Center-Crop (4x3) quicktime from a 16:9 Sequence.

    Hi, I'm currently working with DVCPRO HD 720p material on a project which is intended for standard definition NTSC broadcast. The material was framed to be center-cropped (losing the left and right sides of the image), and the offline process is very

  • Able to edit an existing Quicktime Movie into a shorter version?

    Hi, Many thanks in advance for your attention. 1. In Quicktime Help, there is a way of trimming an existing Quicktime Movie (selecting part of a Movie). 2. Supposedly, one can trim down a movie by moving Markers in Quicktime and then Saving this "New

  • I have an update notice which won't go away.

    A notice came for an update. I couldn't find any way to signify that I wanted the update (which i do). Neither can I remove the notice, which I have now had on my screen for about a month. I can move it, but it is still a bother--and i can't get the

  • Invalid Volume Free Block Count Error In Disk Utility

    My Ti-Book has been acting very strange lately so I decided to run the Verify Disk Option in the Disk Utility program. When I ran it, I got a series of messages in red that were: Volume Bit Map Needs Minor Repair Invalid volume free block count Error

  • SaveForWeb file size difference of scripted versus manually created

    I've got a VB script that uses Save For Web to make thumbnail images from a folder of larger images.  Most perplexing is the file size difference of these thumbnails using the script versus making them one by one manually. The thumbnails are 180x120