Flex_read_pos() is faster in 5.1.1 than in 7.0. Why?

My application was working fine with Motion Control 5.1.1. It gave me high sampling rate when using flex_read_pos_rtn() and flex_read_adc_rtn() (about 88Hz). But it only got about 19Hz after I upgraded it to 7.0. I wrote a small piece of code like below to verify (the other situations are the same: Win2000, CVI 7.1, etc.)
count=0;
do{
  count++;
  for (i=0; i<4; i++)
   status = flex_read_pos_rtn(BOARD_ID, NIMC_AXIS1+i, position+i);
   status = flex_read_adc16_rtn(BOARD_ID, NIMC_ADC1+i, adcReading2+i);
}while ( count<1000);
(I took out the code to measure the time and calculate the sampling rate.)
I found in several previous posts talking about the slow response time from flex_read_pos_rtn() (http://forums.ni.com/ni/board/message?board.id=240&message.id=1318&requireLogin=False, http://forums.ni.com/ni/board/message?board.id=180&message.id=5252&requireLogin=False), but seems the people to answer them tended to accept the fact that this function call was slow and there was no way to improve, and didn't realize that it might be possible that 7.0 Motion Control is the culprit.
Pls somebody help out. Thank you very much!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Thanks for the reply. Here are the information you need:
motion card: PCI-7344 (amplifier: MID-7654)
4 axes
"types of motor control application": don't know what exactly you mean. But my system can be described as simple as a one which has four axes, each of which has a Maxon DC motor (with encoder) driven my the motion card. Range of Motion is 360 deg for each.
PID parameters: I have 10 systems working in the factory right now. Of course they have different parameters. One example is: Kp=10, Kd=20, Ki=0
PC: Windows 2000, CVI 7.1
"what benchmarks or spec you are using to get the rates you mentioned above?": I used the sample code in my first post to keep sampling the 4 axes while moving them from 0 to 90 degrees. When they reached destinations, I stopped sampling, got the total time and number of samples, and calculate the sample rate (the calculation part has been removed from the sample code to make it simple).
Pls let me know what else you need. Pls also give it a try on both Motion Control 5.1.1 and 7.1 (or 6.0). You can tell the difference. I'm eagerly waiting for the response.
Thanks.
Jason

Similar Messages

  • I have i phone 4 brand new but the battery if i make it fully charge its take less than one day ? Why ?, I have i phone 4 brand new but the battery if i make it fully charge its take less than one day ? Why ?

    I have i phone 4 brand new but the battery if i make it fully charge its take less than one day ? Why ?, I have i phone 4 brand new but the battery if i make it fully charge its take less than one day ? Why ?

    Depends on usage, your cellular reception overall, and various settings during that time.

  • I use iPhone, iPad and MacPro, all works fine but the newly purchased iMac does not receive emails on time - always later than other devices. Why and how to fix?

    I use iPhone, iPad and MacPro, all works fine but the newly purchased iMac does not receive emails on time - always later than other devices. Why and how to fix?

    Go to Mail Preferences
    Click on the General tab
    Set  "Check for New Messages:"  to  "Every Minute"
    Hope this helps

  • I have OS X 1.6.8, 2GB of RAM and more than enough space. Why can't I download Mavericks?, I have OS X 1.6.8, 2GB of RAM and more than enough space. Why can't I download Mavericks?

    I have OS X 1.6.8, 2GB of RAM and more than enough space. Why cant I Install Mavericks?

    OS X Mavericks Supported Hardware List
    iMac (Mid-2007 or later)
    MacBook (13-inch Aluminum, Late 2008), (13-inch, Early 2009 or later)
    MacBook Pro (13-inch, Mid-2009 or later), (15-inch, Mid/Late 2007 or later), (17-inch, Late 2007 or later)
    MacBook Air (Late 2008 or later)
    Mac Mini (Early 2009 or later)
    Mac Pro (Early 2008 or later)
    Xserve (Early 2009)

  • When my MacBook pro late 2011 wakes from sleep i have it set to make me enter my password, but when that pace comes up the resolution of it is smaller than my screen. Why is this happening?

    When my MacBook pro late 2011 wakes from sleep i have it set to make me enter my password, but when that pace comes up the resolution of it is smaller than my screen. Why is this happening?

    I was at the Apple Service. The problem was the 750Gb Toshiba HDD. It's incredible what noise can make that little thing
    I didn't know the hdd position is on left on MBP 17" ,  I thought is the same position like MBP15"
    I did't lose any kind of data.. it was fix on time.
    Anyway, thank u guys....and don't forget that noise !!!  
    P.S. I'll make a song with that noise sample to remember it

  • Faster ethernet data transfer time than 2ms

    Dear all,
    I'm using labview 7.1 based on a standard laptop communicating with a LabVIEW real time maching running the standard real time operating system. The two machines are connected through a dedication ethernet switch  (rated to 1Gbs), and both have ethernet cards (rated at 100Mbs or greater).
    The aim of my project is to have a fast distributed control scheme going. This basically means that small amounts of sensor data have to be transferred very quickly between the two machines. The aim is to then scale this to have more machines on the network.
    I use a UDP data transfer method, using the standard labview UDP read and UDP write vis.
    I would like to acheive a major frame rate of around 500Hz. The problem I have restricting me with this is the speed of the ethernet connection. It would appear that the vi wrtes to buffer instantaneously, but it is taking as much as 2-3ms for the data package to be sent and received by the other machine. This is a ridiculously long amount of time. I'm sending approximately 100bytes, so the time on the network should be 0.01ms. This would suggest the time delay is in the reading or writing of the data from the Ethernet card over the PCI bus to the program.
    Does anyone know why its taking so long? Do the UDP read vis only check the ethernet hardware every ms? I've taken great care to ensure that this is not a synchronisation or timing problem and I am certain it is not that. 
    I could really do with making this data transfer quicker as it is clearly the slowest part of the control loop. If anyone has come across this before and found a solution I would be grateful to know about it. I'm really hoping that I won't have to write something low-level in C or anything like that and try and integrate it with the code I have.
    Many thanks,
    Pete

    Finally found some hard numbers for data transfer rates. From this website. http://www.intellicom.se/ModbusTCP_overview.shtml
    Performance from a MODBUS TCP/IP system
    The performance basically depends on the network and the hardware. If you are running MODBUS® TCP/IP over the Internet, you won't get better than typical Internet response times. However, for communicating for debug and maintenance purposes, this may be perfectly adequate and save you from having to catch a plane or go to site on a Sunday morning!
    For a high-performance Intranet with high-speed Ethernet switches to guarantee performance, the situation is completely different.
    In theory MODBUS® TCP/IP carries data at up to 250/(250+70+70) or about 60% efficiency when transferring registers in bulk, and since 10 Base T Ethernet carries about 1.25 Mbytes/sec raw, the theoretical throughput is:
    1.25M / 2 * 60% = 360000 registers per second and the 100 Base T speed is 10 x greater.
    This assumes that you are using devices that can service Ethernet as fast as bandwidth is available.
    Practical tests carried out by Schneider Automation using a MOMENTUMTM Ethernet PLC with Ethernet I/O demonstrated that up to 4000 I/O bases could be scanned per second, each I/O base having up to 16 12-bit analog I/O or 32 discrete I/O. Four bases could be updated in one millisecond. While this is below the theoretical limit calculated above, it must be remembered that the tested device was running with a lowly 80186 CPU running at 50Mhertz with an effective computing power of 3 MIPS (compared to the 700 MIPS of a 500MHz Pentium). Also, these results are nevertheless faster than the proprietary I/O scan methods used to date.
    As low-end CPU's get cheaper, Momentum-type devices will chase the theoretical limit, although they'll never reach it because the limit will be continually pushed further away with 1 Gigabit Ethernet, 10 Gigabit Ethernet, etc. This is in contrast to other field-buses which are inherently stuck at one speed

  • My iPhone 4S runs faster on iOS 8.1 than on 8.0.2

    I probably should have just stayed with iOS 7.X, but I really wanted some of the features included in iOS 8.X. So I updated to iOS 8.0 then 8.0.2 (I skipped 8.0.1 for obvious reasons).  8.0 was OK, a little laggy but workable.  8.0.2 was really laggy and crashed a fair number of times.  So I figured, 8.1 couldn't be any worse unless it actually bricked my phone.
    I am pretty pleased with the fixes in 8.1.  My iPhone 4S is running almost as fast as it did under the last version of 7.X.  I ran a benchmark under 8.1 and compared it to one I had run when I was using 7.X and the results are very close to one another.  The home screens flip back and forth more smoothly using 8.1 and I can swipe easily between locations in Yahoo Weather.  (I still like Yahoo Weather better than the new built in weather app) Under 8.0.2 swiping between home screens and cities in Weather was very laggy and prone to having to make multiple swipes to just move one screen either way.
    So, if you are happy with your 4S's performance using iOS 7.X I would say stick with it. But if you want to try out some of the new iOS 8.X features updating to 8.1 is a good choice.

    And after 4 days of normal use, I am getting better battery life than I did using iOS 7.X.  I can get through the day, listening to music, playing a few games, texting, emailing, web searches, and even a few phone calls.  GPS apps like Maps still kill the battery but I expected that. 
    I didn't even do a full discharge/recharge cycle.  I started getting better battery life as son as I updated my phone and did a restart.

  • Extreme Base Station faster up than down...Why???

    Hello all!
    I'm brand new here, so please forgive my ignorance. I just replaced a MIMO router ( CompUSA brand) with the Airport Extreme Base Station. Speed tests reveal that my downstream speed to average 2Mbps, while upstream is nearly 8Mbps...what am I doing wrong? Isn't it supposed to be the opposite, with down being much faster than up?
    Any help will be greatly appreciated...thanks in advance
    backlineguy

    I can answer my own post!...how's that!...Full throttle throughput was attained by first restarting the cable modem with the Airport Extreme Base station (AEBS) powered off. Depress the reset button on the AEBS and hold for 10-15 seconds WHILE powering it up. Voila. Incredibly, the downstream is flowing at more than 28Mbps!...and upstream 7Mbps...that's the kind of speed I was looking for! Hope this helps anyone with the same issue!.

  • Will 8 mbit ADSL connection be faster with 54 mbit router than 11 mbit?

    I have a Cube, iMac G5 and iBook G4 connected wireless to an old 11 mbit Airport router. My connection speed is up to 8 mbit from my Internet provider. If I buy a 54 mbit wireless base station and replace the 11 mbit, will my connection be faster or is it the same? Has a 54 mbit router better distance range than an old 11 mbit?

    If I buy a 54 mbit wireless base station and replace the 11 mbit, will my connection be faster or is it the same?I would hazard to guess it would as long as you don't allow any 802.11b clients (like the Cube).Has a 54 mbit router better distance range than an old 11 mbit?No, in fact frequently worse. A 54 Mbps (802.11g) base station will drop down to 11 Mbps to get the same range as 802.11b base stations. So the advertised range of the base station is the same.

  • Query Perofmance is much more fast in SQL server 2000 than Oracle 9i

    I have converted a database from SQL Server 2000 to Oracle (9.0.2).
    In a stored procedure a query based on 4 tables working well in SQL Server which takes just 1 or 2 minutes to give result But in Oracle it takes 3 to 4 Hours to return the results.Although Database hit ratio is 99 plus %. In Oracle when i created indexes on 2 columns of 2 tables it just take 5 to 10 sec. But I want to get the result in less time without indexes. Because in
    SQL Server it Works well without indexes.
    Please reply me with some solutions or reasons
    Regards
    AN

    Most sites have a job that runs every night to keep the statistics up to date.Really? I would be very surprised if that was the case. Firstly, many sites don't want to take the hit of running stats for a whole system each night. Secondly, I would hope that many DBAs know this statement...
    Always keep up to date statistics if you want your database to be efficent. ...is wrong.
    The best that can happen from refreshing the statistics every night is that it makes no difference to your application. If your application is running nicely - that is, no users are yelling at you - then your current statistics are good enough. Refreshing statistics introduces instability into the system and might lead to queries performing worse than before.
    Gathering stats is not the sort of thing you want to do with a scattergun. Analyze your database once, after you've reached what is a representative data volume and then leave it alone. Only refresh statistics if you have a specific issue (user complaint) and you think stale statistics might be the cause.
    Cheers, APC

  • Can anyone tell me why Logic runs faster on an iMac G5 than my G5 2.7 PPC?

    I am missing something. On my desktop tower Dual 2.7 PPC on which I run Logic Pro 7 and other programs like Protools 7.1, I noticed that Logic 8 runs slower than Logic 7 - graphic redraws are sluggish.
    However, I just came back from a friend's and saw Logic 8 running on an iMac G5 - with a single processor to boot (can't remember exact clock speed but under 2G) and redraws are quicker and I didn't get the "Disk Too Slow" message when playing the demo content.
    How can this imac run Logic better than the better spec'd machined?
    Has anyone else seen this?
    Some installation must be hampering Logic 8 performance on my 2.7G mac but I can't think of what. Maybe one of the Pro Application updates? Or maybe I need to install the Pro Application updates?
    Any help is appreciated.

    it is not a 'port' steve, it is as native on ppc as it is intel...and i think the OT was talking about an older imac that was still ppc.
    ken, i would say that the problems you are encountering may very well be a pro app update. but it also depends on the project as well. i have been finding some projects behave very sluggishly and others, even more densely programmed ones are quite smooth. also i find the 'sticky' slower projects to be a bit crashier. but the thing is, i don't think it makes any difference between songs made in 8 or made in 7. i would have thought that the 7 songs might cause problems but there doesn't seem to be much rhyme or reason between what songs are going to behave oddly and those that don't.
    also there are many factors that can affect GUI speed. someone was saying that if you have lots of icons and folders open on your desktop it can have an affect on your GUI.
    but for what it's worth ken, i have 2.7 ppc as well and for the most part the GUI speed is ok (if not actually electrifying).

  • Enabling Fast User Schwitchin for more than 2 network account

    Hello,
    My Fast User Schwitching is enabled
    When I log into an iMac, with a network account, at the right top corner, I can see black personn (icon) from where I see the local Admin account and the netowrk account that I use.
    Always from the balck person icon, I can click on Login Window, and then I have the possiblity to log into a third.
    But at this time, when I try to be log with the second network account I got that error message :
    "Your are unable to log in to the user account this time. Login in to the account failed bevauce an error accured"
    But when I log off the first network account, I can log with the any other account.
    In resume, only one local account and one network account can be log. Not 2 network account.
    Any idea why, and how can I switch between 2 or more network account?
    Many thank

    Any idea, it will help?

  • Firefox is supposed to be faster - it's far slower than any other version & I'm going to back to Explorer - this is too much & it keeps crashing!. Is anything going to be sorted soon?

    It is now so slow to load pages - I can have coffee and then maybe a page has loaded. Otherwise it's "embarrassed" because it cannot load pages/ bookmarks. This version is terrible - can you not put back the previous version till you've sorted out the problems?

    I don't know anything about that.  But I googled it and found this post in another forum -
    "I have more info on the issue at hand.
    The RDTSC instruction has, until recently, been an excellent high-resolution, low-overhead way of getting CPU timing information. With the advent of multi-core/hyperthreaded CPUs, systems with multiple CPUs, and "hibernating" operating systems, RDTSC often no longer provides reliable results. The issue has two components: rate of tick and whether all cores (processors) have identical values in their time-keeping registers. There is no longer any promise that the timestamp counters of multiple CPUs on a single motherboard will be synchronized. So, you can no longer get reliable timestamp values unless you lock your program to using a single CPU. Even then, the CPU speed may change due to power-saving measures taken by the OS or BIOS, or the system may be hibernated and later resumed (resetting the time stamp counter).
    I might be understanding this wrong but... Basically both RDTSC and QPC are used to time code in time-sensitive programs. However, RDTSC might be inaccurate in above described situations. I also might be wrong about this but I believe QPC has something to do with the HPET high precision event timer. Which is a more accurate timer.
    So this might explain why RDTSC and QPC has a delta that is too high. And if all of what I said above is true, then this error is benign."
    This signature left intentionally blank.

  • IPod Touch 4G faster with iOS 5.1 than iOS 5.0.1 ?

    Hello everyone,
    A lot of iPod Touch 4G owners have noticed the slowness of their iPod Touch 4G when upgrading from iOS 4 to iOS 5 (both 5.0 and 5.0.1), and it is my case too. Now Apple just released iOS 5.1.
    Does somebody owning an iPod Touch 4G have made the upgrade from 5.0.1 to 5.1 ? Have you noticed an inscrease of speed/response time of your device since then ?
    I hope Apple found a solution to that, because that slowness is becoming relly annoying.
    Thank you !
    Best regards,
    Pierre

    Hey, I just updated to iOS 5.1 with my iPod touch 4g, and I can confirm it works much smoother. Also my buttons (home button, volume + power button) were unresponsive before, they work very well now.
    Hope this helped.

  • Some of the entries in my address book show birthdays one day/year earlier in Ical. I cannot change this except by putting in the birthdays a day/year earlier than they are. Why is this happening only for some entiries and not others?

    Some of the birthdays I have entered in Address book appear in my Ical one day and one year earlier than the date I have given. Eg. I have entered a birthday in Address book as 23 March 2011 and it appears in Ical as being on 22 March 2010. Other names have no problems. There are only some that do not appear with the correct date and year. Why is this?  Has anyone found how to correct this strange problem?  I have Time Zones ticked.
    Bronze2011

    I'm having this exact same problem, but it's doing it with a bunch of birthdays. I also did 0001 when I didn't know the birth year, so I went back and did a more current year, but they still aren't showing up where they should be...or at all. It's completely bizarre.

Maybe you are looking for

  • Send 2 MobileMe Problem

    Hello, when i take a picture (not landscape) and i'll send it through the camera.app to my mobileme gallery, it automaticly rotate the picture when i try to watch the gallery through IE8 or Safari. When i make a screenshot for example and upload it f

  • Is it possible to place display co-ordinate for page item

    hi, In any one of the reagion, if i want to display the label as "Name" in Row Number 15, column no 10 (assuming screen size is 25 rows and 80 characters ) and input column on specified row and column. (here row is vertically numbered and column is h

  • Rendering to PNG error

    A problem cropped up after switching to After Effect CC 2014; grabbing a frame as a PNG file fails with this error message: "AEGP Plugin PNGIO support: PNGIO library error: known incorrect sRGB profile ( 5027 :: 12 )" So, what the heck is that suppos

  • Lost Previously Purchased Songs when upgraded to iTunes 7.0.2.16

    I upgraded to iTunes 7.0.2.16 and now when I sync my iPod I receive a message stating "Some of the items in the iTunes library, including ... were not copied to your iPod ... because you are not authorized to play them on this computer" However, I pu

  • Screen Recording Program Recommendation

    I would like to include screen recordings for software training into Final Cut sequences. The flow of the modules will be someone on camera talking about the software program, then I cut to the software demo. Any recommendations on a good program to