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.

Similar Messages

  • Time of reading encoder position

    Hello,
    I want to ask you people where can i learn function execution times of NI 7358 board? I'm developing driver for this card on QNX 6.5. When i send read encoder position package to 7358, the first data comes to RDB register after around 10 ms for first time. Is it normal? Is there any documentation file that includes all function execution times (average)?
    Best regards.

    Hi erhan,
    I'm not too surprised that once the motion has started, the "Read Axis Status" function takes more time. The card should devote more resources towards managing the movement. That being said, the timing help document is only in reference to the individual function calls and as you stated the Read Axis Status alone has no latency. 
    Unfortunately, besides this timing help document, there isn't other documentation that is released that discusses the execution timing. If this is a bigger concern, I would try benchmarking the process on multiple computers.
    Paul M
    National Instruments | Applications Engineer | www.ni.com/support

  • Read Encoder Position Error -70012

    I am using the "Read Encoder Position" and I keep getting error #-70012.  There are no errors up to this point and it does not SEEM to affect the way my program runs.  Does anyone know what this error is? 
    I did try to look up the error # to no avail.
    Thanks.

    Have you seen this?

  • Multiline string color property is too slow, why is console so much quicker?

    I have a *vi that I am trying to use to format a multi-line string indicator with colors.  The idea is that the data represents network traffic and must be formatted as shown in columns.  I realize that there is an upper limit on the horizontal size of the string control of around 2000 characters.  The standard console can be 9999 character wide.  Second issue is that when I use a property node the iterations take forever to process since I am not able to concurrently apply the formatting to the string as I right them to the string window.  I realize that I am using white space as filler and that this is causing a delay but in general this is taking way too long to format.  Is there anyway to speed this up and go more than 2000 characters wide?  If not is there a simple way to invoke the windows console in Labview and use the format parameter show in the attached *.cpp file?
    I have attached the vi along with a sample Dev C++ project showing how fast the console is in comparison when apply colors to large amounts of text data. 
    Solved!
    Go to Solution.
    Attachments:
    main3.cpp ‏1 KB
    Trial_071030.vi ‏236 KB

    Ouch! This looks like a literal translation of text code whcih is not al all optimized for dataflow. All these local variables cause extra data copies. Your code constantly needs to switch to the UI thread.
    Two ideas:
    Defer panel updates while doing all the coloring.
    Use shift registers instead of local variables.
    Why is your 3D picture set to scale with the panel? How big is your monitor?
    Message Edited by altenbach on 10-30-2007 08:23 AM
    LabVIEW Champion . Do more with less code and in less time .

  • 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

  • Download of Mountain Lion too slow - why?

    I have just bought Mountain Lion from the App Store and for some reason it is taking a very long time to download to my Macbook Pro 10.6.8. It has been more than an hour an it is still at less than approx 1/4 of the way! How long does it usually take? my internet connection is fast and working just fine.
    I need to leave to work in a couple of hours max and take my computer with me and i am afraid it will not be finished by then and I'll have to interrupt the download, is this possible? can I re-start it when i get to work and have an internet connection?
    Pls help!!!!

    Thanks mackack,
    My hard drive crashed on me and I got APPLE to replace it (2T) . I decided since Mountain Lion was available, why not? I moved from Snow Lep.  My IMAC is mid 2010. Reinstalling my programs has been a chore but the only real problem so far is missing serial numbers for my roxio toast pro add ons. Where did I put those??? Anyway, I am just noticing as are others in my family, that this is really slowed things down a lot. And there is the nusence of having to put in passwords and permission requests because half the world is blocked by Mountain Lion for some reason. Hopefully apple works to make this better instead of me having to junk it to go back to snow lep.
    I've been struggling for a year trying to appreciate my imac more than my PC. and so far, I keep turning to my PC in crunch time. I do a lot of music production and I was expecting more. I have apple logic, but find adobe audition 1.5 more functional on my old PC.... go figure.

  • The write operation is too slow, why?

    Hi,all
    I have two DS, the version is 5.2_patch_6, and I have enabled the MMR. I find one of the two DS is response slow when I do write operations, as follows:
    [05/Mar/2009:11:38:57 +0800] conn=38445 op=24167 msgId=707927 - MOD dn="uid=shzadmin,ou=People,o=xxxxx" authzid="dn:uid=amAdm
    in,ou=People,o=xxxxx"
    [05/Mar/2009:11:39:35 +0800] conn=38445 op=24167 msgId=707927 - RESULT err=0 tag=103 nentries=0 etime=38 csn=49af4f38000000010000
    [05/Mar/2009:14:01:59 +0800] conn=38445 op=24393 msgId=710798 - ADD dn="uid=lhttestadmin,ou=People,o=xxxxx" authzid="dn:uid=amAdmin,ou=People,o=xxxxx"
    [05/Mar/2009:14:02:37 +0800] conn=38445 op=24393 msgId=710798 - RESULT err=0 tag=105 nentries=0 etime=38 csn=49af70be000000010000
    [05/Mar/2009:14:09:24 +0800] conn=38445 op=24471 msgId=711018 - DEL dn="uid=lhttestadmin,ou=People,o=xxxxx" authzid="dn:uid=amAdmin,ou=People,o=xxxxx"
    [05/Mar/2009:14:09:36 +0800] conn=38445 op=24471 msgId=711018 - RESULT err=0 tag=107 nentries=0 etime=12 csn=49af727b000000010000
    I don't know why. And more, I find the slow DS's error log have warning log as follows:
    [26/Feb/2009:18:08:35 +0800] - WARNING<10307> - Replication - conn=-1 op=-1 msgId=-1 - Configuration warning Tombstone purging int
    ernal search is unindexed in replica o=xxxxx
    Does the warning result the slow? Anybody can help?
    Thanks in advance!
    Shen
    Edited by: shenhongzhou on Mar 5, 2009 12:09 AM

    [26/Feb/2009:18:08:35 +0800] - WARNING<10307> - Replication - conn=-1 op=-1 msgId=-1 - Configuration warning Tombstone purging internal search is unindexed in replica o=xxxxx
    This is a known problem (bug 6175472) and the fix is already available in 5.2p6. Look for the script called <serverroot>/bin/slapd/admin/bin/ActivateFix6175472. Run it as:
    # <server root>/bin/slapd/admin/bin/ActivateFix6175472 <server-root>/slapd-whatever
    This will shutdown the instance, modify dse.ldif, define and create a vlv index (for the tombstone entries) and start the instance back up. Beware that if any of your entries have the objectclass definition in mixed case (objectClass etc), the script might not work as expected.
    Easiest way to check is:
    # cd <server-root>/slapd-whatever/config
    # grep -i objectclass dse.ldif | grep -v objectclass
    If nothing is returned, then you're all set to run the script. If not, you'll have to contact Sun Support (quoting bug 6692944) for a fix to the script that handles entries in a case insensitive manner.

  • JarURLConnection too slow, why?

    Hi,
    I'm trying to get some data from a zip file on a local web server. So
    i'm using a JarURLConnection object to access to it, however this
    objects takes alot to get the file, why?
    My code is like this:
    import java.net.*;
    import java.io.*;
    import java.util.*;
    import java.util.jar.*;
    import java.util.zip.*;
    public class Download
         public static void main(String[] args) throws Exception
    // Create a URL that refers to a jar file on the net
         // zip file size is 11Mb
    URL url = new URL("jar:http://megavit:8080/restaurants.zip!/");
    // Get the jar file
    JarURLConnection conn = (JarURLConnection)url.openConnection();
         // using a common browser it takes a few seconds to download,
         // however with jrockit it takes several minutes
         // using SUN's jdk it takes a few seconds too...
    JarFile jarfile = conn.getJarFile();
    Enumeration e = jarfile.entries();
    while(e.hasMoreElements())
         ZipEntry ze = (ZipEntry) e.nextElement();
         if(ze.isDirectory())
              System.out.println(ze.getName());
    Any help would be appreciated,
    Thanks.
    Paulo

    Cecilia Borg wrote:
    Paulo,
    Could you describe more about the circumstances around your test? I have set
    up the test with a 25MB jar file and cannot see a difference between JRockit
    and Hotspot. Which JRockit version do you use and are us specifying any
    additional options to the jvm?
    Kind regards, Cecilia Borg
    BEA WebLogic JRockit
    My test is download a local file from localhost's webserver (win32
    apache2 on por 8080). I used a network sniffer and i can see the 3-way
    handshake from both sockets (java's and apache) and large delay (about 5
    minutes) and then the transfer starts and is quite fast.
    The problem is that it takes 5 minutes doing nothing... quite weird...
    Paulo.

  • AWM 11g too slow, why?

    Hello,
    I installed the Oracle client on a client machine (Windows). I work on AWM11g with the patch ID # 6368282.
    On the server side (linux), there is Oracle Database 11g Enterprise Edition with the patch ID # 6459753.
    In my OLTP system I created, to test, 2 tables (radar and city) and a table in the middle with each of these 90 recordings.
    My problem is:
    When I created my dimension, mapping, etc.. and that I update my cube that it take within a few seconds but when I want to see the cube, AWM is blocked for several hours and on the server side it work very hard.
    I do not understand why it take so long with so few records.
    Someone can explain it to me?
    Thanks in advance

    There is not enough information here to determine what is happening. I am not sure what you mean when you state
    "I update my cube that it take within a few seconds but when I want to see the cube, AWM is blocked"
    If you run the load from AWM, once the cube has updated and completed, a window will pop-up showing the log for the data load. If this window does not appear then the load is still running. If you submit the job to the job queue, you will need to exit from AWM to allow the job to complete. If you remain attached to the AW this will block the job from running since AWM attaches the AW in read-write mode but the refresh job needs read-write exclusive access.
    The other option is your dimensions have circular references within the parentage and the aggregations within your dimensions are looping endlessly. Did you assign surrogate key usage to your dimension members?
    Keith Laker
    Oracle Data Warehouse Product Management
    OLAP Blog: http://oracleOLAP.blogspot.com/
    OLAP Wiki: http://wiki.oracle.com/page/Oracle+OLAP+Option
    DM Blog: http://oracledmt.blogspot.com/
    OWB Blog : http://blogs.oracle.com/warehousebuilder/
    OWB Wiki : http://wiki.oracle.com/page/Oracle+Warehouse+Builder
    DW on OTN : http://www.oracle.com/technology/products/bi/db/11g/index.html

  • Hard drive read write speeds are too slow

    I was having an issue with 17inch macbook pro. was getting 4.0mb/s read write speed tops. and smart status failure.
    So i replaced the drive. The new drive is a 7200 RPM 500GB WD drive. I'm getting 12.0mb/s on top speed. Computer feels a little quicker but still slow overall.
    I ran this test on a fresh install of snow leopard.
    Is it just me or do those read/write speeds on the new drive still seem slow?
    2007 17inch macbook pro with 2gigs of ram.

    That does seem slow - on the other hand, what are you using to measure it?
    My 1Tb 2.5" SATA drive performance shows as follows: http://grab.by/7zau
    Xbench Stats: http://grab.by/7zau
    Anything in System Profiler? http://grab.by/7zaR
    Link Speed at 3 Gb?

  • Download file from portal is too slow,why?

    Hi all:
    I created a hyperlink to download file on the portal and the file is in the portal. The file is dowloaded slowly by 1K~2K, but I used FTP to dowload the file by 300K ,Why? how to solve it?
    please help!!!! THANKS!!!!

    Hi Namrata,
    You need to define the table field type as binary and develop and RFC with one i/p parameter of binary type.
    UPload:
    From front end you can browse and upload the file using file upload ui element then send the binary file to the RFC input.
    Download:
    Get the binary format file from rfc by passing ID as parameter and download it using IWDCachedWebResource.
    Regards
    Deepak

  • Socket read write on Solaris 8 too slow.

    Hi
    We have an application which consists of several server instances.
    The front-end is web-based , using JSP/Servlets. We are using Tomcat 4.0.
    The servlet makes several connections to the underlying servers. But the read/write operation is too slow. Same setup runs much quicker on Windows.
    We are running jdk1.4.1_02 (stable ?). Would much appreciate any help.
    cheers
    Projyal

    tomcat version --3.2.3
    j2sdk version----1.4
    plarform---------solaris
    solaris version--8
    using the aboue configuration i need to deploy JSP codes on the solaris platfrom..can any technical expert guide me on how to do this..would be grateful if anyone could suggest a good site where i can download free tuorials of "JSP" for development in HTML files format or HELP format]
    thank you
    regards
    brijesh

  • Adobe reader too slow and "not responding," why?

    I downloaded adobe reader XI (11.0.10) for my touchscreen laptop with Windows 8.1 but when reading PDFs it's scrolls too slow, gets stuck when highlighting or performing other commands, and then I normally get "not responding."
    It's really slowing down my productivity!
    Would appreciate your help please. Thanks

    Try disabling Protected Mode [Edit | Preferences | Security (Enhanced)].
    If that does not resolve the problem, please tell us your operating system.

  • Why my Mac Pro 2009 became too slow after updated Yosemite?

    Why my Mac Pro 2009 became too slow after updated Yosemite?

    When the slowness is especially bad, note the exact time: hour, minute, second.  
    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad and start typing the name.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen.
    Each message in the log begins with the date and time when it was entered. Scroll back to the time you noted above.
    Select the messages entered from then until the end of the episode, or until they start to repeat, whichever comes first.
    Copy the messages to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of it useless for solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.

  • Why my Mac Pro hard drive noise and too slow?

    Why my Mac Pro hard drive noise and too slow? Totally 8 gb speed system but now very slow . Please give some suggestions

    Another thing you can do in Lion (and ML) is click on the "Info" button in Disk Utility to get the SMART status of the drive.It's more detailed now than it used to be and it might tell you if something is wrong.
    A lot can go wrong with a hard drive which is why I tend to point people to the downloads section of the following web site:
    http://scsc-online.com
    They have a free hard drive troublleshooting download book there. I reccommend people download that before asking questionis because there are tons of problems that can act like hard drive problems when there's nothing wrong with the system at all. For example, how full is the drive? How many applications are running? What's the status of Spotlight indexing? How many apps are you running? How much memory do you have?
    I could probably think up 20 or 30 more if needed.

Maybe you are looking for

  • Updated to Airport Utility 5.3.2 - now can't see my time capsule disk!

    I updated to 5.3.2 of the Airport Utility through software update but, after rebooting both my Mac and Time Capsule, I can now no longer access my Time Capsule's disk. Airport Utility says 'no disks found' A similar thing happened after the update to

  • Acrobat 9 Pro with Windows 8

    I use Acrobat 9 Pro, and I just installed it on a new laptop with the Windows 8 OS.  I'm having 2 problems and hope someone can help:  a)  Acrobat stalls - perhaps 20-30 seconds - when I attempt to open or close a document, then it works fine for a f

  • Problem with search API -- TextSearchConstraint.SOUNDS_LIKE

    Hi All, Im trying to use TextSearchConstraint.SOUNDS_LIKE to find similiar data records in MDM repository. There are 3 records in table "MDM_BUSINESS_PARTNERS", the value of it' "name" field are: "akedemic",  "akedemci",  and "akedemic Inc." respecti

  • SCEP Definition Updates from WSUS

    I am currently using ConfigMgr (SUP) for all update patching including SCEP definitions (the 3 times a day scenario) but I was wondering if I can configure the clients so they just get their SCEP definitions from a stand-alone WSUS yet continue to re

  • Intelligently generate file structure as xml

    So I have about a g'zillion songs on my personal server. (well maybe not a g'zillion, but close) I recently wrote a simple java class to recursively run through and print the filenames under the directory name. What i get is a nice xml document that