Is there a way to determine exactly where a breakpoint occurs?

Hello everyone:  I am having trouble getting my head around this problem I am having, so I'm hoping someone here has run into something like this and has a tip for me.
I have a PXI-7354 that I am using to control a rotary stage which has an 8000 lpr encoder, and a 10:1 reduction gear, so I have 80,000 lpr effectively.
I am using the 7354 to generate a Breakpoint Pulse every 100 encoder counts, so I should be getting 800 pulses per revolution.  (I use the breakpoint pulses to trigger a second device and aPXIe-5122 data acquisition card to synchronize the production and acquisition of a data record.)
However, and here's the problem:
When I rotate 1 revolution, I see 799 pulses
When I rotate 2 revolutions, I see 1598 pulses
When I rotate 3 revolutions, I see 2397 pulses
etc. 
I am losing 1 pulse per revolution. I haven't figured this out yet, as I am using periodic breakpoints with a whole number of breakpoints as a period.
THe problem is that I "count" the number of breakpoint pulses that I get in order to derive the angular position where the breakpoint occurs.  For instance, if I start at 0 degrees, and I have 0.45 degree spacing between breakpoints, after 10 pulses, I should be at 4.05 degrees.  After 100 pulses, I should be at  44.55 degrees.
As I am missing one count per rev, however, my derived angular position is incorrect.
I need a way to determine the actual position of each breakpoint.  The most obvious way to do this is to use the HS capture functionality of the board, and I could (further) share the breakpoint pulse with the HS Capture input on the motion card to do HS capture, but is there any way to do this internally on the 7354?
Thanks for looking at this, any help is appreciated.
Wes
Wes Ramm, Cyth UK
CLD, CPLI
Solved!
Go to Solution.

Thanks for your response, Matt.
I have already got the BP signal going to my external device via a UMI-7774, so this is not a problem.  The tricky part of this question is whether there is an easy way to "share" the BP information with the HS Capture INPUT line so that I can grab a HS position when the BPs are generated, so that I'd have a buffer of ACTUAL position, rather than relying on the BPs being in the correct location (and DERIVING the instantaneous position of the BPs by counting the BPs).  It seems that it is NOT possible to share the signal by routing the BP1 Out simultaneously to the external UMI 7774 pin AND to either the HS Capture INPUT OR to my data acquisition card.  I know that I can route my encoder signal and other things to my DAQ card, but this won't help me in this case.  Furthermore, I can only have 1 BP per axis, so it isn't possible to replicate that functionality on a second BP generator.
I am working on setting up a third device to count the pulses generated by the 7354 when I exercise the stage through motion, so I'll have more data later today.
I'll post here any findings.
Thanks again,
Wes
Wes Ramm, Cyth UK
CLD, CPLI

Similar Messages

  • Is there a way to determine if an application is 32-bit or 64-bit?

    Is there a way to determine if an application is 32-bit or 64-bit? To be more specific, I want to be able to determine if a 32-bit application is being emulated under WOW64. I'm trying to use the Call Library Function and selecting IsWOW64Process from the Kernel32.dll, but I can't seem to get it to work. I think I may be setting it up wrong. I'm using a constructor node and invoke node for Process and after calling GetProcesses in the invoke node I'm sending that into a For Loop to inspect each process seperately. Inside the For Loop is where I'm trying to use the Call Library Function. From what I've read IsWOW64Process has a Handle as an input and a pointer to a boolean as an output. I may be incorrect in this as I've seen multiple varieties of this call on the internet. I've tried setting this up but I can't seem to get it to work. I'm looking for help on how to correctly use the Call Library Function or if anyone knows a better way to do this I'm open to suggestions. Thank you for any help. 
    Solved!
    Go to Solution.

    Hi klynn,
    I've got a link you might want to check out to make sure that your call function is correct.
    http://msdn.microsoft.com/en-us/library/ms684139%28v=vs.85%29.aspx
    I would also recommend that you check out DLL.VI example in example finder.
    Example Finder > Communicating with External Applications > Using External Code> Integrating DLLs > Call DLL.vi
    Hope this helps,
    Josh L.
    Applications Engineer
    National Instruments

  • Is there any way to determine if a link is a book mark or hyperlink in java script

    Is there any way to determine if a link is a book mark or hyperlink in java script
    Sub Problem:
    I am making an array of quads of all the hyperlinks in a document. I would like to automatically skip over all the bookmarks in the starting pages of a document and just get the links of the hyperlinks.
    Now I have to manually set the pages that contain bookmarks so they are not included in the array.
    Is there any way to determine if a link is a book mark or hyperlink in java script?
    It would help automate the conversion I need below
    John
    Main Problem:
    I have been working on converting a set of pdf files with 1000’s of hyperlinks like www.site.com\folder1\file1.pdf#page=10
    To jump to a local copy of the files with a relative type link
    ../folder1/file1.pdf and then go to the proper page.
    I have found that it can be done manually by changing the hyperlink to a javascript
    var otherDoc = app.openDoc('../folder1/file1.pdf', this);otherDoc.pageNum = 10 - 1;
    and setting each destination file with a disclose()=true;
    Based on the help so far that java script cannot access the hyperlink value in a link
    See: http://forums.adobe.com/thread/1039908?tstart=60
    I have resorted to the following plan using acrobat javascript, an external keyboard macro recorder and excel in combination to get around the problem
    Four folder level acrobat javascripts with “buttons”
    One to get all the link quads in an array, in the pdf and report the total number
    The second creates a form field in the far corner of the first page and moves there.
    The third jumps to each link found by creating a form field just to the left of the link and zooms in so it can be selected by a “mouse click” from the keyboard macro recorder 
    The forth deletes the form field
    The keyboard macro recorder runs javascript 2 and then 3 then clicks on the link just to the right of the middle of the screen and uses keys to get to the advanced editing to get to edit the hyperlink .
    The hyperlink is then copied to excel where it is converted using string functions to the needed javascript text to be copied back.
    To the acrobat file into a java script (after deleting the hyperlink)
    Rinse/lather/repeat
    I have been able to convert about 150 links an hour.
    Better then hand typing, but not like having java access to the links.
    I am looking to improve the solution

    thanks for your help.
    I may have been confusing a "acrobat bookmark" and a bookmark in a word file that is converted to a pdf and ends up being a
    link of the type:
    "Go to a page in this document"
    which I do not want in my array vs
    a link of the action type:
    "Open a web link"
    Which I do want
    John
    My code, note how I have to skip pages with "Go to a page in this document" links depending on the document, I would like to use the same code for each document and skip over the "Go to a page in this document" links :
    global.ilinkindex = 1; 
    global.aLinkquads = [ [0, 1, 1, 0, 0],
           [0, 0, 0, 0, 0] ];
    function GetLinkArray()
    global.ilinkindex = 1;
    var iTotalLinks=0;
    // for ( var p = 0; p < this.numPages - 8 ; p++)                   // end before bookmarks for each page of the file x.pdf
    //  for ( var p = 0; p < this.numPages; p++)                     // for each page of the file
    for ( var p = 23; p < this.numPages; p++)                     // start after bookmarks for each page of the file y.pdf
      var cropbox = this.getPageBox("Crop", p);
      var alinksonpage = this.getLinks(p, cropbox);            // get array of links on page
      for ( var ll = 0; ll < alinksonpage.length; ll++)
       var linkquads = alinksonpage[ll].rect;     // get link Quads
       linkquads[4] = p;          // add page number to link Quads array
        global.aLinkquads[global.ilinkindex] = linkquads; // add quads to global link Quads array
        global.ilinkindex++;
    iTotalLinks = global.aLinkquads.length - 1;
    global.ilinkindex = 1;
    app.alert("Number of Links in Document is " + iTotalLinks );

  • Is there a way to determine which rows are inserted in JDT1 table by the system automatically?

    Hi,
    Is there a way to determine which rows are inserted in JDT1 table by the system automatically? Example, many GLs which are mapped in GL Account Determination, like Foreign Exchange Gain / Loss, Rounding Account, etc. are inserted by the system automatically in the Journal Entry on various scenarios, like during Incoming Payment, etc.
    Which SQL query can give me those rows? Basically the WHERE condition should be based on which column or multiple columns in JDT1 table?
    Thanks.

    Hi Rajesh,
    I'm not entirely sure but I think the TransId is the same in the header that belongs to the transaction.
    OINV.TransId = JDT1.TransId
    Best regards,
    Pedro Magueija

  • Is there a way to create forms where certain fields would become required only if there was a certain choice made in a dropdown box in another field?

    Is there a way to create forms where certain fields would become required only if there was a certain choice made in a dropdown box in another field?

    Yes but you will have to create some custom JavaScript to do this.
    Also you should be aware that the "Required" property is only processed when the form is submitted to a scripted web page or "mailto:" process.

  • Is there a way to find out where iMessages are being sent from? I've received messages from an unknown email that are offensive and considered to be harassment.

    Is there a way to find out where iMessages are coming from? I've contacted security personnel at my school and I'm brig harassed. I just want it to stop.

    '''Here is an update to my former response.'''
    Here is a safe way to look at an email which you think is suspicious:
    * right click on the message and select 'Save As'
    * the file name will be the email subject followed by an extension of .eml
    * store it in a folder you can find easily, such as your Documents
    * using your file explorer, right click on the file name and open it with Notepad or a similar text editor (NOT Thunderbird!)
    * even though the format is not easy to read, you should be able to see who sent it to you, and also read the message text.
    Since you are looking at the message in a text editor, there is no chance a link can activate something bad. I have used this method many times, and have found several spoofs of email names of my friends.

  • Is there any way to find out where a standard text is used?

    Is there any way to find out where a standard text is used?
    We can see the text from SO10, but i want to find out where it is used.

    HI
    juct check out this thread
    How to find Standard Text
    a similar query is answered here
    hope this helps
    regards
    Aakash Banga

  • I bought an iphone 5 online, its with o2 but when I went to o2 to get a sim card it did not connect according to the shop assistant, is there any way to determine if its stolen and if so is there anything i can do? HELP

    i bought an iphone 5 online, its with o2 but when I went to o2 to get a sim card it did not connect according to the shop assistant, is there any way to determine if its stolen and if so is there anything i can do? HELP

    it is dinner time but 72oz steak....whew dont know about that!  2 " of snow yesterday 60 degrees today.... gotta love the texas panhandle!

  • (Applescript) Is there any way to determine masters/versions

    Hi All,
    with Applescript,
    Is there any way to determine a 'image version' is masters or versions(generated by adjust/editing) ?

    I need to say this first - you have to really get that you never really see a master in Aperture, everything is a version. Just because it happens to be the first version or have no adjustments doesn't make it some how special. The only special thing about any version is that if it is the last/only version and you get rid of it the master goes away as well (reference counting)
    You should however be able to determine if any particular version happens to have any adjustments or no adjustments, or specific adjustments.
    RB

  • HT201364 Trying to upgrade to OS Maverick. Get message "this computer cannot be upgraded". Checked all tech specs, match requirements. Is there a way to determine what prevents instalation?

    Trying to upgrade to OS X Mavericks. Got message "this computer cannot be upgraded". Checked all tech specs, they match requirements. Is there a way to determine what prevents instalation?

    Check that your computer is compatible with Mountain Lion/Mavericks.
    To check the model number hold down the option/alt key, go to the Apple menu and select System Information.
    iMac (Mid 2007 or newer) model number 7,1 or higher
    MacBook (Late 2008 Aluminum, or Early 2009 or newer) model number 5,1 or higher
    MacBook Pro (Mid/Late 2007 or newer) model number 3,1 or higher
    MacBook Air (Late 2008 or newer) model number 2,1 or higher
    Mac mini (Early 2009 or newer) model number 3,1 or higher
    Mac Pro (Early 2008 or newer) model number 3,1 or higher
    Xserve (Early 2009) model number 3,1 or higher

  • Is ther a way to speed up a Mac? Mine has gotten slower and slower over time.  When memory comes close to full would that have an effect on performance? Is there a way to determine unused programs/software to remove and free space?

    Is there a way to speed up a Mac (similar to de-fragging on a PC)? Mine has gotten slower and slower over time. 
    When memory/disc comes close to full would that have an effect on performance? How should I determine what programs/software to remove and free space?

    Things You Can Do To Resolve Slow Downs
    If your computer seems to be running slower here are some things you can do:
    Start with visits to:     OS X Maintenance - MacAttorney;
                                      The X Lab: The X-FAQs;
                                      The Safe Mac » Mac Performance Guide;
                                      The Safe Mac » The myth of the dirty Mac;
                                      Mac maintenance Quick Assist.
    Boot into Safe Mode then repair your hard drive and permissions:
    Repair the Hard Drive and Permissions Pre-Lion
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    Repair the Hard Drive - Lion/Mountain Lion/Mavericks
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the Utilites Menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD disk icon and click on the arrow button below.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported, then click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu. Select Restart from the Apple menu.
    Restart your computer normally and see if this has helped any. Next do some maintenance:
    For situations Disk Utility cannot handle the best third-party utility is Disk Warrior;  DW only fixes problems with the disk directory, but most disk problems are caused by directory corruption; Disk Warrior 4.x is now Intel Mac compatible.
    Note: Alsoft ships DW on a bootable DVD that will startup Macs running Snow Leopard or earlier. It cannot start Macs that came with Lion or later pre-installed, however, DW will work on those models.
    Suggestions for OS X Maintenance
    OS X performs certain maintenance functions that are scheduled to occur on a daily, weekly, or monthly period. The maintenance scripts run in the early AM only if the computer is turned on 24/7 (no sleep.) If this isn't the case, then an excellent solution is to download and install a shareware utility such as Macaroni, JAW PseudoAnacron, or Anacron that will automate the maintenance activity regardless of whether the computer is turned off or asleep.  Dependence upon third-party utilities to run the periodic maintenance scripts was significantly reduced since Tiger.  These utilities have limited or no functionality with Snow Leopard or later and should not be installed.
    OS X automatically defragments files less than 20 MBs in size, so unless you have a disk full of very large files there's little need for defragmenting the hard drive.
    Helpful Links Regarding Malware Protection
    An excellent link to read is Tom Reed's Mac Malware Guide.
    Also, visit The XLab FAQs and read Detecting and avoiding malware and spyware.
    See these Apple articles:
              Mac OS X Snow Leopard and malware detection
              OS X Lion- Protect your Mac from malware
              OS X Mountain Lion- Protect your Mac from malware
              About file quarantine in OS X
    If you require anti-virus protection I recommend using VirusBarrier Express 1.1.6 or Dr.Web Light both from the App Store. They're both free, and since they're from the App Store, they won't destabilize the system. (Thank you to Thomas Reed for these recommendations.)
    Troubleshooting Applications
    I recommend downloading a utility such as TinkerTool System, OnyX, Mavericks Cache Cleaner, or Cocktail that you can use for removing old log files and archives, clearing caches, etc. Corrupted cache, log, or temporary files can cause application or OS X crashes as well as kernel panics.
    If you have Snow Leopard or Leopard, then for similar repairs install the freeware utility Applejack.  If you cannot start up in OS X, you may be able to start in single-user mode from which you can run Applejack to do a whole set of repair and maintenance routines from the command line.  Note that AppleJack 1.5 is required for Leopard. AppleJack 1.6 is compatible with Snow Leopard. Applejack does not work with Lion and later.
    Basic Backup
    For some people Time Machine will be more than adequate. Time Machine is part of OS X. There are two components:
    1. A Time Machine preferences panel as part of System Preferences;
    2. A Time Machine application located in the Applications folder. It is
        used to manage backups and to restore backups. Time Machine
        requires a backup drive that is at least twice the capacity of the
        drive being backed up.
    Alternatively, get an external drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is not significant):
      1. Carbon Copy Cloner
      2. Get Backup
      3. Deja Vu
      4. SuperDuper!
      5. Synk Pro
      6. Tri-Backup
    Visit The XLab FAQs and read the FAQ on backup and restore.  Also read How to Back Up and Restore Your Files. For help with using Time Machine visit Pondini's Time Machine FAQ for help with all things Time Machine.
    Referenced software can be found at MacUpdate.
    Additional Hints
    Be sure you have an adequate amount of RAM installed for the number of applications you run concurrently. Be sure you leave a minimum of 10% of the hard drive's capacity as free space.
    Add more RAM. If your computer has less than 2 GBs of RAM and you are using OS X Leopard or later, then you can do with more RAM. Snow Leopard and Lion work much better with 4 GBs of RAM than their system minimums. The more concurrent applications you tend to use the more RAM you should have.
    Always maintain at least 15 GBs or 10% of your hard drive's capacity as free space, whichever is greater. OS X is frequently accessing your hard drive, so providing adequate free space will keep things from slowing down.
    Check for applications that may be hogging the CPU:
    Pre-Mavericks
    Open Activity Monitor in the Utilities folder.  Select All Processes from the Processes dropdown menu.  Click twice on the CPU% column header to display in descending order.  If you find a process using a large amount of CPU time (>=70,) then select the process and click on the Quit icon in the toolbar.  Click on the Force Quit button to kill the process.  See if that helps.  Be sure to note the name of the runaway process so you can track down the cause of the problem.
    Mavericks and later
    Open Activity Monitor in the Utilities folder.  Select All Processes from the View menu.  Click on the CPU tab in the toolbar. Click twice on the CPU% column header to display in descending order.  If you find a process using a large amount of CPU time (>=70,) then select the process and click on the Quit icon in the toolbar.  Click on the Force Quit button to kill the process.  See if that helps.  Be sure to note the name of the runaway process so you can track down the cause of the problem.
    Often this problem occurs because of a corrupted cache or preferences file or an attempt to write to a corrupted log file.

  • It's There a way to find out where my new phone is?

    I ordered new phone, is there any way to track where it is? It shouldn't be here for another few days but just  wanted to see what state it is in. Thanks if anyone knows or doesn't.

    You should have a confirmation email or text when the phone ships and should have a tracking number within.

  • Is there a way to get 'exact' pixel placement?

    I use Illustrator CS5 to design websites.
    I have the measurements set to pixels and always have the 'align to pixel grid' box ticked. As dealing with websites I want pixel perfection, however in some instances I get a 'rouge' measurement. When I type a measurement in the 'transform panel' in the X & Y value box -  for instance 100px, I will get 100.143px. I find this incredibly annoying (and not very professional). Is there a way to only have exact whole numbers (without decimals) in the setting? I have checked preferences but have not managed to solve this problem.
    Also for info - when I go into the 'x or y value' box and delete the .143 figure - it just appears again. It's a massive nuiance.
    Any help, guidance or tip would be very welcome!
    Cheers

    Wade_Zimmerman wrote:
    BTW just because ixels are not a unit in Illustrator doesn't mean it could not be in the future.
    I meant in the current version. But given Adobe’s abysmal record at fixing bugs and adding truly useful features to Illustrator, I would apply it to future versions as well.
    I think the tiume has come when Adobe will realize what a good partner Illustrator is with the web and they have no choice since it is also a good partner with video as well both pixel based.
    I fantasize that Adobe will one day realize what a good partner Illustrator is for a dumpster and gives it the same treatment ad PageMaker: dump it in favour of a new and far superior product with a modern architecture and no legacy baggage that’s over 25 years old.

  • TextEvent.LINK - is there a way to determine mouse over?

    I'm using the following code in an app, but what I'd like to know is if there's a way to determine if a user mouses over the link. I would like to display a custom tooltip I've made when the user is mousing over a link, I've been looking for code that will accomplish this, i.e.:
    myText.addEventListener(TextEvent.MOUSE_OVER, doAFunction); - but I'm not able to find anything associated with mousing over a text link, aside from using a stylesheet.
    On the mousing over of a link, I want to determine if the event == httplink, a custom event I've created. If anyone could shed some light on how to accomplish this, I would be much obidged.
    ~Chipleh
    myText.addEventListener(TextEvent.LINK, httpLinkHandler);
    function httpLinkHandler(evt3:TextEvent):void
    var linkStr:String = evt3.text;
    trace("linkStr = " + linkStr);
    var event2:String =  evt3.text.substr(0,8)
    if(event2 == "httplink")
      var str:String = linkStr;
      var linkHandlerArray:Array = str.split("&"); 
      var theLink:String = linkHandlerArray[1]; 
       trace("theLink = " + theLink); 
      var url:URLRequest = new URLRequest(theLink);
      navigateToURL(url, "_blank");

    There is no direct way in AS3. However you can do this: when you roll over the TextField get the character index using getCharIndexAtPoint() method. Once you have that you can use it to examine if the mouse is over the hyperlink. There are several ways to do this but I think the easiest is to check the text formatting using getTextFormat() method - assuming you have specific format for hyperlinks (like different colour or underscore.)
    Kenneth Kawamoto
    http://www.materiaprima.co.uk/

  • Is there any way to find out "Where am I" after a Field has been clicked?

    My question refers to the "Mouse Up" JS which are so frequently associated with a Field.
    I tried this code:
    console.println(this.rect);
    and the output was: "undefined".
    I then tried this:
    console.println(this);
    and the output was: [object Doc]
    so, I guess I am making progress, but I am too high on the object hierachy.
    What I need is the rect or the name, or some way to determine which of the many fields with identical code has been clicked.
    That kind of generalization (same code in many fields) sure saves a lot of time and coding.
    TIA,
    -Ramon

    As noted you can use the 'event' object's 'rect' property to get the quads, corner' points of the field that you clicked on. You can also access other event properites in the same way like 'event.target.name', 'event.targetName', or 'event.type' for example. Using the 'join()' method can provide a clearer listing of the quads for for the event, console.println(event.target.rect.join(", "));'

Maybe you are looking for