Maximum loop rate achievable in FP 2010

Hi..
I am developing and application with FP-2010 RT controller. Right now I am in design stag and wondering what will be the maximum loop rate achivable with this controller.
searched ni.com... but didnt get any clue..
I hope some of you would have experienced with this controller.
Any help towards this will be greatly appreciated.
MIRASH

Hi Mirash,
just now I try also to improve the performance of a control loop with the FP-2010.
Up to now I find a limit of 100 msec to transfer one item.
My next trial will be to combine some items to one transfer.
Additionally I ask the question NI but have still no answer.
 skyh

Similar Messages

  • PCI-7041 pid loop rate

    Hello,
    I have PCI-7041/6040 card with which I would like to perform single point PID control. I have looked at the DAQmx example PID control - single channel.vi to do this. The only thing I am unsure on how to do, is set the loop rate to a specific kHz value. Is this done by using the 'Input Rate' control and how could I verify that the loop is running deterministically and to the rate I have set?
    thanks,
    David

    Hi David
    You are correct that the "Input Rate" control will set the loop rate for the example that you are using. There are a few ways to determine if the loop is running deterministically.
    One thing you can do is use the "DAQmx is Read or Write Late" VI. If the "is late?" output goes true, your loop is not keeping up with the specified hardware timed acquisition and generation.
    Another recommended method to determine if your loop is running determinisitically is to benchmark it using the TimeStamp VI's.
    There is a great example in the LabVIEW Example Finder that you can use for this. From the Example Finder, go to
    Tookits and Modules >> Real-Time >> Timing >> NI Timestamp Code Timer.
    You can combine your PID example code with this example to determine how long it takes for your PID code to execute when running on the real-time target. Just place the code you wish to benchmark in sequence 0 of the sequence structure of the Timestamp Code Timer example VI. This VI will give you some great information including average execution time and maximum jitter.

  • Ni7842 FPGA RIO board loop rate

    Hi,
    Is it possible to achieve a loop rate of 1us with the Ni7842 RIO board. It has an onboard clock of 40MHz. I have tried the following approaches to achieve a 1us loop rate and generate a single pulse of 1us duration, but wasn't successful.
    1st approach: The above flat sequence was originally with 2 frames, I removed the second processing frame to reduce any possible processing delays and changed counter units to usec with a count of 1. This did not work, minimum pulse width I could generate was 1ms.
    2nd approach: I changed counter units to ticks with a count of 40. This also was able to generate a min pulse width of 1ms only.
    The AO channel is capable of 1MS/s update rate and with an onboard clock of 40Mhz you would think you can achieve 1us. Why is it being so difficult for me? Please help.
    Thanks,
    PG

    Show some actual code.  If possible, supply a stripped down project that shows this issue.  I recommend zipping up this project and any needed VIs and posting the zip file.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Optimum servo pid loop rate

    Hi,
    I want some confirmation on the optimum pid loop rate and the fastest servo motor operation that we can acheive with Pxi-7352 running on Window.
    The manual of 7352 says "62 μs PID loop update rate for up to 2 axes". The requirment is to acheive periodic equi sized straight line and rotary motion ( using yaskawa servo motors in torque mode and 7352 to close position loop ) Both motion are independant and not operating simultaneous i.e rotary completes one full rotation in small steps and then linear moves by one small step then rotary completes next rotation in small steps and again linear motor moves this continues till end of test.
    you can observe here that both rotary and liner motion are periodic and move equi spaced distance for each step with small stoppage/dwell time of 500 u sec , The catch is in addition to positional accuracy in terms of 50 -100 microns the time for complete each step is also very crucial and very small (many peridoc steps together consitute complete linear and rotary motion). Find expected velocity profile attached for more details on desired timing.
    As the motors have simple and periodic straight line and rotary motion i suppose buffered contour moves are not needed which have limitation of 10 msec between two points, then can the time to acheive each step be as low as 2.5 to 5 msec considering best loop rate of 62.5 u sec and highest/worst pid loop rate of 500 usec.
    1. Is the expected timing of 2.5 - 5 m sec feasible assuming that the motor is capable of reaching 5000 rpm which is well above desired speed.
    2. 735x series being high performance motion controller what is the order of closed loop timing that we can expect for simple and periodic moves (say in order of 1000 usec or 10 msec)
    3. Can i interface one stepper motor and another servo motor where both the motors and drives are in position mode on single 7352 and UMI 7772.
    4. Are there any limitation if NI motion is not used for code development and NI motion Assistant along with LabVIEW is used instead.
    This is precision application and the component is very small ,the weight of the component would be less than 400 grams so i hope we do not have to consider inertial affect on motion significantly.
    Appriciate if some one with similar experience can provide more details.
    Regards,
    Bipin
    Solved!
    Go to Solution.
    Attachments:
    Velocity Profile.png ‏21 KB

    Hi Bipin,
    thank you for your comprehensive post. I had a close look at your timing specs and I strongly doubt, that these specs can be met with a 7352 board. Even though the PID loop rate of 62.5µs might be enough, both trajectory generator and the supervisory control (host communication, move command sequencing,...) are too slow to meet your requirements. Please note, that the trajectory generator always works with a timing interval of 10 ms, regardless of the operation mode (linear move, contouring, blending,...), so there is no way to reach your timing specs with this product. In general contouring is the fastest way to run a quick succession of moves, as it doesn't require host communication (by the way: onboard programs don't execute much faster, than programs that are running on the host).
    I don't want to make negative mareketing for our 735x boards, but your timing requirements are just way beyond the requirements of typical motion control applications and it's probably quite hard to find any COTS product in the market, that can meet these specs. 
    With this said, I would like to offer you an alternative solution, that is based on NI's FPGA technology. Additionally to a faster trajectory generator a faster control loop is probably also very desireable for your application. Even with the lowest price Virtex-II based R-Series multifunction board (PCI-7830R) you can run PID loops with 5µs cycle time and the trajectory generator at the same rate. You even can use a different type of control algorithm if required. This technology is leveraged very successfull in a lot of applications with very high performance and accuracy requirements (here are some examples).
    So these are the pros, but where are the cons? Well, the R-Series boards are general purpose FPGA boards and not ready to run motion control boards, so you need to develop the low-level control application by yourself. The good news here is, that it can all be done graphically in LabVIEW and that there are many ready to run examples for motion control, that can be used as a base for your development. Additionally you may want to have a look at the NI SoftMotion Development Module for LabVIEW, that simplifies the development of motion control applications, but it is not a mandatory tool and the benefits of this module might not be as high for your application, as ithey are for more standard motion control applications.
    I hope that helps.
    Kind regards,
    Jochen Klier
    National Instruments

  • PID loop rate with counters

    I'm trying to use a PXI-8106 RT and LabviewRT 8.5 as a PID controller to control 3 motors.  I'm measuring the speed of the motors by measuring the frequency of the encoder with a 6608.
    This article http://zone.ni.com/devzone/cda/tut/p/id/5423 claims a speed up to 107.5 khz.  I've set ethernet to polling and usb off, I didn't turn off  the CPU display, but I'll try that as soon as I can. However, I'm not anywhere close to 107khz, best I can get is about 10khz with one channel and about 2 khz with 3 channels.  I realize the tests were done with analog inputs, but I was hoping that  I'd get at least somewhere close using counters. With the 2Khz rate I really can't do what I need to do.
    Does anyone know what a realistic rate would be with this setup?
    I'm new at Labview so I may be doing something wrong, although I can't see what it could be. I've done quite a bit of research on the forums before I started to learn from other's examples.
    Here's a couple of things I've learned  trying to optimize my loops.
    Seems like Daqmx has some issues with applying a scale.  I have 2 scales, one is just a scale factor, 0.166, the other is .0002.  When applying the .0002 factor in Daqmx my performance takes  a huge hit, something like 10%!  If I just leave it at hz, and do the scaling myself I see no performance penalty.
    There is something strange about the timed loop % display in RT8.5, I wrote my own routine using expected end, actual end time, and the period to give me a % loop useage and it matches very well to the RT8.5 display for most of the time, however, when the loop starts missing iterations because I've gone over 100% the RT display drops down to about 50% which pretty much makes it useless.
    I've attached a couple of shots of my test loop. I can get this one to almost hit 10 khz. the other screen shots are of how I set up the counter, and how I read the counter. the read counter has the error trap to restart itself.  Also I set it to use DMA explicitly somewhere else in the program.
    Thanks for any help.
    Henri
    Attachments:
    Main Loop.JPG ‏55 KB
    Setup Counter.JPG ‏72 KB
    Read Counter.JPG ‏67 KB

    Devin,
    Thanks for the suggestions.
    A couple of related questions for you.
    The 200 uSec is leftover from my attempts at getting the 3 PID loops to work within the loop availability.  I can run  about 70 uSec i.e about 14khz  with only  a single counter.
    I've tried changing the buffers value and it has barely any effect on the speed of the loop. Right now I have 3 counters running with 200uSec timing and I get about 69% loop utilization. With a few missed iterations every once in a while. This is using 10000 samples, if I drop down to 100 samples utilization actually goes up to 70%!?  Doesn't make sense to me either, but this is using both my VI and the on screen Timed Structures % of LV8.5RT so I'm trusting it as real,
    In theory if I can get my loop rate up to 10 khz I'll only need 10 for the buffers since my top frequency to be measured is 100 kHz.
    Funny thing on the RT fifo variable... I turned on FIFO and it actually decreased performance by about 1%, both Total load and Time structures went up... so I turned it off for stop-RT, and got a 3% improvement! Down to 66% time structures.
    You mentioned the hardware timing to get a hardware timed single point. Unless I misunderstood the counters, this isn't possible since the sample rate is implicit in the frequency measured? i.e. it latches the count every rising edge.. so I'm my case I'd get a 100 khz sample rate (although obviouslyl that would be the max) Can you let me know if I've missed something there.
    I bought this system explicitly based on its dual core and its high speed so I could close my PID loops quickly enough with one CPU and still have processing time left over to log data, etc.  And the 6608 card is there so I can get high accuracy for my frequency measurements.   However, I'm really struggling to get this thing going.
    Any help would be greatly appreciated.
    Thanks
    Henri

  • [FPGA] Loop rate very slow: Do FPGA I/O nodes in parallel loops block each other?

    Hi,
    I am using cRIO-9075. Mod1 is NI 9263, Mod2 is NI 9227, Mod3 is 9215.
    Please see my VI attached or the given screenshot.
    The FPGA code is based on the "NI CompactRIO Waveform Reference Library" (it's the lower loop).
    The upper loop was added by me and is writing a waveform from blockmemory to the NI 9263 module (Mod 1).
    The data sampled in the lower loop is running at 1 kHz. The control "AO Update Period" for the upper loop has a value of (for example) 10 (=uS).
    The problem is, that this loop is running much much slower than it should. Once I disable the FPGA I/O node in the lower loop (as done in the attachments), it's running as fast as it should.
    It seems to me, that the FPGA I/O nodes are blocking each other. I tried to figure it out by reading through serveral NI documents, but until now I have no idea how to solve that.
    Can you give me some advices? Some general tipps about the VI?
    Thanks!
    Attachments:
    FPGA Loop Rate.PNG ‏72 KB
    FPGA Main.vi ‏251 KB

    Hi, thanks so far.
    Originally the control was inside the loop. Then I tried if it makes a difference if it's outside.
    Ok, i really seems to be that default value of "100000" for "AO Update Period".
    Starting the VI directly woks like expected. Having "AO Update period" inside the loop makes it possible to control it as it's running.
    But, please see the attachment. When starting the FPGA through RT and setting the appropiate value, it does not seem to work. The oscilloscope show's the same behavior like "AO Update Period" was 100000.
    But when reading the value of "AO Update Period" afterwards (while the FPGA is running), it shows the expected value of "10".
    Having changed the default value to 10 works so far, but I am not able to changed it (see attachment).
    So the problem is: Why is "Read/Write control" not working here? Why is still the default value used?
    Attachments:
    FPGA Loop Rate 2.PNG ‏5 KB

  • What is the maximum bit rate for a short NTSC standard def DVD?

    I have about 30 minutes of content from FCP that I want to put on a DVD.
    At first I tried iDVD and had problems with burning (although I did somehow make one DVD). So I built the project on DVD SP and made a DVD. However, the iDVD version looked much better. I checked out the file sizes and saw that there was 2 gigs on iDVD and only 1.6 DVD SP. Then I discovered the encoding options on DVD SP and I was curious what is the recommended average and maximum bit rate should be for the highest quality, yet still works in most DVD players?
    Thanks.

    DVD Bandwidth
    The rate is not based on running time.
    Some thoughts on rates
    7.2 - 8.0 seems to be the general consensus for discs from computers. I play more conservative for the reasson listed in that link

  • Maximum Bit Rate help

    I have been trying to find the best bit rate settings to display from a USB drive on an Xbox 360 or PS3.  I found the recommended settings but the maximum bit rate that I set it at, is always exceeded during playback.
    For example if I am using the h.264 codec with the bit rate settings of VBR and the maximum bit rate set for 10 Mbps, my bit rate will always spike way higher then 10 Mbps during scenes with more movement.  A scene where I'm pointing my camera out of a moving car with houses going by displayed a bit rate of 38.8.  In case anyone is wondering I use the bit rate counter on my PS3 to find the bit rate at any give time.
    Now When the bit rate spiked at 38.8 for that scene, it dipslayed fine on my PS3, but when played back on my Xbox it stutters a little at that moment. 
    If I use a CBR of 10 Mbps the bit rate still goes quite a bit over 10 Mbps but didn't approach 40 Mbps like it does when using a variable bit rate.  When using a CBR it played back flawlessly on both devices but there was a little drop in quality.
    Is there something I am doing wrong or is this just how it works?  I assumed the target bit rate is what you are shooting for and the maximum bit rate would never be exceeded.  Is that not the case?

    I took that it could be inaccurate in to consideration but when I play a blu-ray back the bit rate usually fluctuates between 25-35 Mbps so I assumed the readings were pretty accurate. 
    I'll try the VLC player as you suggested when I get home.  Does it show you the bit rate during playback, the average bit rate, or what?
    Also if I set my maximum bit rate to 10 Mbps should it never exceed that?

  • Upload Maximum Date Rate Lower Than Upload Data Ra...

    Hello there,
    I have just brought up my BT Home Hub 5 stats and my upload data rate is higher than my upload maximum date rate. Is this normal? My upload noise margin has dropped to 4.9 - 5.1 dB. I've had BT Infinity just over 2 days and was wondering if this was normal for FTTC connections?
    Many thanks,
    William

    normally the data rate will be lower than max data rate but yours is that close I would not bother unless it starts to affect your connection which is unlikely
    If you like a post, or want to say thanks for a helpful answer, please click on the Ratings star on the left-hand side of the post.
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • Maximum bit rate iTunes/iPad

    I am creating movies with Adobe Encore. Format is H.264 720p.
    Encore doesn't have a preset for iPad. After the movie is created I drag it into iTunes (no problem), then I try to sync the iPad and get the message "movie was not transferred to iPad because it cannot be played in this iPad".
    What is the maximum bit rate that can be used?
    Thanks.

    It seems to vary depending upon the specific format used. The iPad tech specs for video:
    - H.264 video up to 720p, 30 frames per second, Main Profile level 3.1 with AAC-LC audio up to 160 Kbps per channel, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats;
    - MPEG-4 video, up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats;
    - Motion JPEG (M-JPEG) up to 35 Mbps, 1280 by 720 pixels, 30 frames per second, audio in ulaw, PCM stereo audio in .avi file format
    Note the "up to 2.5 Mbps" for MPEG-4 and "up to 35 Mbps" for M-JPEG

  • Does anyone know how to find maximum sample rate on an mac 10.7.5

    Trying to see if I can downlaod a audio plug-in that requires a maximum sample rate of 199kHz. Where do I find this info for 2009 Mac 10.7.5?

    According to http://support.apple.com/kb/ht3913:
    "The internal microphone supports recording at bit depths of 16, 20, or 24 bits per sample and at sample rates of 44.1 kHz, 48 kHz, or 96 kHz."

  • FPGA - Synchroniz​ation between two loops with different loop rates.

    Hi all,
    I am trying to implement an Analog and Quadrature Decoder. Simply put, I have two loops:  LOOP 1 with an Analog Input (AI) which is a slower loop rate. Another loop: LOOP 2 has a digital input (input) and counts the Quadrature counts. I understand that Analog conversion is slower, and as a result,  LOOP 1 will have a slower higher tick rate. I want to pass the "counts" from LOOP 2 into LOOP1, so that I can synchronize the Analog Input with the number of quadrature counts. My issue at hand is: since LOOP 2 updates at a higher rate. Will the "counts" value that I pass/tunnel from LOOP 2 to LOOP 1 refresh at the LOOP 2's rate or at LOOP 1's rate.
    Thanks,
    Herrick Chang

    hlchang wrote:
    Hi all,
    I am trying to implement an Analog and Quadrature Decoder. Simply put, I have two loops:  LOOP 1 with an Analog Input (AI) which is a slower loop rate. Another loop: LOOP 2 has a digital input (input) and counts the Quadrature counts. I understand that Analog conversion is slower, and as a result,  LOOP 1 will have a slower higher tick rate. I want to pass the "counts" from LOOP 2 into LOOP1, so that I can synchronize the Analog Input with the number of quadrature counts. My issue at hand is: since LOOP 2 updates at a higher rate. Will the "counts" value that I pass/tunnel from LOOP 2 to LOOP 1 refresh at the LOOP 2's rate or at LOOP 1's rate.
    Thanks,
    Herrick Chang
    The only way to pass values between two parallel loops is by some sort of global variable (global or locals are fine, as are shared variables although I wouldn't recommend that for FPGA if you don't want to go outside of the FPGA target at all). Don't tunnel anything between two independant loops as they won't be independant anymore.
    The local variable will be updated at the rate the writing loop updates it, though your slower read loop will obviously not see every value. Note that the FPGA compiler will protect the local variable access in both loops in order to avoid race conditions. This protection is necessary but expensive in terms of runtime performance of each loop as well as FPGA gate usage.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Ipad 2 video data rate. Whats the maximum data rate it can play back?

    I'm creating a video file I want to play in 1920 x 1080 on the ipad 2 and not sure what the maximum data rate should be.

    Frankiedude wrote:
    I'm creating a video file I want to play in 1920 x 1080 on the ipad 2 and not sure what the maximum data rate should be.
    Depends upon the format of the video. See:
    http://www.apple.com/ipad/specs/

  • Need to slow down POLL loop rate

    I find that when I configure a device for polling and a connection is opened, the poll rate appears to run as fast as the computer will allow. I need to control the poll loop rate or "scan rate" so it scans once every 100ms. Some devices cannot handle a fast scan rate, must be slower than 10ms. How do I change my scan rate?

    Hello,
    Thanks for contacting National Instruments.
    I think you can accomplish what you are trying to do by using a different mode instead of Automatic. For example, if you use the Scanned mode, then you should be able to set the ExpPacketRate to the value you are interested in using as the poll rate. This information is documented on page 2-59 of the following manual.
    http://digital.ni.com/manuals.nsf/webAdvsearch/659F311DE89061978625680F0059DCF7?OpenDocument&vid=niwc&node=132100_US
    Hope this helps!
    Regards,
    Steven B.
    Applications Engineering
    National Instruments

  • Maximum bit rate for video

    I am using Handbrake to convert some video for use on my iPod. Their FAQ alleges that with the advent of iTunes v7.4 the iPod can handle an average bit rate of 2500 kbps. However, I find that the video intermittently pauses briefly on playback if I encode at that rate. Does anyone know the maximum bit rate that the iPod can handle?

    Changes to iTunes will have no effect on what the iPod can handle. Different software and hardware.
    Which iPod are we talking about? The original 5th generation iPod or the second versions (aka "5.5" gen)?
    http://support.apple.com/specs/ipod/iPodwith_video_30_60GB.html
    says...
    H.264 video: up to 768 Kbps, 320 x 240, 30 frames per sec., Baseline Profile up to Level 1.3 with AAC-LC up to 160 Kbps, 48 Khz, stereo audio in .m4v, .mp4 and .mov file formats
    MPEG-4 video: up to 2.5 mbps, 480 x 480, 30 frames per sec., Simple Profile with AAC-LC up to 160 Kbps, 48 Khz, stereo audio in .m4v, .mp4 and .mov file formats
    http://support.apple.com/specs/ipod/iPodFifth_Generation_Late2006.html
    says...
    H.264 video, up to 1.5 Mbps, 640 by 480 pixels, 30 frames per sec., Baseline Low-Complexity Profile with AAC-LC audio up to 160 Kbps, 48 kHz, stereo audio in .m4v, .mp4, and .mov file formats; H.264 video, up to 768 Kbps, 320 by 240 pixels, 30 frames per sec., Baseline Profile up to Level 1.3 with AAC-LC audio up to 160 Kbps, 48 kHz, stereo audio in .m4v, .mp4, and .mov file formats; MPEG-4 video, up to 2.5 Mbps, 640 by 480 pixels, 30 frames per sec., Simple Profile with AAC-LC audio up to 160 Kbps, 48 kHz, stereo audio in .m4v, .mp4, and .mov file formats
    Patrick

Maybe you are looking for