Why does error 200279 occur at high speeds only?

I am using a VI very much like the one attached here, and as my motor speeds up and the period value decreases, the vi fails, and error 200279 shows up as displayed in the attached 2 jpg images. This VI is reading the period value of an encoder by rising edges.  The error does not show up at low speeds, only high speeds.  Hardware is wired through USB ports on PC.  Using Labview 2012 and Windows 7.
Do I need to specify the samples per channel for the READ in the case structure to eliminate this error?  The error only occurs when the period gets quite short, e.g. 9ms or so.  At higher period values (slower motor speeds) the error does not appear.  I am using the counters built into the cDAQ9174 chassis  and the NI 9401 module to read the period values of my encoder.  What is happening at high speeds to cause this error?  I thought that the setting on the DAQ Timing VI required that 16 periods are read every iteration, so, why is it saying that it is trying to read samples that are no longer available?
Also, is the "Append Array" building up a large array that is being carried in the SHIFT REGISTER and causing things to slow down?  There are a huge number of periods occuring with an encoder at 120 ticks/revolution.  should I try to keep this array truncated or something to reduce the size of the data being handled for each iteration?  Can this large array be causing the 200279 error?
Thanks,
Dave
Attachments:
forum JUly 18.vi ‏26 KB
error July 18.jpg ‏45 KB
error July 18 part 2.jpg ‏49 KB

I think there's a combination of things that could be contributing.  I don't have time for a full explanation right now, here's some quick mods I did to the code you posted.  Essential changes are:
- made separate loop for collecting data into a big array.  (Maybe you can consider dumping to file instead of growing an array in memory?)
- used a queue to transfer data between loops
- increased the buffer size dramatically while still calculating average of only the most recent periods
- reduced the acquisition loop rate -- expect to retrieve more data points per iteration
There are a couple other things I'd probably add or change with more time, but this minimal set of mods should help some.
-Kevin P

Similar Messages

  • Why does my fan go into high speed noisy mode sometimes when I'm not actually doing anything on my laptop?

    why does my fan go into high speed noisy mode sometimes when I'm not actually doing anything on my laptop?

    Probably Spotlight is indexing your HD? To stop this indexing, have a look here:
    http://www.thexlab.com/faqs/stopspotlightindex.html
    marek

  • Why does error message occur when "Save as Adobe PDF" is used?

    "Save as an Adobe PDF" does not work; it only generates "Error An error occurred while saving the PDF file."
    I can create a PDF two ways: (1) distilling a Postscript file and using Acrobat Distiller, and (2) using the MacOS PDF generator (MacOS X 10.10.2 Quartz PDF Context).
    Is there a reason "Save as an Adobe PDF" does not work? Is this an issue related to Yosemite or Adobe Acrobat? I am curious to know if other Yosemite and Acrobat XI users have this issue?
    Kind regards, –John
    Adobe Acrobat XI version 11.0.10 on MacBook Pro (Retina, Mid 2012, 2.7 GHz Intel Core i7, 16 GB DDR3)

    Thank you for replying. I appreciate your feedback, Mr. Lloyd. "Save as PDF" does generate a PDF using MacOS X 10.10.2 Quartz PDF Context. However, I am trying to solve an issue with PDF generating with Adobe Distiller since upgrading to Yosemite.
    I am curious to know if anyone in the Apple community can verify if "Save as Adobe PDF" works for him or her. If this script specific to Acrobat Distiller XI version 11.0.10 does not function with Mac OS X Yosemite 10.10.2, I can disregard this functionality. However, if the functionality does work for others, I shall work to find a solution.
    My question was asked in part to help me gain understanding of changes in PDF production that have occurred since I upgraded to Yosemite. The following description is the root of my query which I posted on Acrobat Discussion groups:
    Using Adobe Acrobat XI version 11.0.10 on MacBook Pro (Retina, Mid 2012, 2.7 GHz Intel Core i7, 16 GB DDR3), I have been creating PDF files of music charts optimized for viewing on iPad using Acrobat Distiller XI version 11.0.10. I recently upgraded to Mac OS X Yosemite (10.10.2). Music charts are designed using Pages 5.5.2 using Page Setup for HP LaserJet 1012 and a custom page size (7.75 in. x 10.25) with four 0.06 inch margins. This allows me to replicate exact content of a PDF file optimized for printing [Page Setup for HP LaserJet 1012 with US Letter page size (8.5 in. x 11) having four 0.5 inch margins] on a  PDF file optimized for viewing on an iPad. The iPad PDF has reduced white space in margins allowing the music chart to have the largest print viewable when looking at an iPad while performing.
    I am creating a PDF by distilling a Postscript file and using Acrobat Distiller [PDF/A-1b:2005 (RGB)]. "Save as an Adobe PDF" does not work; it only generates "Error An error occurred while saving the PDF file." Moreover, "Save as an Adobe PDF" never works for any circumstance.
    The issue is iPad PDFs no longer have 0.06 inch margins. A PDF file is created, but there is more white space in margins. I have determined the PDF production is being affected by the HP LaserJet 1012 0.167 inch minimal margins. The outcome does not change if I select Any Printer from Page Setup. However, a PDF with 0.06 inch margins is created if I use the MacOS PDF generator (MacOS X 10.10.2 Quartz PDF Context).
    Is there any thing I can do to use Adobe Acrobat XI to make charts optimized iPad like I could before I upgraded to Mac OS X Yosemite (10.10.2)? Just curious…

  • Why does Verizon have to force high speed adverts down our throats

    Every time I connect to internet I get the pop up,  channel 500 is on permamenet upgrade mode, and just like everybody else who had 35 service I WAS FORCED TO UPGRADE.   Enough already!

    cmoore wrote:
    Every time I connect to internet I get the pop up,  channel 500 is on permamenet upgrade mode, and just like everybody else who had 35 service I WAS FORCED TO UPGRADE.   Enough already!
    Do you have the Verizon Toolbar installed in your browser? If so, that is probably the reason you see that, disable the toolbar and see if that doesn't fix the problem.
    FWIW, I never, ever see what you are describing.
    Justin
    FiOS TV, 25/25 Internet, and Digital Voice user
    QIP7232, QIP7100-P2, IMG 1.9.4
    Keller, TX 76248 (VHO 1)

  • % if () {%   %} if() {% %}% Why  does Error occur?

    Hi,
    can somebody help me to understand why does error occur in this example?
    <% if (k.equals("1")) {%>
    html tags
    <%}
    if (k.equals("2")) {%>
    html tags
    <%}%>
    If there is only one condition it works, but if tere are two, the second condition lead to the error on server.
    Thanks and Best Regards,
    sergey

    that's some ugly, hard to read scriptlet code. Go learn JSTL right away.
    Impossible to tell from what you've posted. Maybe the variable k isn't in scope for both or something like that.
    Your HTML tags might be wrong, too. Who knows? You've posted so little...

  • Why does my clip have a higher quality in the viewer than the canvas?

    When I am editing, I have noticed that sometimes my images and clips have a drastically higher quality in the viewer than the canvas/timeline, what is causing this, and how do I edit and export my films with the highest quality possible?

    >Why does my clip have a higher quality in the viewer than the canvas?
    The answer is very simple; the Viewer shows the media at its native resolution while the Canvas shows the media at the Sequence resolution.  I'd bet that in your case, the original media is of higher resolution that the Sequence in the Timeline.
    -DH

  • Why does error code 4005 pop up when i try to restore my ipod 5?

    why does error code 4005 pop up when i try to restore my ipod 5?

    Have you tried this support article ?      http://support.apple.com/kb/ts3074

  • The iPod cannot be synced. An unknown error has occured (-50). PHOTOS ONLY.

    Hi there. I have searched with no success, to solve this problem: I have a 1st gen. Touch and only recently, I get the following message when attempting to sync with my mac: The iPod "customer's pod" cannot be synced. An unknown error has occurred (-50).
    This only happens when I have selected photos to be synced. This never happened before. If I de-select the photos, there are no problems.
    I am running iTunes 8.1 and version 2.2.1 iPod software. I have done a reboot, restarted and so far nothing has worked. I have searched this forum and have found assistance for people running a PC but so far, can't find anything that has worked for this situation. If this has been answered previously, my apologies. I appreciate anyone who can help out and/or point me in the right direction.
    Rebecca

    Thank you! I deleted the ipod photo cache and it worked. (apologies for not writing sooner... my ibook crashed and I just got a new mac and synced up).
    Thanks so much - very appreciated.
    For anyone else trying to delete the photo cache from an iPhoto '08 album, visit this link: http://support.apple.com/kb/TS1314

  • Why does fix capitalization work when there is only one space after the period in pages 09?

    why does fix capitalization work when there is only one space after the period in pages 09?  For example:  "Turn on 3rd St. After the traffic light."  There is only one space after the period in "St."  shouldn't it only auto correct after TWO spaces..??  the word After, should be after..

    You may also use a noBreak space after the period at the end of the abbreviation.
    If I remember well, in such case the capitalization will not apply.
    Yvan KOENIG (VALLAURIS, France) mercredi 27 avril 2011 23:34:46

  • Why does my iphone send all text from only one of my contacts to my email?

    Why does my iphone send all text from only one of my contacts to my email? I'm curious to know if anyone else has had this issue with the Iphone 5s...

    imessage has a new setting that shows all emails associated with your apple id.  There are two sections, send and receive.  Since you are using the same apple id, Im sure if you adjust one of those settings to your mobile number instead of your appleid, it wont send double.
    You might also have to adjust your wifes settings too, so those emails dont overlap

  • Why does my iPhoto red eye reduction tool only give me blue or black blobs in the eyeballs that look completely unacceptable?

    Why does my iPhoto red eye reduction tool only give me blue or black blobs in the eyeballs that look completely unacceptable? Automatic mode makes blue blobs that cover iris and even eyelid! Manual mode gives black dots, not at all hte shape of a oerson's iris as seen in a picture.

    And again the answer is simply
    THere is no fix - that is the way it works - you can post as many times as you want but it will not change the fact that that is the way that iPhoto works
    No fix
    No work around
    It is what it is - nothing more - nothing less
    LN

  • Why does a 128gb I-pad Air 2 only show 113gb in the capacity section of settings? Where has my other 15gb gone. Surely not on the OS. (It shows 111gb available which is the apps I have downloaded already)

    Why does a 128gb I-pad Air 2 only show 113gb in the capacity section of settings? Where has my other 15gb gone. Surely not on the OS. (It shows 111gb available which is the apps I have downloaded already)

    Along with what Skydiver119 has already told you, my 64GB iPad 3 only had 57GB of available storage out of the box, so if you keep doubling the amount of already used storage on the device as you go from 16 to 32 to 64 and then to 128GB - I assume that the figure that you see is correct. The iOS and preinstalled apps account for the storage that seems to be "missing" to you on your iPad.
    The amount that you see in Settings>General>About>Capacity is in fact, the available storage capacity for your iPad. You can't change it. It is whatever it says it is in that setting.

  • What's with the 3Mbps limitation on DSL, and why does Verizon refuse to offer higher?

    Verizon's High-speed Internet website states they have two services offered above my 3Mbps plan. I've spoken to a few people at Verizon's customer service center (including a supervisor), and all are adamant on their stance that they cannot offer a higher service for my area (southwestern PA).
    It was stated that the max speed is determined based on the distance from the central office. The thing is, the central office is located in my town, and I'm just under a mile away from it.
    According to ADSL2+ specifications, the highest download speed advertised is 24Mbps. The modem I have currently claims it can reach an attainable rate of 17Mbps. All ADSL standards (aside from two oldest ones that are irrelevant since my current 3Mbps is higher than them and Verizon isn't using them) go above 3Mbps. The supervisor I spoke to had no idea what a ADSL2+ standard was, and was unable to tell me what standard Verizon is actually offering; but I could probably find out from the modem diagnostics page or something.
    So with all that in-mind, Verizon offers DSL packages that are higher than my current tier (the highest being 7.1 to 15 Mbps), the max ADSL2+ speed being 24Mbps, and the max attainable rate for my modem is 17Mbps with me being less than a mile away from the central office. And even after all that, Verizon is intent on stating they don't offer higher speeds than 3Mbps, and are adamant in stating they cannot provide higher speeds than that.
    I'm also on Verizon's Double-play bundle with DirecTV. The speed restriction is even more insulting considering you can't even use DirecTV's On-demand service without the internet speed crawling to a halt. And if the internet is being used prior-to using On-demand; On-demand becomes unusable.
    So.. does anyone know what is up with this? I'm paying for "High Speed Internet Enhanced", and I'm getting speeds not even respectable of that (compared to today's standard), paying $44/month for it, and even though all technical aspects say they can bump the speeds up higher; they refuse to.
    I can use public WiFi that offers faster speeds for free. I can connect to any xfinitywifi hotspot and get pretty close to double the speeds I'm paying for. Can even tether to my slow cell phone with barely-supported-in-my-area 3G and get better speeds. There's zero reason why a paid landline connection can't go faster than those...
    I find the situation pretty ridiculous, and have even filed a FCC complaint about it.
    reddit Discussion: https://www.reddit.com/r/verizon/comments/2u46yc/whats_with_the_3mbps_limitation_on_dsl_and_why/
    Some quick modem statistics:
    Mode: ADSL2+
    Traffic Type: ATM
    Status: Up
    Link Power State: L0
    Copper Loop(kft): 0.0
    (Downstream/Upstream)
    Line Coding(Trellis): On On
    SNR Margin (0.1 dB): 239 195 (23dB 19dB)
    Attenuation (0.1 dB): 280 145 (28dB 14dB)
    Output Power (0.1 dBm): 61 122
    Attainable Rate (Kbps): 17928 1251 (17.93Mbps/1.25Mbps)
    Path 0
    Rate (Kbps): 3360 863 (3.36Mbps/0.86Mbps)

    It's possible that you are coming out of a remote terminal or remote DSLAM, rather than a full blown central office. Verizon seems to have an unspoken rule or habit of only provisioning 3Mbps and below to customers on the remotes. To augment that, it's been seen in some cases that they are running Fiber to the remotes, but only supply the equivalent of several T1 circuits rather than OC-3 Fiber or better.
    To find out why the speeds are being limited, we would need to know what kind of DSLAM is in use, and how far you are from the nearest Verizon CO. The attenuation you have suggests you're one mile of wire length away from the source of DSL, which is either an RT or a CO. From that point, we would also need to find out what kind of connectiivty Verizon has running to your DSLAM.
    If you're coming out of a CO instead, it's also been seen that Verizon has a habit of selling only 3Mbps out of congested COs or those with lesser connectivity running to the CO.
    The thing you can do, is pressure Verizon into giving you at least 7Mbps. With those stats you should have no problems at all. It's going to take weeks of pushing to get the job done, but it is possible. I'd start off by calling Techincal Support, who would be able to assist with this. Emphasize to ignore the availability database - this is just a bunch of records controlled by what Verizon wants to input in.
    ========
    The first to bring me 1Gbps Fiber for $30/m wins!

  • Why does our new iMac down load speed so slow (1.99) being right next to router. Our hp laptop 30 ft away ran at 13.50.

    Why does our new imac download speed so slow (1.99) being right next to the router? Our HP laptop 30 ft  away is running at (13.50), and our old HP desk top connected to highspeed is at (33.10).

    You are surprised that Mac OS X 10.7 is running on hardware that Apple officially supports and says it will run on?  I find your logic unbelievably falwed.
    Not a single problem I've mentioned would be caused by "slow" CPU or "little" RAM.  How does iPhoto not bringing up the file dialog box have anything even remotely to do with the speed of the CPU or the quantity of RAM?  If what you say is true, then yes, performance would be bad, but it wouldn't be selectively bad.  I stated that apps such as Reason 5 run perfectly fine, even really well.  I can load 30-50 racks and synths and not even reach 50% of CPU utilization, Reason never freezes, etc.  DVD playback never freezes as well!!  Your logic is horrendously flawed, it seems you don't know much about computer architecture   Thus, unfortunately, your reply was of absolutely no help, sorry.
    p.s. the external disk spin up problem freezing up the entire graphical interface also has nothing to do with either my CPU/RAM or the OS version I'm running.  It is a known crippleware factor of Mac OS X that at least a thousand people are complaining about online and Apple has done nothing about! 

  • Why does SCHDNEGACTION scheduler job have high CPU usage?

    Hi,
    In my embeded device(double CPU 1.5 G HZ ) SCHDNEGACTION scheduler job has 90% CPU usage. Why does the scheduler job have so high CPU usage? What is the job doing for?

    Hi,
    This job is not created by the scheduler. You will have to find out what component creates the job and what exactly it does to figure out why it is using high cpu and what would be the effects of disabling it (which would prevent it from running).
    Hope this helps,
    Ravi.

Maybe you are looking for