Breakpoint of position synchronization

Hello

I run an application where I am synchronization of data acquisition with the engine query step by step using the breakpoint of my motion controller feature.  Ideally, I would like to synchronize the start of data acquisition with a known position of the engine within 1ms.

The way I currently have the updated code in place, my motor and encoder initially begin to zero steps/count indictment, then move in a negative way.  I want to start pretty close to the start of the query the DAQ (the exact time is not serious, but I need to measure accurately the corresponding position); to do this, I put my breakpoint to trigger when the encoder position is-1.  However, looking at the position of the encoder measured (using reading encoder Position.flx), it is clear that the encoder "jumps" from 0 to-10 steps as the engine passes through the first stage.  According to the angular speed of the motor, this takes ~ 5ms.

So I guess my question is, even if the breakpoint is set at-1 he will actually trigger when the encoder reads - 10 since he does not exactly 1?  Or do I somehow interpolate between the measures of 0 and -10 to estimate the moment that the rail - 1 Encoder?

I use a PXI-7354 controller and an acquisition of data PXI-6229 mounted into a chassis SMU-1062 q.  Data acquisition is connected to a module SCXI-1520 strain gauge with a SCXI-1314 mounting block (I don't think that what counts in what concerns the latency relaxation time).  My engines are set to 400 steps/rev and the corresponding encoders are 4000counts/rev; they are connected to the controller of movement through a UMI-7774.

Thank you in advance for your help!

Matt

Greetings, Matt;

I apologize, I did some research but assumed that I must have forgotten to post it.

After discussion with someone in R & D, it seems that the breakpoint is triggered when the encoder transmits the brand-1. Now, if there is a reading when the encoder is in the - 10, he can score in the software that the engine stopped to of-10. However, because the case is done at the hardware level, the pulse will be sent exactly at what time the encoder through this point-1.

Again, I apologize for the delay and wish you a nice day.

Best regards;

Simon P.

Tags: NI Hardware

Similar Questions

  • Slide template image disappears when loading

    I have a responsive project designed in 9 Captivate that works fine in the preview, but encounter problems when publishing.

    The background image (a .png 500Ko) for the breakpoint Office positioned on the master slide on top of two smartshapes does not appear when loading (do smartshapes). I tested with the SCORM cloud and our LMS with the same results, I also tried several browsers and machines with the same results. The image appears when loading on other devices, or if the resizing of the window on a desktop PC.

    The same file is used on all the breakpoints, just resized to fit (100% width, automatic height on all breakpoints). The image file is sized to the same width as the breakpoint Office (1024px), with a height of more than time to account for resizing to other breakpoints. I tried images of different sizes, adding instead as an overview of the project, adding to the first slide and display for the rest of the project... all to nothing done.

    Any help would be great because I'm at the point where I'm completely puzzled...

    OK, it would have been my approach: since they must be on all slides, merge into the background.

  • How to set up breakpoints with a with a PCI-7344 linear position sensor

    Hello

    I'm trying to implement an algorithm of scanning for a piezo Nanonics 3D scene, who should synchronize with a card counting (PCI-6602) using breakpoints on the movement card (PCI-7344). The Nanonics Stadium has two position sensors (just for x - y) gives me a linear voltage variable according to the position. Nanonics connected these sensors for the two first entries analog motion motion card connector.

    Now I intend to use breakpoints to synchronize the digitization step to a card counting (probably using a RTSI cable), but I got the impression that this can be done by using the entries of each individual axis encoders, no do not using the analog inputs. Could someone comment on that? Explanations or advice would be greatly appreciated, thank you very much.

    Kind regards

    DFD

    Hey, DFD,.

    I believe that the answers to your question.

    Kind regards

    A. Zaatari

  • Prevent the synchronization of podcast of position and played state across devices

    We're two people with two iPhones who share an Apple ID. Individually, we listen to some of the same podcasts on every iPhone. The status of "done" and the current position of podcast episodes seem to get Sync between phones at least from time to time. We don't want to happen, because we're going to listen to the podcasts individually. I tried to avoid this:

    1. Settings-> Podcasts-> Podcasts Sync is DISABLED on both phones.
    2. Podcast synchronization turned OFF for phones on iTunes (Windows).

    We do both synchronize with iTunes regularly to update apps, music, etc. One solution is probably to get a second Apple ID, but I prefer not.

    Implement an ID separated from Apple. Really.

  • Why objects appear in different positions when I change breakpoints?

    I have three objects .svg and some text boxes, I put in my biggest resolution breakpoint.

    When I change to the next breakpoint, the objects are near the top of the other, instead of beeing in the same position as the original stopping point.

    Is there a way to avoid this?

    Perhaps my last posting in this thread illuminates a little on this:

    Re: Responsive & supervised all grouped vertically on the other breakpoints? Bug?

    Try the following: create a new sensitive page, place some objects and aferwards create the new breakpoint. Now, you see, that your objects are positioned as expected.

  • Layer will move to the undesirable position when you try to synchronize with audio track (CS6)

    Hello

    I'm trying to animate a cartoon speaking character.

    The character half superior of the head must change its position on the axis Y when the character 'speak '.

    I converted to keyframes waveform and then choose value upper position of the head of the character on both channels Slider whipped (see printscreen) and did not alter the values of any expression

    Now, when I RAMpreview, Chief Executive jumps into the upper left corner of the composition and stays there.

    How to change the expression so that the upper head remains in place and moves along the y-axis?

    audio sync.png

    You can use an expression linear() to translate the positive values of the slider to both positive and negative.

    Or you might simply subtract about half of the value in the expression too.

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

    Hello all: I can't get my head around this problem I have, so I hope that someone here is facing something like this and has a tip for me.

    I have a PXI-7354 I use for the control of gear to a rotating floor that has an encoder of lpr 8000 and a 10:1 reduction, so I 80 000 lpr effectively.

    I use the 7354 to generate a pulse of breakpoint each 100 encoder account, so I should get 800 pulses per revolution.  (I use breakpoint impulses to trigger a second device and aPXIe-5122 acquisition card data to synchronize the production and acquisition of a data record.)

    However, and here is the problem:

    When I turn at 1 lap, I see 799 impulses

    When I turn at 2 laps, I see impulses of 1598

    When I turn to 3 rounds, I see impulses of 2397

    etc.

    I'm losing 1 pulse per turn. I did not understand this yet, because I use the periodic breakpoints with a whole number of breakpoints as a period.

    The problem is that I have to "count" the number of pulses of breakpoint I receive in order to calculate the angular position, where the breakpoint occurs.  By example, 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 impulses, I should be at 44.55 degrees.

    As Miss an indictment by rev, however my derived angular position is incorrect.

    I need a way to determine the actual each breakpoint location.  The most obvious way to do this is to use the functionality of capture of HS of the Board of Directors, and I was able to share (yet) the pulse of breakpoint at the entrance to Capture HS on motion capture HS to map, but is possible to do internally on the 7354?

    Thank you to look at it, any help is appreciated.

    Wes

    The problem is solved, but the solution wasn't crazy direct, so I'll write my lessons leared here:

    Short version:

    I was looking for a way to make a Capture of HS at the same time that the generation of BP.  It is redundant since the ERA really only occur anywhere where tell you them to occur.

    Between the development of the servo-drive and parameters of BP in MAX, we were generating less need BP pulse at the end of the movement.  Once the disk has been defined so that the excess is less than the readjusted BP 'window', the BSP has started to behave perfectly.

    The disc has been adjusted so that it is just this side of "excessive".  I then called the amount of overtaking I see normally, and in the settings 'Compare and beneficiaries' MAX for my 7350, I put breakpoints Position 'Window' to a value that was comfortably longer than this overrun.

    Thus, the lesson learned: make sure that the servo system is set (not only at the output stage), and the configuration of BP is appropriate to your system.

    Moreover, the credit goes to Daniel to NI AE who helped me through this problem.  THANKS DANIEL!

  • laptop do not synchronize with the desktop computer

    set my desktop to 12 + hours of synchronization. an hour ago, tried to sync my laptop to the stored data. some of the Add-ons seem to be transferred but any bookmark or scrapbook. the album, including a few hundred MB of data stored on my hard drive, I download from my office so when syncing to my laptop, download on this hard drive? same question for several thousand bookmarks I have on the desktop.
    the office is Win 7 laptop Win 8.1 (modified to mimic Win 7)
    both machines have the latest version of Firefox & updates.
    any help would be greatly appreciated.

    Cannot add the troubleshooting data, 4 734 too many characters for the position
    If necessary, can post these data in a follow-up

    Your troubleshooting information can be found by clicking on System Details more in the right column.

    I do not Scrapbook. I just installed, saved a "scrap" and do not see a reference in: config for "synchronization" of the data of Scrapbook. I don't think that extension works with synchronization.
    http://www.xuldev.org/Scrapbook/
    Please check the features 3 pages and boards online to see if there is mention of being able to synchronize data of Scrapbook. It is the developer of the extension to add synchronization functionality to their extension.

  • Don't Synchronize bookmarks in Firefox for Android.

    Bookmarks are syncing between my computers, but Firefox Android don't sync after that I have reinstall and start over. A fix for this problem? Thank you.

    Dave

    Thank you for checking, the instructions to get the logs to investigate errors are below:

    • How can I activate synchronization logs:
    1. Talk openly about: config and turn on: services.sync.log.appender.file.logOnSuccess and services.sync.log.logger.engine.bookmarks
    2. Restart Firefox and look: subject: sync-log
    3. Logs and error messages are placed here

    It is possible to copy and paste examples of newspapers in a position or job https://pastebin.mozilla.org thank you.

  • I use Firefox on my Mac (OS 10.9.2). V29 Firefox has encouraged the synchronization. Can I sync with my iPhone and iPad?

    I see conflicting information about Firefox for Mac OS. It works on my Mac OS X desktop.
    What is the official position?
    If Firefox is not available for iPhone and iPad, is such a product in the pipeline?

    Sorry, that Mozilla has no plan for a version of Firefox for iOS devices. Regarding the Firefox sync service, Mozilla has interrupted the application for some time ago iOS devices, but Favorites on the Go app took what Mozilla has created for iOS and synchronization service. Unfortunately, Firefox 29 has a new version of sync that is not backward compatible, so on the go bookmarks must be updated to work with the new version of Sync.

    I think that the major problem between Apple iOS and Mozilla's 'walled garden' approach Apple software running on their devices and approach open source Mozilla to the software.

  • iCloud bookmark synchronization problem...

    My favorite is synchronized between 2 MacBooks and iPhones 2 (of which 1 is used only via wifi)

    Recently bookmarked is not properly synchronized without apparent reason.

    Symptom:

    1 one of form 'bar' favorite items - let's call it "Site X" - changes its position to become the first ⌘ + 1

    2 "site X" can not be deleted or changed in any case.

    3. I tried to remove bookmark.plist in the library folder and then synchronize. The result is that only "Site X" stays on the bookmarks bar.

    4. only after this, you can remove or change "Site X"-, but this dose not sync between devices.

    5 bibliography and other items on the bookmarks folder cannot be added or removed. They do not synchronize either.

    6. all other iCloud products works well. This includes Safari same transfer between devices.

    I don't mind total delete existing bookmarks but want to recover the ability to sync between devices.

    Thanks in advance.

    I have the same problem. I can't organize or remove the bookmark on the MacBook Air 11 (OS X 10.11.3) & 5s (iOS 9.2.1). iPhone On iPhone 4 (iOS 7.1.2) everything works fine. Called support, they said wait should be quickly corrected.

  • Synchronization of analog and digital output with the external sample clock

    Hello

    First of all sorry for my English, I will try to explain what I want to do.

    I want my PCIe-6321 to send two custom signals (modification sawtooths) on a mirror controller. I would also like to generate output with my card at the beginning of each tooth of saw. Everything must be synchronized with an external k-clock signal of 100 kHz. The idea is that whenever the PCI receives a trigger to external clock, it sends two analog output voltages and when he received 1024 clock ticks it will also send a pic of triggering TTL. What I do is first prepare the map and after that in a loop sending and modifing the output values of the two signals and at the same time send a digital signal Boolean in each arch, so when's done it 1024 iterations of the loop I send an event to the digital port. Attached you can see.

    The problem is that I don't know how to synchronize both. Can I use the sample clock just to the analog output? I can use sample for the two outputs clock, or do I need to use the output of the meter? If don't know how to use it here.

    If I do nothing else bad/wrong, I would be grateful for feedback.

    Thanks in advance,
    Pablo

    I don't know how but I find the solution. I'm generating more than a positive value (as I was triggered maybe very fast the oscilloscope has been absent there). If I put the sample clock of digital output to use the sampling/ao/Dev1 clock that it doesn't, but if I put to use the same source as the OD (terminal where my external clock is connected), but the trigger to start the DO to be Dev1/ao/StartTrigger this works. I don't really know why, but it does.

    Thank you for your patience and your help. I put here the final code.

  • Vertical sync to the temporal position of two or more systems 2D axis?

    Tiara in: REVIEWS,.

    Is it possible to vertically sync the time position of two or more cards of 2D axis system placed over the other?

    I have posted several channels on a 2D graph and a channel of particular interest on a separate table above, that was very easy to do. It would really help synchronize time on the two charts position, such as a scrolling graph also scrolls the second table, or zoom graph also zooms in the second picture of the same area, which seems to be a pretty basic thing you want to do, but I have not found a way to do it again.

    Any help is greatly appreciated!

    JohnGrove salvation,

    Actually, yes we CAN do it-if you have DIAdem 2010.  There is an example called "Alignment of the functions in DIAdem VIEW" delivered for the first time with DIAdem 2010.  When you run this example, you will get a new Star ' * ' icon in the top right corner of the Panel VIEW.  Click on the new icon for a collection of functions of alignment axis which I think will make you happy.

    Let us know,

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • Synchronize the tiara with video output. Tiara and c#

    Hello

    I'm a c# programmer and I have a problem I can not find a solution.

    My company built some kind of sync-multi-video-reader.-in other words, he can play a number of videos in a window of synchronously.

    Question No. 1: with the videos, there are data files, that are already in the .tdms format. We need these files to read in DIAdem synchronously with our video player. How can I do?

    question No. 2: I can do it with c#?

    OmerK,

    I think that the best way to do what you ask, it's a script of DIAdem to ensure as reading for the data file and the beginning of an external video player at the same time. There is an object property in DIAdem which returns the starting position for the playback cursor: http://zone.ni.com/reference/en-XX/help/370858K-01/scriptview/properties/view_property_startpos_itoc...

    You can use the IPM Toolbox to create a DLL that interfaces directly with your external video player or calls in a "man in the Middle" C program to manage the communication between the two programs. Here is a link to a help file on the GPI toolkit: http://zone.ni.com/reference/en-XX/help/370858K-01/genshell/genshell/gpi/

    Once the timestamp between the two programs is synchronized, you must start the reading of data files and the video at the same time. From the perspective of tiara, you can use the command of reading of the cursor object: http://zone.ni.com/reference/en-XX/help/370858K-01/scriptview/methods/view_method_play_itocursormast... From the hearing of two at the same time and the same timestamp should cause their playback in sync, assuming that the video data file and read the same speed (read speed of data file can be configured in DIAdem as well).

    Of course, this will not allow you to capture the cursor and slashing through the data file and maintain synchronization. You can use an event in the script of DIAdem to catch the movement of the cursor and update your timestamp on this basis: http://zone.ni.com/reference/en-XX/help/370858K-01/scriptview/properties/view_property_oncursorchang...   However, it will be difficult to synchronize continuously between the programs because of performance problems (communication should occur quickly enough to avoid the jitter between the video file and data).

    The answer here is that it's a command to keep the DIAdem reading synchronized with another application, and while it might be possible to start at the same time, it will be difficult to keep the two synchronized records.

  • Control and Simulation in a loop / while loop with TCP/IP reading / writing of synchronization

    Hello, I have a problem with reading TCP/IP and written in two loops. The problem is NOT to get the two loops to read and write to and from the other. This has been accomplished. My problem is when I run control and the loop simulation on my laptop and the while on a RTOS remote on the controller on-Board of LabVIEW in a remote PXI chassis, the while loop the remote system running on four 4 times faster than the loop control and simulation on my laptop. In other words, for each iteration of the loop control and simulation on my laptop, there are 4 four iterations of the while loop on the remote system. I need to know how to get a degree of kinship (1:1) with these iterations of the loop. When I run a longer simulation in real time, say 10 seconds, the control and Simulation loop begins to slow, i.e. the simulation time slows down until it is no longer in real time and the "Late Finish"? Parameter is set to true and the LED lights and continues to stay lit. At this point, the system destabilizes due to what I believe is being well sampling rate too discreet and I have to end the simulation. How can I get a ratio of one to one between the loops and also to avoid slowing the loops causing destabilization?

    To give an overview of my application, I implement a control system in a network, seen in "image2.png". This is achieved using my laptop as a subsystem 1. Reference signals are generated from the laptop and the error signal is produced. Control measures taken and the control signals are sent via TCP/IP to the remote system. Position feedback is returned, and the process repeats. My system has Core I7 Procs w / 3 GB of RAM, up to 1 GB/s speed via ethernet and LabVIEW 2011 installed with all necessary modules and networking tools. The attached VI Custom_Wireless_Controller works on my laptop. The remote system I'm working on that has the 7830 NI R Series with FPGA card. OTN runs on the PXI chassis with an enbedded controller that has networking capabilities of up to 100 MB/s via ethernet. I use the FPGA for the acquisition of data and apply control signals to my plant. The plant is the PCE twist connected to the FPGA through the cable of the ECP - RIO of NOR. Subsystem 2 is this side of the CNE. The FPGA collects position, he sends to the controller via the network, receives signals from the network drive and writes signals to the plant power amplifier that operates the plant. This process is repeated and the VI and is titled Custom_Wireless_Plant.

    I appreciate the help really and look forward for her and for any question!

    Well, the first step is to understand what you have set up right now. Your control and Simulation loop on the side of the controller is configured as 'Runga Kutta 4' and you have a loop timed on the other side. In addition, you have the primitives of TCP/IP on the control and the Simulation diagram and means he will perform (a message) on the size of each minor step, which in your case is 4.

    So, you have two options:

    1. replace the Solver side controller Runga Kutta 1 (this must synchronize loops)

    2. hold RK 4, but create a Subvi around two primitives of TCP/IP and configure from the VI to run than the major (continuous) step-size. If you do it right, you should see a 'C' on the upper right part of the VI you have created.

    Please let me know if what I said is not clear...

Maybe you are looking for