Stop FPGA execution in Ethercat

Hello
I would like a piece of advice about how I can stop the code execution in FPGA in etherCAT chassis. I work on a piece of code where I start the VI in a RT computer and the FPGA produce PWM puses with a difital module. However, stopping the main VI, the FPGA is still working giving pulses with the NI module. I'm trying to send a stop command from the main VI to the FPGA without success. Is there any specific type of command to communicate with the FPGA in etherCat ?
Note that the initial code is not made by me, so I don't have fully control of it.
Thanks for any help !

Hi TapTap
Do you have both the RT code and FPGA code?
I'm a little unsure from you post if you only have the RT side and can't change anything on the FPGA? 
Normally you could just use a User Defined Variable and hook it up to the FPGA and RT side (remember to compile the FPGA), and remember to initialize it to false at beginning of execution)
Br, 
Anders

Similar Messages

  • How can I stop the execution on a JSP page and start it again

    Hi
    I am making a program that simulates how to manage transactions when accessing a database by using locks. I have run into a problem and I hope someone has the time to help me.
    When a user does an update the transaction commits and releases its locks when the program executes
    <%stmt.executeUpdate("commit!"); %>
    I need to put a break in to stop the program executing this statement, to illustrate the lock is set correctly.
    I have tried to put in an alert box but this does not prevent the rest of the java code being executed.
    I have tried to use prompt boxes, JavaScript functions, but these functions cannot have any java code in them.
    I have tried using the java.swing JOptionPane boxes but this didn?t work either
    I have tried to get input from the user but I don?t know how to retrieve this data on the same page. (As far as I know you have to use submit and even refresh the page or retrieve it on the next page).
    Does anyone know how I can stop the execution on a JSP page and start it again (on same page)
    Mette

    I already have another client (Tomcat jsp application) running and it throws a SQLException correctly when I don�t put in a commit=true statement and don't close the database connection.
    But the problem is how to get the code above to stop to illustrate I have set this lock.
    I have tried to use the JOptionPane but because my program is running in a web browser I cannot use the JOptionPane dialog box.
    I have tired using an alert box but it executes the commit statement before the alert box is dispayed. So this does not work
    While (i < 2)
    if( i==1)
    %>alert(�The transactions commits when you press Ok�); <% //what it to stop execution here
    else
    stmt.executeUpdate(�commit�);
    I am not using threads so I cannot use the sleep function.
    I am using mysql and have already configured it to detect deadlocks and how long to wait for locks.
    Thanks for your help
    Mette

  • Behavior of "Stop Filter Execution" filter action

    What is the intended behavior of the "Stop Filter Execution" filter action? I cannot find any recent documentation on that issue. When part of manually run filters, is "Stop Filter Execution" designed to stop all remaining filters for all messages if the filter that contains it matches once? That appears to be the behavior for me. When included in the first filter of several filters, only the first filter matches and the log only indicates instances of matching of the first filter, although several other subsequent filters should match for several messages that do not match the first filter.
    I appreciate the functionality of Thunderbird's filters, but am trying to find a solution for implementing more complex boolean logic for moving messages from my Inbox using manually run filters. I have several filters set up for categorizing messages, but I would like to implement the filters such that they are not applied to starred messages. Currently, I have logic in most of the filters to not match a starred message by using the "Match all of the following" option, however this prevents use of OR logic in the filter and leads to an increased number of filters. I would like to set up the filters such that a first filter matches starred messages and prevents the remaining filters from being run only for those messages which match the first filter.
    It may be that the behavior that I am seeing is a bug specific to my installation, but I'd like to get confirmation on the expected behavior and see if others have encountered this issue. I am working under the assumption that the behavior of "Stop Filter Execution" should stop subsequent filter processing only for messages on which a containing filter matches as indicated in the old post at https://groups.google.com/forum/#!topic/mozilla.feedback.thunderbird.prerelease/rUXaQ0NdZvM, but that assumption may be wrong.
    Any help or suggestions are appreciated.

    Ok, it looks like this is a documented bug, for example at https://bugzilla.mozilla.org/show_bug.cgi?id=552936. I should have searched bug reports before posting here. I'll track things with the bug reports. Thanks.

  • Stopping the execution in between

    Hi,
    I am using a Event structure to Start and Stop the test. In the Start event i will be having a stacked sequence which consists of many sequences. In the Stop Event I will be stopping the execution. If I press Start button the sequence under this event will start running. I want to Stop the execution or skip the next set of sequences in between the sequence. During this I lose the control over the GUI and I cannot do anything until the sequence under the Start event is completed. I can stop the execution by pressing the abort button but i want do it programmatically.
    Regards,
    Rajashekar

    Here you go...your code with state machine implementation. If you implement it this way, you can definitely take care of the case that you have mentioned.
    Example in LV 8.6.
    Adnan Zafar
    Certified LabVIEW Architect
    Coleman Technologies
    Attachments:
    Sample_State_Machine.zip ‏14 KB

  • Need to stop servlet execution until another thread completes its execution

    Hi all,
    i created servlet & in the doPost method i run a thread,after the thread end its execution, the servelt takes a result from this thread & do something in it.
    my problem is that , i need to make the servlet stop the execution until this thread ends, & then the servlet continue in executing the remaining code.
    welcome to any help.

    This appears to be a threads related problem. Try Thread.join - http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Thread.html#join()

  • How to stop an execution from a method and thread?

    1,
    public void method(){
    if( something is true)
    //I want to stop this method
    //or if something is false, go on
    blablablablabla
    }Does any one know how to solve the above??
    2,
    Thread t = new Thread(){
    public void run(){
    if( something is true)
    //I want to stop and kill this Thread
    //or if something is false, go on
    blablablablabla
    }Again, how do I solve the above??
    I know this is very simple, but I just hit a wall when I encounter this on making a program for my project.
    please help
    thanks alot

    warnerja, for the method, I have tried "return" but
    it does not work... will it work on the run method of
    thread object??
    Secondly, doesn't "break" keyword only stops the
    execution of a loop/condition, but not the method's
    scope??yes. break breaks the loop. I thought your method doesnt have any other code except the condition.
    use return with thread.

  • Stop the execution of main for 2 more seconds

    hi,
    I would like to stop the execution of the main program for few seconds and resume again.
    i tried
    try
                        this.wait(90000000);
                   catch(Exception e)
    but did not work
    could some give any other suggestions
    thanks
    jag

    Also, it's better to catch the specific Exception that the Thread.sleep method throws.
    (InterruptedException)
    And it's usually good to output any exception messages, so you can see what's going on.
    Instead of empty catch brackets, it's better to write e.printStackTrace();
    (where e is the name of your caught Exception...)
    cheers!
    lutha

  • Stop the execution for Some seconds

    I want to stop the execution for some second , Basically
    i want some funtion which will wait for specified period .
    it should work like Inkey() in foxpro .
    I have tried timer , pause but that does not solve the problem
    Thank you
    Regards
    Farukh

    find the library d2kwutil.pll (probably in c:\orawin95\tools\devdem60\demo\forms) and copy it and d2kwut32.dll to your application directory. Attach the pll to your form; now you can "interface" with windows. So for pausing you application use this in you form:
    win_api_utility.sleep(1000);
    the parameter takes milliseconds. so in the example it's 1000 milliseconds or 1 second.
    good luck!
    Tim

  • How to stop package execution from SSIS or logic

    Hi all,
    I need to stop the execution of a package (datamanager) when the user chooses a particular (wrong) category from the package prompt. It is a security check.
    The package uses a custom dtsx chain.
    I need to stop it using a SSIS task (I don't know how) or if it is simplier I need to stop just a script logic (.lgf) that is inside the package.
    Thank you
    (bpc ms version 10)

    Only the user who ran the package can cancel it.
    If you want to cancel another user you should log into Integration services server, and then stop the running package. (System admins usually do this)

  • How to stop the execution of a program

    greets folks
    i want to know if its possible to stop or let in stand by the execution (run) of a program while HttpService responds the request??

    No. All remote requests in Flex are asynchronous.It's part of how Flash Player works and you can't change that. You need to react to the event when the call completes. What are you trying to achieve?

  • How to measure fpga execution time

    Howdy--
    I'm hacking through my first FPGA project without yet having the hardware on hand, and I find I could answer a lot of my own questions if I could predict what the execution time (ticks, mSec, whatever) of bits of my code will be.  Running FPGA VIs on the Dev Computer with built in tick counters does not seem to be the proper way to go.  Is it possible to know the execution time of FPGA code before compiling and running it on the target?
    If it matters to anyone, my context for the question is a situation where a 10 uSec loop is imposed by the sample time of my hardware (cRIO 9076, with a couple of 100 ks/S I/O cards), and I'm trying to figure out how much signal processing I can afford between  samples.
    Thanks everyone, and have a great day.
    Solved!
    Go to Solution.

    bcro,
    You can look into cycle accurate simulation, which would give you a better understanding of how your code will work.  More information can be found here: http://zone.ni.com/devzone/cda/tut/p/id/12917
    As a rough measure, you can estimate that simple functions will take one tick to execute.  However, there is not list of what is and is not a simple function.
    You could also try placing code inside a single cycle timed loop (SCTL), which would then guarantee that all of the code in the loop will execute in 1 tick.  However, if you are doing a lot of operations or trying to acquire an analog input, this will fail compilation.
    Drew T.
    NIC AE Specialist

  • Can't delete/stop problem execution??

    All, I have a job (RMANScript) to backup my database that is being reported as a "Problem" execution. When I click to view the details, it shows the Initialize piece worked, but the actual script running for 5 days now. I've tried to suspend the run and I get a success on the suspend, but it still shows a status of 'Running'. How can I get this ONE execution (recurring job) deleted from the repository without having to delete/recreate the whole job?

    REFERENCE: METALINK DOCUMENT ID :285513.1
    FOLLOWING Job 'OEMR2_GRID_REPOSITORY_BACKUP ' IS running FROM LAST 24 hours AND you can STOP/DELETE it
    ARLE4_STANDBY_HERC_KWAK_ARCHIVELOG_CLEAR 1 Scheduled 16-DEC-2006 10:00:05 EACH target's timezone 3 Database Instance SYSMAN RMAN Script
    ARLE4_STANDBY_HERC_KWAK_ARCHIVELOG_CLEAR 2 Scheduled 16-DEC-2006 10:00:03 EACH target's timezone 3 Database Instance SYSMAN RMAN Script
    ARKLE3_HERC9_KWAK9_HERC8 BACKUP 2 Scheduled 16-DEC-2006 10:00:03 EACH target's timezone 3 Database Instance SYSMAN RMAN Script
    ARKLE3_HERC9_KWAK9_HERC8 BACKUP 1 Running 14-DEC-2006 10:00:00 EACH target's timezone 3 Database Instance SYSMAN RMAN Script
    OEMR2_GRID_REPOSITORY_BACKUP 1 Running 13-DEC-2006 23:00:00 EACH target's timezone oemr2 Database Instance SYSMAN RMAN Script
    OEMR2_STANDBY_ARCHIVELOG_CLEAR 1 Running 13-DEC-2006 15:30:00 EACH target's timezone oemr2sb Database Instance SYSMAN RMAN Script
    TO Solve this problem OMS-JOB ID BY either OF THE FOLLOWING sqls (logged IN AS sysman)
    SELECT execution_id
    FROM MGMT_JOB_EXEC_SUMMARY js
    WHERE status IN (12,13)
    AND execution_id IN
    (SELECT execution_id
    FROM MGMT_JOB_EXT_TARGETS jt, MGMT_TARGETS t
    WHERE js.job_id = jt.job_id
    AND jt.target_guid = t.target_guid
    AND UPPER(t.target_name) = 'OEMR2')
    Output= 246B54AB1C262CB6E0440003BA9B2D4D
    SELECT execution_id
    FROM MGMT_JOB_EXEC_SUMMARY js
    WHERE status IN (12,13)
    AND job_id IN
    (SELECT job_id
    FROM MGMT_JOB j
    WHERE j.job_name = 'OEMR2_GRID_REPOSITORY_BACKUP')
    Output= 246B54AB1C262CB6E0440003BA9B2D4D
    DECLARE
    CURSOR c1 IS
    SELECT step_id
    FROM MGMT_JOB_EXECUTION
    WHERE execution_id = '246B54AB1C262CB6E0440003BA9B2D4D';
    BEGIN
    FOR r1 IN c1 LOOP
    Mgmt_Job_Engine.update_step_status(r1.step_id,5,0);
    END LOOP;
    END;
    COMMIT
    Job IS stopped AND moved TO job history

  • 9144 with custom FPGA and SGL EtherCAT User-defined Variables?

    Hi,
    I currently have a small instrument driver (rs485) running on a 9144 chassis. The output values are communicated to the EtherCAT Master using FXP numbers. I would like to switch these FXP to SGL since I upgraded to LV 2012 SP1 with FPGA now supporting SGL numbers.
    Is this possible? I tried several times to create the SGL User-defined Variables in the project, but the date type is grayed out.
    Greetings from Munich,
    Götz
    Solved!
    Go to Solution.

    Unfortunately, SGL is not a supported data type for communication to/from a 9144. The available data types for user-defined I/O variables are:
    * Fixed Point
    * Signed Integers(Int8, Int16, Int32, Int64)
    * Unsigned Integers (UInt8, UInt16, UInt32, UInt64)
    * U32 Bit Field
    * Boolean
    More information regarding user-defined I/O variables can be found at:
    Programming EtherCAT I/O With FPGA Intelligence: Differences in the LabVIEW FPGA Programming API
    http://www.ni.com/white-paper/10618/en#toc4

  • STOP Program Execution

    Hiii Everyone,
    How to stop execution of a program depending on a condition.
    Depending on a condition given in program, i want to stop the rest program execution. Program execution should be stopped at BADI.
    Thanks in advance.
    Regards
    Sunil

    Hi,
       I think the best is to put a break-point inside the method and check if it's executed or not
    I think the best is to put a break-point inside the method and check if it's executed or not
    Regards
    Kiran Sure

  • How Can we stop the execution of java program which contain infinite loop

    Dear All,
    I create one .bat file which which execute the simple java program
    I write one java program which execute above .bat file using instance of Runtime Class of java
    It's work fine if java program which is executed by .bat file is simple(Which has normal termination)
    But if that program contain inifinte loop then that file will goes on executing untill I close it manually
    So i want a solution in java which close that bat file (command window ) which is in running condtion
    If there any solution please replay me
    I try to close that .bat file using destroy() ,stop() method of Process and Runtime , Thread Class
    but it did not give me correct output
    .bat file still running !!!!!!!!!
    Thanks in advance

    Why not use javaw.exe to make the app run so you don't need the dos window (which is presumably what you are actually talking about when you say bat file).

Maybe you are looking for

  • How to make a particular record in a particular column in a table as a link

    Hi All, I have a table in which the data is getting populated from the response of the BAPI. I have a column in this table which is not related to the BAPI response. I am binding the column with locally created attribute which is related to the custo

  • Java.rmi.RemoteException

    Hi, I have a dc where am using the functionality 'export to excel'.For that i have used two other dc's 'dc_externallibray' and 'dc_serverlib' for accessing the jar files. I have added Jars_APIPublicPart,Jars_SDAPublicPart from dc_externallibrary and

  • ADF 10.1.3 -  Adding menu tabs

    How can I add two menu tabs and each point to a different page? I tried to add two menu tabs in the menu1 item of panelPage and added CommandMenuItem for the nodeStamp they are not showing up.

  • BP- Change Bapi error

    Hi,    I am trying to change some information of External BP Number using the Bapi (BAPIBUSISM007_CHANGE).It throwing the error (Customer number was not filled during external number assignment)..But I cant find out any field to pass External Number.

  • Icloud control panel and vista

    i cant install icloud control panel 3 in my laptop that running vista and i cant find a previous one also some webpages of yours doesnt appear in ie 9 what settings must do