Inexplicable delay using EtherCAT

Hello

I use a computer configured as a LabVIEW Real-time target. The PC is connected to a Beckhoff EK1100 (with an EL1002 and an EL2004) via EtherCAT. For testing purposes, I have connected one of the EL2004 to a the EL1002 DI. Through the profile of Stimulus Editor, I have change the 0 to 1 c and connect the time needed until the target real-time indicates the change in the DI. I tried to adjust the rate of the primary control loop and the loop of 500 Hz, 1000 Hz and 2 000 Hz data acquisition (between 0.5 and 2 ms cycle time). The County of HP and LP counter remain to 0 all the time. Thus, there should not be problems of performance, right?.

However, the time to trigger the change up to detect the change of DI is always between 12 and 20 Ms. the strange thing is that the interval is constant as long as the target in real time is under tension. After turning the PC and the new changes in the meantime.

In addition, I don't understand why the time between the trigger and the detection is too long. About the IO-material the interval should be about 3 ms also tried to replace the LV - RT by a Beckhoff (as master EtherCAT) plc and as expected the interval was about 3 ms now I wonder what the problem could use the LV - RT EtherCAT master. Maybe it's the custom device that is required to use the EK1100? I thought that the execution of a custom device (implemented as "Inline HW Interface") takes a cycle. Am I wrong?

Or is the LV - RT too slow EtherCAT driver? Or would it be the NIC of the target in real time? Anyone an idea what could cause the slow time interval and why the interval changes after turning the RT still works?

Kind regards

TTRD

Probably because the timed loop NIVS and your LV to test are not synchronized to the engine (ethercat) analysis.

first change your LV test and try that... If it works then go steal the implementation 'sync veristand engine analysis' from the scan engine and peripheral ethercat customized for your own custom device.

Tags: NI Products

Similar Questions

  • Inexplicable delay between the evolution of the tab control pages

    Hello dear OR Forum.

    I have a strange problem.

    In my program, I use a tab control.

    On a change in the pages of pc immediately once the user clicks on the other page, but on another pc it is delayed (approx. 1 second) until the new page is displayed. The rest of the program works with the same "speed".

    You have an idea why this happens?

    The main program includes a while loop with a delay of 25ms. In the loop, there is a case structure, cases are different pages of the tab control.

    (it's the same exe file)

    Thank you.

    Alex

    Tabs changing pages require a screen refresh if at least the graphics adapters could make all the difference.

    More memory in the faster machine...

    The slow mahcine there a virus check or other processes that use CPU?

    Ben

  • NEITHER 9870 on 9144 using EtherCAT: unsupported?

    Hello

    I have a Setup very similar to that illustrated in this post. That is to say:

    . A CompactRIO 9025 (instead of the target of industrial controller)

    . A chassis 9144 connected for CompactRIO with EtherCAT

    . A NI 9870 plugged on the 9144

    The post linked above seems to imply that this setting could work. However, when I add the C Series modules to the 9144 I get an error message saying something like "the 9870 is not supported by this version of the industrial communications for EtherCAT driver.

    . I use version 2.5 of the EtherCAT driver that seems to be the latest version.

    . Other modules are recognized correctly, some of them with a warning in case I want to use the SCAN mode (but I didn't). A NI 9213, for example.

    . Two modules from a 3 rd-party seller where it is.

    . Move the NI 9870 for CompactRIO itself is not an option, it is full as an egg.

    Any suggestion is welcome.

    DLB


  • Create an event of reconciliation delayed using API

    Hello

    The future was created in the test of IOM recon using the API?

    You must just supplement the later date:

    >
    long createReconciliationEvent (java.util.Map poData, pbFinishEvent boolean, psObjectName java.lang.String, java.sql.Date futureDate) throws Thor.API.Exceptions.tcAPIException, Thor.API.Exceptions.tcObjectNotFoundException, tcAPIException

    Creates a future event to day of atonement for the object specified in the future.
    >

    -Kevin

  • applying the delay in the formula node in labview

    Hi all

    If you have not yet done so, please go through the tutorials free online on LabVIEW.

    Rarely is the node form the best way to write code in LV native LV constructions can be a little awkward at first for someone with programming experience text.  Once you learn how to use the stream and recognize functions by their icons, you can see that the graphical programming can be powerful and easy to read.

    For delays using the function Wait (ms) in the palette of Timing.  If you need a delay in the middle of a calculation (which seems unlikely), you may need to separate the calculation into two parts and put forward (ms) between the parties.  See the image below for a way to do this without no nodes formulas.

    Lynn

  • Client with JavaScript listener, surrounded by a button have a delay

    Hello.

    I have a fragment page (jsff) with a resulting keypad buttons surrounded by a client listener that calls a java script function; whenever I click on a number it refresh a text with the concatenated value input. I've implemented with JavaScript. Why with JavaScript? Because of the delay using partial triggers showing the value in the input text.

    When I test it on the server, it works fine. I click on each button and have a little late, but it works for the needs to develop.

    Now, when I insert this fragment inside an another jsff which include several elements, the result is not the same. I click every button and the value is displayed in the text of entry very fast, but the I clicked on the button takes between one and two seconds to recharge for summer clicked again. I don't understand what is happening.

    Could someone help me?


    Thank you very much.

    Probably you always spread the event on the server. You can easily check this with a browser like Firefox/Firebug plugin, sent to see if there is no request for the server.

    Normally, you will need to explicitly cancel the event to propagate to the server. For example, if you have a clientListener on a button, you do something like below:

    function showPopupFromAction(actionEvent)
    {
      actionEvent.cancel();
    //your logic here

    }

  • Noting extreme delay after LR CC 6.01 update

    I don't know if it is directly related to the 6.01 update, but now I feel an extreme delay using the Brush tool.
    Used this brush of million times, some lag issues (SHIFT - N) has lifted opened its doors on the second monitor.
    Now, the offset is very obvious. Sometimes take 5 seconds to see the changes that I have painted. If I have several brushes, sometimes the pen rest down (from cache memory) while jumping from a different starting point of brush, placing a stroke unwanted between the end and a new starting point.
    The lag is compounded if I the second monitor in use (SHIFT - N)


    LR CC restarting does not solve the problem. Restart the PC, solves it for a short period.

    Windows 7 64. 16 GB LR CC 6.01

    Try a test.

    Reach:

    Edit > preferences > Performance

    Disable the GPU acceleration.

    For Windows, you should go to the website of the manufacturer of your graphics processor and check the driver updates. Once updated you can try turning on GPU acceleration, otherwise leave this option disabled.

    https://helpx.Adobe.com/Lightroom/KB/Lightroom-GPU-FAQ.html

  • calculation of execution time


    I'm testing the run time on a sub - VI before I apply a larger design in an another VI.  He's testing the difference of time between using a mathscript node and mathematical functions from labviews.  However, I am not able to get any kind of delay using the tick count function.

    Attached is my code, I'm using labview 8.2

    LV 8.2

  • I can connect an NI MXI-Express RIO 9154 off the cRIO-9068 serial?

    I would use the cRIO-9068 a new system but will need a second wreath off the first chassis. Can I use NI MXI-Express RIO 9154? If so, how to connect the MXI cable until the 9068?

    Not the MXI Express, but you can use EtherCAT: chassis NI 9144 8 locations EtherCAT Slave for C series i/o Modules

  • Unable to modify the property in the property node

    Hello

    I am configuring a DAQmx routine where I record multiple analog channels. I am able to create the routine, but I read that there are some problems with multi-channel sampling (ghosting), so I wanted to avoid this.

    How to eliminate ghosting of my measurements? :

    http://digital.NI.com/public.nsf/WebSearch/73CB0FB296814E2286256FFD00028DDF?OpenDocument

    Furthermore, who directs you;

    How can I increase without delay using NOR-DAQmx or NOR-DAQ traditional (old)?

    http://digital.NI.com/public.nsf/WebSearch/65E7445DB1AA5DC586256A410058697B?OpenDocument

    However, when I try to use a property DAQmx Timing node, I am not able to change the property (see screenshot). I tried right click and left click and clicking on everywhere. I think that there is something I could not understand, but pointers would help a lot! Chaning between read/write does not help

    Never mind! Found the solution in the knowledge base

  • How to return on a Subvi in a calling VI and does not stop the calling function

    I am writing a program which consists of a call VI and one under VI. I want to call function to run continuously and be able to trigger the sub VI (via activation of the voice). I want the sub VI to expire automatically after 10 seconds and return to the calling VI (master), which will continue until the sub VI is still called.

    I found a way to expire the sub VI using the 'stop' command, but he left the appellant VI also, which does not. I know there is no 'back' or 'soft stop' in LabVIEW, but someone he knows a way to do this?

    What you really need in your Subvi is something like what is shown below. You specify the delay using the delay function or get Date/Time In Seconds msec. would work in the same way.

  • What is the limitation of the number of replicas that need a provider?

    Hello

    What is the maximum number of replication agreements that we can configure a provider Multi master topology?

    Thank you.

    Bhadra,

    The number of replicas by impact shows/latency of the replication hub.

    In your case, each replica is probably related to both poles (to avoid the single point of failure), so each concentrator must manage 20 replicas. It is quite

    an important number and can introduce delays into reruns of Scripture. You can monitor replication delays using insync - 11 g Release 1 (11.1.1.7.0)

    If possible, it would be better to add more 2 hubs and connect each replica to 2 hubs, so that each hub has only 10 lines to manage.

    -Sylvain

    ------

    When closing a thread as answered don't forget to mark the messages correct and useful to make it easier for others to find their

  • sound help AS3

    Hey people,

    I'm a guy more old as2, switch to full as3. Now, I want to do everything I can in as3. My final hurdle is healthy. I can get sound to play, but I can't add a delay to the sound. So, when I picked up the item to drag, it lifts and I delay using a Tween Oregon to make it appear more life like. I would like to delay the sound piece for the duration of the item down. I have attached the section of the code. Any ideas would be great. I know that I could add sound space for the mp3 itself but as part of my project that would be crazy.

    var I: Object;

    function grabMe(e:MouseEvent):void {}

    = me e.currentTarget;

    me.removeEventListener (MouseEvent.MOUSE_DOWN, grabMe);

    me.startDrag ();

    e.target.parent.addChild (e.target)

    var tweeny:Tween = new Tween (me, "y", Regular.easeIn, me.y, me there - 75,.04, true);

    var scaley: Tween = new Tween (me, "scaleY", Regular.easeIn, me.scaleY, 1.3,.09, true);

    var scalex:Tween = new Tween (me, "scaleX", Regular.easeIn, me.scaleX, 1.3,.09, true);

    var my_shadow:DropShadowFilter = new DropShadowFilter();

    my_shadow.color = 0x000000;

    my_shadow.blurY = 3;

    my_shadow.blurX = 3;

    my_shadow.angle = 90;

    my_shadow.alpha =. 2;

    my_shadow.quality = 15;

    my_shadow.distance = 75;

    var filtersArray:Array = new Array (my_shadow);

    me.filters = filtersArray;

    stage.addEventListener (MouseEvent.MOUSE_MOVE, Drachma);

    stage.addEventListener (MouseEvent.MOUSE_UP, dropMe);

    }

    function dropMe(e:MouseEvent):void {}

    stage.removeEventListener (MouseEvent.MOUSE_UP, dropMe);

    stage.removeEventListener (MouseEvent.MOUSE_MOVE, Drachma);

    me.stopDrag ();

    me .filters = undefined;

    var tweenydown:Tween = new Tween (me, "y", Regular.easeIn, me.y, me there + 90,.4, true);

    var scaley: Tween = new Tween (me, "scaleY", Regular.easeOut, me.scaleY, 1,.9, true);

    var scalex:Tween = new Tween (me, "scaleX", Regular.easeOut, me.scaleX, 1,.9, true);

    me.addEventListener (MouseEvent.MOUSE_DOWN, grabMe);

    my_channel = my_sound.play)

    }

    function dragMe(e:MouseEvent):void {}

    e.updateAfterEvent ();

    Using TweenLite or Max, you just make your tween and add an onComplete parameter as follows:

    TweenMax.to (me, 2, {onComplete, scaleX:2:playSound});})

    This will tween me is scaleX for more than 2 seconds and call the playSound function when it ends...

  • Inserting a pause at the end of a loop in a clip from the film.

    Hello

    I just scanned in 16 images of old 16 mm film and created a small .swf, by default clip as the clip in loop.

    I want it to loop, but all I want to do is place a pause of 5 seconds at the end of the short clip 1 second before it starts up again.  How would I do that?  Or y at - it a simple tutorial on that?

    I use CS4 Flash Professional.

    Thank you.

    Put in a stop() command in the last image and use the setTimeout() function in order to delay using the play() command.

  • receiving data from php

    Hey, so moving along well, just a bit stuck.  So, my first flash Web page sends the data to a php script.  I then

    var result_data:String = String(contactLoader.data);
         if (result_data == "ok")
         {
              navigateToURL(strURL, "_self");
         }
    

    So, if the data is sent without any problems, it will load up my new url.  Problem is this new url needs these data to display.  So if my php file contains variable data, how can my new url retrieve them in real time? (which means that the data are intended directly from swf to php to the new swf format)  I tried LoadVars, but do not know if it will work in real time, maybe it will be.

    Any advise appreciated.

    see you soon

    using the associative array $_SESSION is chosen on the deprecated $HTTP_SESSION_VARS.

    retrieve you the data using the same associative array.

    the only delay using a text file would be internet latency to download the text file.

Maybe you are looking for

  • How can you change your homepage, when Firefox start / tried to set internet options

    Hi, I wanted to change my home page on Mozilla,Success through community. !!!

  • Halo 2 wont install on Vista

    I bought a copy of Halo 2 and I tried to install it on Vista 64, but I get a message saying: redists\vcredist.msi:This installation package could not be opened. Contact the application vendor to verify that this is a valid Windows Installer package.

  • Need a recovery code

    My computer would restart. They say its due to a damaged Windows file. I am trying to use the recovery mode, but do not know what code to enter. Can anyone help?

  • PSC 2210 remove and check cartridge

    I bought this printer on eBay and when it arrived I installed the cartridges and received this message "remove and check cartridge". I removed and cleaned the cartridges as specified on the HP website. I also installed well known cartridges of an ano

  • BlackBerry Smartphones Flashplayer will not update

    Hello I have a 9860 and he'll write update of the flashplayer needed to view you Tube videos. Any ideas of what I should do to remedy this would be welcome. Concerning Spragz