Encoder movement response too slow

I have a USDigital QSB-D USB/serial encoder which uses a serial uart interface at 230.4 kb/s, 8 bits, no parity, 1stop bit.  The USDigital driver (USDQSB.dll) allows me to open/close and read/write to registers and provides get/set functions to set specific modes.  The driver provides StreamEncoderCount function which takes threshold and intervalRate parameters.  The threshold specifies count changes to trigger transmission and the intervalRate is time interval between transfers.  In the attached VI I am attempting to use the StreamEncoderStatus() function to wait for the encoder index pulse which indicates the encoder has passed zero counts.  When the index pulse is detected I would like to use the StreamEncoderCount function to retreive encoder counts as rapidly as possible.  I am setting the threshold to 0 so it will read the count even if it is not moving and intervalRate to 1 which should be sending count value at 1.9 msec intervals.  The for loop count ie 100 which should take 190 msec to read at 1.9 msec.  The for loop takes over 3 sec which means that the sample rate is over 30 msec instead of 1.9 msec. I am using a notification to notify another the other while loop which plots the results.  Everything works as intended except for the slow response of 30 msec per sample instead of 1.9 msec.
John
Attachments:
QSBEncoder2.vi ‏72 KB

I was not able to find your dll benchmark application to do that test but I am beyond that now.  I have found the correct function to read streamed serial input from the encoder which is the USDQSB.dll function: GetCountWithTimeStamp() which apparently just reads the streamed serial input and does not query the count register repeatedly.  The attached QSBEncoder3.vi uses that function and performance is as expected.
I have rewritten the encoder application to use the VISA driver.  The encoder is automatically recognized as a serial device by VISA and assigned the instrument ID: ASRL3::INSTR.  The attached QSBEncoder4.vi attempts to access the encoder using VISA but I don't get any response from the encoder serial port.  Any ideas on what I am doing incorrectly?  I am able to access the encoder using the VISA interactive control but when using the LabView QSBEncoder4.vi application I don't see any input coming from the ASRL3::INSTR  device.
John
Attachments:
QSBEncoder3.vi ‏71 KB
QSBEncoder4.vi ‏80 KB

Similar Messages

  • TP Yoga 15 - Windows: Keyboard response too slow after coming back from hibernation

    I've got the same issue as outlined in this thread for a Y50 - there seems to be a BIOS update to solve it, but what about TP Yoga 15? Quote:Simply put, In keyboard properties , the Repeat delay is default at maximum (eg, holding down a keyboard button and how fast it generates the key strokes). When the system is put in hiberanation, then turned on again to come back, the Repeat delay some how gets decreased to about 2/3 of what it originally is. https://forums.lenovo.com/t5/Lenovo-P-Y-and-Z-series/Re-Y50-Windows-8-Keyboard-response-too-slow-after-coming-back/td-p/1676309/page/1 

    hi guys,
    Can you please provide also these additional information:
    (this is to check if the issue is isolated to a certain model number)
    Model Number (eg. 59-xxxxxx): 
    Place of Purchase (eg. Amazon, Bestbuy, etc.): 
    In addition, the solution from this thread seems to be a good workaround (the app is for Win7 but may also work for Win8.1)
    Regards
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • Application response too slow- How to resolve (webLogic)

    Hi All, Can you please let me know what are all the main areas that i need to concentrate in the weblogic application server if i get the complaint from the clients saying "application performance is too slow".
    Edited by: user11361691 on Apr 21, 2010 12:18 AM

    you need to check the following:
    1: Check the server log files to find any errors at the time when the Client is complaining about the server performance.
    2: You can enable the GC logs in the server log and can check whether the there is any issues with the memory usage of the server. From the GC logs you can that whether the time has been taken to to the GC and hence you can try allocating higher memory or you can try changing the GC algorithm according to the analysis.
    For details refer the following link:
    http://download.oracle.com/docs/cd/E13222_01/wls/docs100/perform/topten.html
    http://download.oracle.com/docs/cd/E13222_01/wls/docs100/perform/JVMTuning.html
    3: Finally you can collect the thread dumps snap shots and can see whether there are any stuck threads or deadlock situation in the server at the time of slow performance.

  • Read Encoder Position is too slow, why?

    I am controlling a telescope using close-loop servo mode of 7342. What I want is to use get current position of my motor using encoder and since the position value is critical to my telescope motion system I need a fast read back of that value. However, the action is very slow, about 20ms a cycle. Is there any specification on the speed of this function? Is there any solution to speed it up? Are there any new products which is faster than this card?

    The NI-735x family of motion controllers allows you to read the position much faster. The position is read from a shared register that the motion board updates. Since it is a register read, the host takes very little time to get the position information.
    The NI-733x/4x families of motion controllers do send a command to the motion board that the motion board has to process and then return the data. Typically this should only take a few milliseconds or less for a read. But it is dependent on what else the motion board is doing. Things that can effect the time it takes to respond to a host request are number of axes used in arc moves, and short bursts of multiple commands sent to the board. The board has a FIFO that is 16 commands deep. If you send down multiple commands followed by a read position, each command in front of the read command has to be processed first. Which could explain why you are seeing a 20 ms read.
    In NI-Motion 6.1.x we have changed the driver software to help load balance the host request with the rest of the processes running on the board. In most cases this helps performance.
    What version of our driver software are you using? How fast do you really need to get the position information?
    Thanks,
    Rodger S.

  • RENTED MOVIE PLAYING TOO SLOW

    hi All,
    After several million hours (well 3.5) spent downloading a movie (Domestic Disturbance) I play it only to find it is playing very slow and the actions don't match the audio. It is really irritating and impossible to watch. I tried cleaning out my computer to free up space to no avail.
    I then put the movie on my external hard drive to play on my other better laptop but when I opened it it would not let me play it saying it was authorized to play on another device...grr
    Any advice anyone????

    ANYONE?????

  • Re: Y50 Windows 8 : Keyboard response too slow after coming back from hibernation

    I also have this problem.
    Lenovo Part #: 59421845
    Model: 20378
    Purchase from: Replacement/Exchange from Lenovo
    I wish I saw this thread before I did a factory restore. Ohh well, atleast its somewhat comforting to know I'm not the only one having this issue. I initially blamed the problem on my Razer Orochi 2013, but turns out that wasn't the issue.
    And I agree a proper fix is needed, wether is be some kind of BIOS or Driver update, but not some 3rd Party work around. For a $1,200+ laptop, this shouldn't be something that just get's swept under the carpet with a "temporary fix".
    Please keep us up to date on the status of this issue Lenovo.
    EDIT: Using this post as the first in the thread for escalation purposes - Amy_Lenovo

    When I put the Y50 to sleep or hibernate and then wake it, the keyboard refresh rate defaults to incredibly slow speeds.  So when I hit and hold backspace, it only removes 3 characters a second as opposed to 15-20 per second like I desire.  The only solutions are to reoboot or go into keyboard settings in the control panel and save the settings again.  The settings don't actually change, so just opening the settings and hitting apply is good enough to fix it.  This is obviosuly a software bug and others on online forums are experiencing the same issue.  If anybody else is experiencing this bug, please post here so Lenovo might take action to correct it faster.  Lenovo, if you're listening, please offer us a solution.
    Moderator Note; subject edited; post merged in

  • Audio track in movie plays too slow

    Only when I play it on my iPod touch after converting it like all of my other movies, the audio lags behind. But when I watch the converted file on my computer, it's up to speed. Any solutions? Both my iTunes and iOS are up to date. I have an iPod Touch 4G 32GB. And I use Xilisoft video converter. Thanks.

    If the film has different audio options then you should get a speech bubble icon on the left-hand end playback controls on it : http://support.apple.com/kb/HT5562
    e.g.

  • Movie render too slow in After Effects CS4

    I have Mac Book with 2 .0 G RAM running AECS4. It took 2 hours to render a project with 30 second and It's only use 10 - 20% of 2.0 G RAM in the Render Queue. What can I do to make it render faster ?. Please help me , Thanks very much

    okay this is annoying, I have a 1.7ghz processor , and 1.25gb of RAM with a GForce2.0 video card.  yes i know its most certainly not the fastest computer, but it works. also, it came from a special place, fallen from heaven and left at the dump. yup, thats where i got it. straight out of the magic box of old and abandoned technology.  unfortunatly it wasnt quite working at the time, it needed a new power supply and hardrive, bc the old one was infested with earth link and only had 10mb out of 40gb left in it. anyway thats beside the point, what my point is, id like to know what kind of hardware i could put in my computer to making it quick render things when im still in the editting project, of course im new to after effects and dont know much, but whenever im actually having some fun and making some interesting stuff, the program just doesnt want to keep up. so id like to know if i should get more RAM for it or get a multi core processor, or maybe even a more suitable video card,      and if nothing else would work. just a new computer. also id like to know if i over clocked my processor a bit, would that help the speed of like my computer quick redering stuff,   it came with a high performance neon fan (very loud) so i think i can overclock it, just dont know if it will help.     by the way its a Dell 8100     if ud like to look up the specs on microsoft, but its modified a bit.

  • Mac pro too slow to use, spinning ball, no finder response, only hard power off, installing system stalls at 18 minutes left.

    mac pro too slow to use, spinning ball, no finder response, only hard power off, installing system stalls at 18 minutes left.
    It is taking an hour to power up and mac apple logo appear onscreen. No finder controls or "clicks" are being recognized. Spinning beachball all the time.
    Using hard power off and holding the mouse down, I was able to open the optical drive and then restart with "c" and ask the dvd to reinstall the system, but it has stalled before finishing the installation.
    This happened about 4 days ago, first it started responding slowly, and then it just keeps spinning the beachball. I can't find hardware test. I did run etrecheck, it did not have any error messages, but I can't copy or move the data anywhere.... I am not able to access the mac pro with another machine, and now I am stuck in install freeze, so I can't copy etrecheck by hand onto a piece of paper.
    Without being able to finish a reinstall, what can I try?
    After it got bad, and before it got REALLY bad, I managed to repair permissions, but it took a long time. Most of a day. When I restarted from that, things were only worse.
    Mac Pro 1,1 , 11 GB ram, 7300, 5TB hard drives, OS 10.6.8,  the drive containing the system folder is/was 700 used, 290 free. While I could get commands to respond, I put Activity monitor on the desktop and watched it.  System memory was 3.31 GB used, about 7 free, and some wired. No app was using a huge amount.
    what should I try next? I put a bid on a new/old machine so that I could move the 4 hard drives over.

    Thank you for all your suggestions. Please correct me as I articulate this.
    I have three versions( 5, 6, CC) of the Adobe Master Collection which I keep active for different clients. I have final cut and motion. I have Office 365. I have a collection of graphic apps that are individually not too big but in all, my app folder is 65GB and my bootcamp partition is 61GB. I can't fit all this on 120 ssd and a 256 will be full once I install, correct? drives should be half open?
    Somehow I did not make it clear enough that I was trying to copy onto a 2TB drive I had just initiallized in order to try and save files from my startup drive. I don't use time machine. I take a day or a few days worth of documents and physically move them to another drive at night.  If a series is finished I make two dvd's as well. The second black drive that was failing was the drive I moved my backup documents onto. At no point was I trying to backup onto the failing drives. I was trying to copy off both of them onto the other two drives, a third aux backup that has been there for a while, and a newish 2 TB which I designated as the startup drive when all this trouble started.
    I wondered if there were any good techniques for trying to get the data off the failing drive. Thanks for the suggestion of Data Rescue 3. I don't have it yet, but I will try it as soon as I get it. I was never trying to repair in place.
    I am very interested in getting a pci bracket and an ssd, but I may wait until I can afford the larger one. If I get an older bracket that is compatible with my old mac pro 1,1  ,  I'd like to be able to move it to a mac pro 3,1 if I get one. Will the larger ssd drives be compatible with the sata in a pci bracket that can work in my mac pro 1,1 ? sata 2 versus something else? If 240 or 256 is my size limit, how much more than my 65 and 61 GB partitions can I put on there? How much of a scratch disc can I make if I leave another 39 GB of headroom on my bootcamp partition? I'm filling 165 GB without making any allowance for temp files.
    You have said that 120 is enough for any system. I think I must be misunderstanding something. Are you saying that assuming that most people run office and photoshop and maybe lightroom?
    I have and use 4 HDD in this machine, mostly for document storage in two places.
    I took out all but the group of 2GB ram chips I bought a year and a half ago. The old ram had passed the hardware test the last time I had access to the hardware test. Two black drives failed, one was a year old and one was a year and a half old, and that it may have been exacerbated by the heat wave. I don't know why the video and the monitor were affected save that the startup drive was failing. I am trying to replace the card.
    With all this said, I am also looking at a used mac pro 3,1 with a better video card since a newer machine will likley be compatible through another OS upgrade. If a machine costs only a little more than a new card, it might be a better way to go.
    I don't have any sources that offer an ssd for 100. ( of a size that is useful)
    How large is your application folder?

  • I just brought a brand new Macbook pro retina display, when i connect it to my apple tv through airplay its too slow and when it try to play a movie apply tv is always a minute or 2 behind. How can i fix this?

    I just brought a brand new Macbook pro retina display, when i connect it to my apple tv through airplay its too slow and when it try to play a movie apply tv is always a minute or 2 behind. How can i fix this?

    Hello HanaAmer1,
    We've an article which provides troubleshooting steps that can help get AirPlay workign correctly.
    iTunes: Troubleshooting AirPlay and AirPlay Mirroring
    http://support.apple.com/kb/TS5209
    Cheers,
    Allen

  • I was charged for a movie that never was downloaded, i asked for it but the conection was too slow and I never was able to have the movie that i asked for...how can i get it without being charged again, who could remove the chage from my Crecit card?

    i was charged for a movie that never was downloaded, i asked for it but the conection was too slow and I never was able to have the movie that i asked for...how can i get it without being charged again, who could remove the chage from my Crecit card?

    You may not be able to get a refund, since the terms of sale for the iTunes Store state that all sales are final. You can contact the iTunes Store, explain the reason for your request, and ask, though:
    http://www.apple.com/support/itunes/contact.html
    It's possible they'll make an exception for you, particularly if the problem was on their end preventing the movie from downloading in a reasonable time.
    Good luck.

  • Response message became too slow, after transported to Consolidation Sys!

    Hi guys,
    I have a sync interface with BPM who calls an HTTP service.
    In development system things work fine and the interface is really fast. It gets a response from HTTP service in a few seconds (also with big messages, over 2 mega bytes). After transported to the consolidation system, the response message became too slow and after 600sec it gets a timeout.
    No parameters on Integration Server and RZ10 were changed…
    Anyone knows what’s happening or have an idea?
    Thanks in advance,
    Ricardo.
    Message was edited by: Ricardo  Quintino

    Hi Udo,
    What do you mean "the channels are not transported 1:1"?
    One thing, the difference between Development XI and Consolidation XI is that Consolidation is in Cluster.
    I need to do some extra configurations for HTTP in Cluster systems?
    Thanks in advance.
    Regards,
    Ricardo.
    Message was edited by: Ricardo  Quintino

  • Web Analysis response time is too slow

    Hello
    I have a problem with Web analysis 9.3.1 because the response time is too slow.
    We used IBM Websphere 6.1.0.5 to deployment.
    Anyone have any idea about what is happening and how can I improve performance?
    Thanks

    Hi Beny,
    What is 'certixxsd.txt'? Did this slow enqueue response happen once or frequently? Are you observiing any performance issue in some SAP application?
    Regards, Randolf

  • HT1338 I need to update to Lion and then Mountain Lion, but I need a CD or other means to update as my internet is too slow and I have a GB limit. Is this possible?

    I need to update to Lion and then Mountain Lion, but I need a CD or other means to update as my internet is too slow and I have a GB limit. Is this possible?

    Thanks for your response. I was told, obviously misinformed, that you needed to dl Lion prior to Mountain Lion, so thanks for clarifying that. I cannot dl from the internet as it is too slow and I have limited GB per month. I know, at one point, you could purchase a jumpdrive with Lion for those of us who have this problem or no internet access. I will check into that via Apple or try to borrow internet service from a friend and move my computer there.
    Thanks again.

  • Lightroom 2.4 Is Too Slow To Use As A Professional Product

    Hello -
    I would like to know how to get Lightroom to respond in less than 4-8 seconds for almost any task.
    From returning to Grid mode (4.5 seconds) to adjusting a routine crop and angle (5-7 seconds per move, 60-90 seconds total) to simply shift-selecting three to fifty photos (4-9 seconds) no matter what I do in Lightroom, it is worse that Photoshop 1.0 on a Mac Plus. Really.
    Returning to Lightroom from another app - 7 seconds.
    Getting the menus to drop down - 4 seconds.
    My lightroom settings:
    standard preview size: 1680
    Quality: High
    Discard 1:1: Never
    write changes to XMP: off
    Catalog: 127 mb on F drive (24 gig free)
    Catalog: 13.5k photos, 95 gig on F drive
    Cache: 6 gig on F drive
    NVIDIA settings: performance over quality
    My computer:
    HP 8730 elitebook
    4 gig ram
    XP Pro, SP2
    Proc: Core 2 Duo T9400, 2666 MHz (10 x 267)
    DirectX    4.09.00.0904 (DirectX 9.0c)
    Chipset: Cantiga PM45
    Video: NVIDIA Quadro FX 3700M  (1024 MB)
    (2x) 250 gig 7200 rmp HD
    Before anyone says to export to a new catalog and re-import, etc, use a smaller catalog, etc, be advised that I have done all of that. I have imported only 250 images to a new catalog, on a newly installed OS, with Lightroom as the ONLY application. Still it acts this sluggish.
    I have scoured the boards for solutions, and having tried all the varied fixes to no avail, I really quite strongly feel that a person should not EVER be in the position or running some of the most powerful available hardware and STILL have to wait interminable seconds for Lightroom to respond.
    This software, as it stands now on the PC platform (unless I am missing something quite obvous) is absolutely unusable in its present state.
    Can someone from Adobe or a board guru please respond in kind to my request for help?

    Photo_op8 wrote:
    BradKaye wrote:
    I'd have to agree with the subject of this 100%, even though I'm not experiencing anywhere near the levels of lag ellsworth is on any of my primary workhorses.
    1st-Gen 17" MacBook Pro 2.4Ghz Intel Core 2 Duo with Hi-Rez Screen (about 2 years old)
    1st-Gen MacPro (Dual Twin-Core 3Ghz, 3x, 10k-RPM 150GB Raptor RAID-0, partitioned to System/Scratch/Files (in that order) 16GB RAM...blah blah (about 2.2 years old)
    3 week old MacPro  2x2.66 Quad-Core MacPro, 16GB RAM, Multiple Partitioned (System/Scratch/Files)  Internal 4x-1.5TB RAID-0, 4x 1.5TB eSATA RAID-0, 2x NVIDIA GT 120's, 30" NEC 3090WQXi, 26" LaCie 526, 24" Apple LED Display
    OS 10.5.8 on all machines.
    Let me repeat-
    Partitioning ONE drive to contain system files, application, cache, catalog and photos=SLOW.
    It really doesn't matter that the drive is 7200 or 10k rpm if ALL items reside on the same drive. The MacPro has four bays. One drive for system and catalog, second for cache, third for photos=FAST.
    Wow, I'm glad you repeated that, and used capitalized text so that I would be sure to understand.
    Clearly, the benchmarks I have off of the various evolutions of my last 3, $10k computers must be in error. (single system disk, RAID-0 system disk, 10k RPM system disk, RAID-0 3x -10K rpm system disks, multiple scratch volumes on different drives, singular scratch volumes on RAIDed drives, tested via benchmark programs and application specific batch tests, etc.etc.)
    More importantly as an issue of forum protocol, you didn't actually read my post.
    Brad Kaye wrote:
    I partition about 10% of the outside of a drive as separate and put the information I need to get to most quickly which tends to be the system folder then scratch disk in a another separate partition and then I leave the rest on that drive as gobs of 'B' space for media and other crap files, reserving the first 10%-30% of the outside of a different drive (or RAID-0 sets) for my files and Lightroom catalogs.
    I'm throwing 370 mb/sec between two individual sets of 4 drive RAID-0 sets.  Single 7200rpm drives sling about 80 mb/sec.  My drive arrangement isn't the reason Lightroom IS TOO SLOW TO USE AS A PROFESSIONAL PRODUCT.
    Also, since I referenced and linked the former software engineer turned photo FREAK in my post, whose blog I started reading last year corroborating the decisions I've made in my previous system setups with immaculate documentation and testing procedure your response even more seems like the entire reason I rarely bother posting in community forums.  You seem to be here to spout, not to contribute and learn.
    Take a look at all of the info contained here: (I've already read it, all of it, and more)
    Diglloyd Mac Performance Guide
    and if you still think I'm wrong, lets have an informed debate about it.  Really.
    Otherwise, lets please keep this topic moving forward with the issues Adobe needs to address next to make Lightroom a better product for professional photographers, and specifically, help out ellsworth999 who started this topic, who seems to have a big helping of problems on his plate. I can't speak to him directly of his problems since I'm not using the Windows version of the software.

Maybe you are looking for

  • How to delete the double records connected to one or more than one tables in SQL 2008?

    Hi Can anyone please help me with the SQL query. I Im having a table called People with columns names: personno., lastname, firstname and so on. The personno. is having duplicate records,so all the duplicate records i have written with "double" in th

  • S.M.A.R.T for SB600 raid on K9A Plat?

    Is it possible to interrogate discs in a RAID set via S.M.A.R.T using the MSI K9A? Prior to creating a RAID set, it was possible to determine the temperature of the individual discs, but it looks like this is not possible once they have been put in a

  • Error while determining logical Port

    Hi This is a ECC to SRM scenario: I get this error in the Call Adapter step. I am using WS Adapter at the receiving side. "Error while determining logical port Cannot find logical port for agreement abc and interface xyz" Why do I get that error and

  • Multiple selection in the ALV is not possible after system upgrade

    Hi Colleague, I had been using an ALV, which was performing as desired before, but recently we had a system upgrade to NW7.0 and after that in this ALV multiple selection of records/rows is not allowed. The colleagues who upgraded the system suggeste

  • Macbook Air 2013 256ssd , sandisk or samsung?

    Hello , I just wonder which ssd I have in my Macbook , It says : APPLE SSD SD0256F Is it sandisk or samsung?