How do I exit from an FP Advise vi - cFP

Hi All, I am fairly new to compact field point and am attempting to setup an "on change" Digital Input event.
I have written some test code and I have had success in getting the core main functionality to work.
[For this concept code I have wired DO 1 into D1 1]
The problem that I have encountered is how to stop the "FP advise.vi" when I am finished with it.
The only example I could find was for LV 5.0 which I couldn't open.
http://zone.ni.com/devzone/cda/epd/p/id/2012
The vi help advises:
"Caution  Do not use the FP Advise (Polymorphic) VI in nonreentrant subVIs".
I think that this is a clue, unfortunately, it is a bit too subtle for me.
Thanks In advance.
Tim L
iTm - Senior Systems Engineer
uses: LABVIEW 2012 SP1 x86 on Windows 7 x64. cFP, cRIO, PXI-RT
Attachments:
cfpIO.vi ‏17 KB

Thanks Deborah,
At this stage this is just a proof of concept VI.
The second FP Advise call was an attempt to cancel the the first one (a bit like swallowing a spider to catch a fly), It was just a guess.
The problem I have is that I cannot predict when the last loop is going to be called.
I am using the inputs for user interaction,  When the operation has finished it is unlikely that there will be any more user inputs to allow the .VI to finish it's execution.
I had discounted FP Close because it used an FP refnum.  I didn't realise it was a poly and works with the FP channels as well.
Thanks for that!
Added it to the code and got this message during deployment:.
Deploying FP Close(IO).viFP Close(IO).vi loaded with errors on the target and was closed.
LabVIEW:  Failed to load shared library FPLVMgr.dll:ialv_releaseServer:C. Ensure that the library is present on the RT target. Use MAX to install NI software or FTP to transfer custom libraries to the RT target.
I have installed every possible library onto the device through MAX,  Got any suggestions?
And for my next challenge, is there a way of using relative naming for the I/O ports.
I want to write portable code.
I am familiar with PC based systems and DAqMX and using property nodes to detect devices and available ports and combining them into portable code.
So something like: Localhost\cfp2220 @0\Digital Input 1.
I am finding the code and support for these functions appears to have be last updated in or before the LV7.1 Era and are now lying dusty and dormant.
Tim L..
iTm - Senior Systems Engineer
uses: LABVIEW 2012 SP1 x86 on Windows 7 x64. cFP, cRIO, PXI-RT

Similar Messages

  • How can I exit from full-screen View?

    On the View menu, I clicked "Full screen View", but then I couldn't find any way back to normal view. I had to Force-Quit Firefox to escape.
    How do you exit from Full Screen View?
    (I tried Esc, Ctrl-C, and many other key combinations)
    Thanks, PeterR

    Try F11.

  • How do I exit from my email account back to the main menu page ?

    How do I exit from my email account back to the main menu page?

    In my previous post die should have been FIVE.
    Some day we might be able to edit posts on our iPad.

  • How to track exit from the PageFragment Lifecycle

    Hi,
    I have a requirement of keeping track of exit from a pageFragment.
    My structure contains: a TaskFlow which contains a train . This train node contains the page Fragments. Now when i navigate from one PageFrag to another ie. when i exit the currently selected node having a page Fragment, i need to fire a logic.
    I tried using creating a bean which implements RegionController interface which has refreshRegion(RegionContext ) method.I got hold of RegionBinding interface which has only one of the following values: Entry, Execute_Model, Prepare_Model, Refresh_Unknown, Render_Model and Type_executable_region.
    Also in this case i am not exiting the TaskFlow during the navigation.
    My doubt is how do i or can i use RegionController to keep track of exit from the currently rendered PageFragment's  Lifecycle.
    Also , can i use PagePhaseListener to keep track of the PageFragment lifecycle stage. (My understanding is PagePhaseListener is to be used for Jspx not Jsff). Plz do correct me if i am wrong.
    Thanks,
    Prasenjit
    Edited by: user586616 on Aug 31, 2009 3:54 AM
    Edited by: user586616 on Aug 31, 2009 3:57 AM

    Hi Frank,
    I have created a ControllerClass which implements RegionController. I have registered the same as controller class in my pageFragments PageDef.
    So, on navigation from one train node to another. due to post back call to leaving node and freshcall to the arriving node in the train flow. i am able to get the leaving as well approaching node.
    My doubt is can i get similar or better control over the nodes traversed using trainModel or anyother adfinternal controller class? Kindly suggest any better way of getting handle to the navigating train nodes.
    Sample Code which i have implemented:
    public class RegionControllerBean implements RegionController {
    public boolean refreshRegion(RegionContext regionContext) {
    System.out.println("**********************************");
    System.out.println("inside refreshRegion method call");
    String selectedView = ControllerContext.getInstance().getCurrentViewPort().getViewId(); ------> this gives me the handle to the viewId of the curently selected pageFragment
    System.out.println(ControllerContext.getInstance().getCurrentViewPort().getViewId().toString());
    String pageName = selectedView.split("/")[2];
    System.out.println("Current PageName:"+pageName);
    System.out.println("name: "+regionContext.getRegionBinding().getName());
    int refreshFlag = regionContext.getRefreshFlag();
    if(refreshFlag == RegionBinding.PREPARE_MODEL){
    System.out.println("Inside prepare Model phase"); ------> on entering of that node i need to call some logic before prepare_model phase
    if(refreshFlag == RegionBinding.EXECUTE_MODEL){
    System.out.println("Inside execute model phase");
    if(refreshFlag == RegionBinding.RENDER_MODEL){
    System.out.println("Inside render model phase");
    // propagate refresh to inner binding container
    regionContext.getRegionBinding().refresh(refreshFlag);
    return false;
    public boolean validateRegion(RegionContext regionContext) {
    // propagate the validate to inner binding container
    System.out.println("inside validate region method");
    regionContext.getRegionBinding().validate();
    return false;
    thanks,
    Prasenjit

  • How do we exit from a sub procedure

    Hi,
    I am calling a sub procedure from my plsql procedure. If an error occurs in the sub-procedure, it should exit from the appilcation.
    return gets the control back to the called procedure. but is there a way to stop the execution totally?
    Thanks,
    Narayan

    Raise an exception that is not handled in the sub-procedure nor in the main procedure.

  • How to abort exiting from a form

    Hi.
    I want to popup an Alert message which ask the user if he realy want to exit the Oracle Forms application. If he press 'NO' button I want to return to the aplication.
    I realize that I have to use POST-FROM triger to popup the alert message. I then don't know how to unvalidate the user exit.
    Any hint / example?
    Regards,
    Dezo

    You van try this in Post-Form trigger:
    DECLARE
    alert_button NUMBER;
    al_id     Alert:= Find_Alert('your_alert');
    BEGIN
    Set_Alert_Property(al_id, alert_message_text,'Do you want to exit ?');
    alert_button := Show_Alert(al_id);
    IF alert_button=ALERT_BUTTON1 THEN
    DO_KEY('Key_Exit');
    ELSE
    RAISE Form_Trigger_Failure;
    END IF;
    END;

  • How do I exit from the "Star Wars" display?

    Hi all,
    I did my first Time Machine backup last night, and I think it went OK.
    Somehow, though, I hit the Time Machine icon during the backup, and I got into the "Star Wars" display. It wasn't showing me the progress of the backup, and it didn't show me when it was done. There was no way to get off this screen that I could find.
    How do you get out of the "Star Wars" display? (I didn't want to hit "ESC" because I wasn't sure if that would end the backup.) I'll be doing manual backups (this is for a MacBook Pro that won't be plugged into the external hard-drive all the time); I won't always have to sit with this "Star Wars" screen, will I?
    Thank you!

    The star wars screen and the process of backing up are two different things. The star wars screen is where you go to recover files, email, photos etc that have already been backed up. You don't have to be in this screen in order to back up because that happens automatically in the background. To exit, there is a cancel button in the lower left.
    Regards,
    Captfred

  • How do I exit from chat picture view (Lumia 1320)

    Hi.
    Could someone hand me a trick to close picture view when I chat?
    Problem is is like this:
    I am on chat, someone sends picture.
    I can see square picture view, but to view full size picture I need to double-hit it
    I get full screen picture view, I can save picture and...
    Yes, how to get back to chat? I cannot close the full screen picture view and get back to chat!
    I need to kill skype and and reopen it.
    Help appreciated.
    Thanks.

    Hmm.
    I don't know what I did wrong before, but now when I tap 'back' button it gets back to chat.
    Seems like I have found solution, but I am pretty sure that before it it went back to previously opened application, not chat. Will keep testing

  • How to exit from the class execution process?

    I am invoking an exe from my Java application using the Runtime.getRuntime().exec() method.
    though the process is completed, the class is still running.
    how do i exit from the class execution, but with the process still running??

    To sabre150 :
    I am directly executing the command through the exec() method:
    Runtime.getRuntime().exec("...../iexplore.exe");This way, the control is going to the opened IE window and only on closing it, my class is exiting.
    Is there any other way where I can come out of the class, but ensure that the process which i run through the exec() method, is still running?

  • Exit from Director with error code

    Hi all!
    How can I exit from director with specifyed error code by
    using lingo or JavaScript syntax?
    I want to catch its error code in batch file for example to
    do something special.
    Sample batch file I want to use:
    myprojector.exe
    if %ERRORLEVEL% == 10 goto GO_TO_SOMETHING_WRONG
    But now, by default director quit with error code 0.
    Thanks in advance

    lis0x90 wrote:
    > How can I exit from director with specifyed error code
    by using lingo
    > or JavaScript syntax?
    >
    > I want to catch its error code in batch file for example
    to do
    > something special.
    > Sample batch file I want to use:
    >
    > myprojector.exe
    > if %ERRORLEVEL% == 10 goto GO_TO_SOMETHING_WRONG
    >
    > But now, by default director quit with error code 0.
    I don't know of any way to do that, but you could get the
    projector to
    create a (zero byte) file if there's an error and in the
    batch file check
    for the existence of that file. (Not forgetting to delete
    that file, if it
    exists, when the projector starts.)
    Andrew

  • Exiting from SQL script

    Hi,
    How do you exit from an sql script?
    e.g
    DECLARE
    VAR1 = VARCHAR2(10);
    VAR2 = VARCHAR2(10);
    BEGIN
    VAR1 := 'hello';
    VAR2 := 'world';
    IF VAR1 != VAR2
    THEN
    DBMS_OUTPUT.PUT_LINE('Variables not equal');
    ## Exit here! <------- HOW?????
    END IF;
    END;
    Cheers,
    Warren

    If I understand correctly, you have a series of anonymous PL/SQL blocks in a script. If some test fails in one of them, then you do not want to run the rest of the script.
    If exiting sqlplus is an acceptable means of failing, then you can do something like:
    WHENEVER SQLERROR EXIT 1;
    DECLARE
    v1 VARCHAR2(20);
    v2 VARCHAR2(20);
    BEGIN
       v1 := 'ABCDE';
       v2 := 'FBCDE';
       IF v1 <> v2 THEN
          DBMS_OUTPUT.Put_Line('Variables Not Equal');
          RAISE NO_DATA_FOUND;
       END IF;
    END;
    DECLARE
    v3 VARCHAR2(20);
    BEGIN
       v3 := 'Second Block';
    END;
    /in your script. As shown, the script will exit sqlplus without executing the second block. You can use any sql error instead of no data found.
    Another possibility if exiting sqlplus is not acceptable would be to do something like this in your script:
    VARIABLE failed NUMBER;
    DECLARE
    v1 VARCHAR2(20);
    v2 VARCHAR2(20);
    BEGIN
       :failed := 0;
       v1 := 'ABCDE';
       v2 := 'FBCDE';
       IF v1 <> v2 THEN
          DBMS_OUTPUT.Put_Line('Variables Not Equal');
          :failed := 1;
          RETURN;
       END IF;
    END;
    DECLARE
    v3 VARCHAR2(20);
    BEGIN
       IF :failed = 0 THEN
          v3 := 'Second Block';
       END IF;
    END;
    /Note, the IF :failed = 0/END IF block should cover all the code in each subsequent anonymous block.
    A third approach would be to re-write the series of anonymous blocks as a package, then create a small driver script to call each procedure in turn unless one returns an error.
    TTFN
    John

  • Exit from Pop up windiw

    Hi Experts,
    I have created a Webdynpro component and on One action One popup window is opening and on the Popup window there is a button Once its pressed it should ask for 'You wants to save the data ' if press on Yes it should save the data and it shold exit from Pop up window and press No it should remain in the Pop up window.
    Here the pop up window is generating for me and Once If i press Yes its saving the data but please tell how can i Exit from popup window.
    Thanks in advance.

    Hi Anil,
    Please go through this link...
    Closing a window on click of a button
    Re: Closing a Pop Up Window on click of a button
    Cheers,
    Kris.

  • I accidentally uploaded songs from cds to the wrong itunes library. i would like to move those songs to my regular itunes library that i use to purchase and download music, since my ipod cant sync to both libraries. how can i do this? please advise. thank

    i accidentally uploaded songs from cds to the wrong itunes library. i would like to move those songs to the regular itunes library that i use to purchase and download music, since my ipod cant sync to both libraries. how can i do this? please advise? thank you.

    See this older post from another forum member Zevoneer covering the different methods and software available to assist you with the task of copying content from your iPod back to your PC and into iTunes.
    https://discussions.apple.com/thread/2452022?start=0&tstart=0
    B-rock

  • How to exit from SQL PlUS

    HI,I came to know that direct exit from SQL Plus without Oracle shutdown causes future issues of ORA-0600 kind of errors. Is it true? If yes could u pls suggest me how to shutdown from user "SYSTEM/manager". Bcoz with this am warned that I dont have previleges.

    Hello,
    HI,I came to know that direct exit from SQL Plus without Oracle shutdown causes future issues of ORA-0600 kind of errors. Is it true?The ORA-00600 is an internal error it can be caused for instance by a Bug, a corruption, ... , and if someday you experience this kind of error, you should open a Service Request to My Oracle Support.
    However, I've never heard that exiting sqlplus could cause this kind of error. Where did you get such information ?
    how to shutdown from user "SYSTEM/manager". To shutdown the database you should be connected with the User SYS (as SYSDBA). You may use the following statement:
    sqlplus /nolog
    connect / as sysdba
    shutdown immediate;
    exitHope this help.
    Best regards,
    Jean-Valentin

  • How to exit from a WebDynpro ABAP application and open another url

    Hi Friends,
    How to exit from a WebDynpro ABAP application and open another url like (www.yahoo.com) in the same window of the WD4 application on click of a Button?
    Regards,
    Xavier

    Hi,
    First of all you should create outbound plug in the window you are trying to exit with plufg type "Exit"
    Then create method handler in the view with this code
            data lo_view_cntr type ref to if_wd_view_controller.
            data lo_win_cntr type ref to if_wd_window_controller.
            data: l_parameter_list type wdr_event_parameter_list,
                  l_parameter type wdr_event_parameter,
                  l_val type ref to data,
                  l_val_url type REF TO data.
            field-symbols: <fs> type any,
                           <fs_url> type any.
            lo_view_cntr  = wd_this->wd_get_api( ).
            lo_win_cntr = lo_view_cntr->get_embedding_window_ctlr( ).
            CREATE DATA l_val type c.
            CREATE DATA l_val_url type string.
            ASSIGN l_val->* to <fs>.
            ASSIGN l_val_url->* to <fs_url>.
            <fs> = 'X'.
            <fs_url> = 'http://your-link.com'.     
            l_parameter-name = 'URL'.
            l_parameter-value = l_val_url.
            INSERT l_parameter INTO TABLE l_parameter_list.
            lo_win_cntr->if_wd_view_controller~fire_plug( EXPORTING plug_name = 'EXIT_PLUG'
                                                                    parameters = l_parameter_list ).
          You can easily change this logic to exit application instead of redirecting to the site
           just changing to
           l_parameter-name = 'CLOSE_WINDOW'.

Maybe you are looking for

  • IPod not being recognized by iTunes or My Computer

    When I plug my iPod into my computer, it begins to charge, but iTunes doesn't recognize it and neither does My Computer. I have tried it on multiple computers and multiple USB cords, all with the same result. Also, when someone else plugged their iPo

  • Best practice for connecting to SAP backend from JSPDynPage

    Hi, Can anyone help clear up some confusion I have over connecting to SAP from Java? We have a number of JSPDynPage portal applications on EP7 Ehp1 that connect to SAP ECC6. We currently use 2 methods to call remote functions on the ECC system. 1) En

  • User Exit for adjusting Transfer Order Quantity

    Hi All, We have a requirement to create a Transfer Order as soon as the production order is released. We have done the configuration for the same but we also need to adjust the Transfer Order quantity based on certain rounding value maintained in mat

  • Mile stone billing & down payment

    i want to configure mile stone billing and down payment i was configured in the sales order milestone billing is working and the downpayment amount is also comming after raising downpayment invoice it was showing errror document is blocked i was chec

  • Allow All Users To Add List Items But Only Certain users To Edit Them (SharePoint 2013)

    How do we allow all users to add items to a list, but only allow certain users to edit the list items? Site is SharePoint 2013. We have tried creating custom permissions. That does not seem to work.