"MB Ethernet Slave Demon.vi" connection lost when opening a windows dialog box in my application

Hello everyone,

I am currently working on a LabVIEW application that communicates with a PLC using a Modbus Protocol (with an ethernet cable). The PLC is the master and the PC is the slave.

The code is based on the Modbus of LabVIEW examples: "MB Ethernet example Master.vi, MB Ethernet example Slave.vi and MB Ethernet slave Demon.vi. It is not the first time I use it.

But I recently discovered a problem. In my application, I have a pop-up with a button that opens a windows dialog box to select a result file.

When the windows dialog box opens, the "MB Ethernet Slave Demon.vi" crashes (I put a meter inside to see what happened and it stops at the moment opens the dialog box), then when I close the dialog box, the counter continues to count, the connection ID is empty, and the number of the demon slave VI connection resets to 0. When communication is re-established between the PC and PLC (like 10 seconds after the closure of the dialog box), the number of connection go to 1 and table of login ID is no longer empty.

Otherwise, the communication works very well. But not when the dialog box opens and is a significant problem for me because the user must be able to open results file during production that needs the Modbus communication at work because it's the controller who gives orders the computer to run the production cycle.

Thanks in advance for your help.

If you think that the problem is inside the library NI Modbus (old), why don't you use the most recent which is available on the network of tools? Link is here: https://decibel.ni.com/content/docs/DOC-30140

Looking into some of the screws in the library, she uses methods of Server VI as "Run a VI" that will perform the loop of the root, as it crashes while the file dialog is open. I suspect that the new version of the library is not the problem.

Tags: NI Software

Similar Questions

  • I use a dongle for my internet but suddenly I can't connect. "" When I run windows diagnostics I get this message "not set up to establish a connection on the port.

    Internet connection problem

    I use a dongle for my internet but suddenly I can't connect. When I run windows Diagnostics I get this message... "www.microsoft.com"is not configured to establish a connection on port "service world wide web (HTTP)" with this computer. Can anyone help please?

    Hello

    (1) don't you make changes to the computer until the problem occurred?

    I suggest you to follow the steps below and check if it helps:

    Method 1: Try to start your system in safe mode with network and check if the same problem occurs.

    http://Windows.Microsoft.com/en-us/Windows7/start-your-computer-in-safe-mode

    Method 2: If the question does not exist in Mode safe mode then try to put your computer in a clean boot state.

    By setting your boot system minimum state helps determine if third-party applications or startup items are causing the problem.

     

    How to troubleshoot a problem by performing a clean boot in Windows Vista or Windows 7:
    http://support.Microsoft.com/kb/929135

    Note: After the boot minimum troubleshooting step, follow step 7 in the link provided to return the computer to a Normal startup mode.

    Follow these steps to reset the computer to start as usual:

    (a) click on start toreduce this top that i, type msconfig.exe in the Start Search box and press ENTER.

    If you are prompted for an administrator password or for confirmation, type your password, or click continue.

    (b) under the general tab, click the Normal startup option, and then click OK.

    (c) when you are prompted to restart the computer, click restart.

    Method 3: Of connection problems in Windows wireless and wired network:

    http://Windows.Microsoft.com/en-us/Windows/help/wired-and-wireless-network-connection-problems-in-Windows

    Check this link for more information:

    Why can't I connect to the Internet?
    http://Windows.Microsoft.com/en-us/Windows7/why-can-t-I-connect-to-the-Internet

    Hope this information is useful.

  • How can I do to block the main thread when to display a dialog box

    I have a problem to block the user interface main thread when to display a dialog box (the dialog was created by the main Application), and when the dialog box is closed, the main Application can go to the next step.
    Here is my code:

    SerializableAttribute public class TitledPaneExample extends Application {}
    instance of TitledPaneExample private;
    StackPane mainModalDimmer;

    /*
    * (non-Javadoc)
    *
    * @see javafx.application.Application #start (javafx.stage.Stage)
    */
    @Override
    public void start (point primaryStage) bird Exception {}
    instance = this;
    primaryStage.setTitle (this.getClass () m:System.NET.SocketAddress.ToString ());

    final StackPane layerPane = new StackPane();
    layerPane.setDepthTest (DepthTest.DISABLE);
    layerPane.setStyle ("background - fx - color: BLACK ;"); ")

    Vb VBox = new VBox();
    vb.setStyle ("background - fx - color: BLUE ;"); ")
    vb.getChildren () .add new (Label ("1"));
    vb.getChildren () .add (Label ("2")) new;
    vb.getChildren () .add new (Label ("3"));
    vb.getChildren () .add (Label ("4")) new;

    Bt1 button = new Button ("bt1");
    BT1.setOnAction (new EventHandler < ActionEvent > () {}
    {} public void handle (ActionEvent event)
    System.out.println ("bt1 trying to the new dialog box > > >");
    Dialogue di = new dialog box (instance, "some trick here!");
    System.out.println ("bt1 dialogue again successfully, try to show");
    di. Show();
    System.out.println ("bt1 dialog hide? < < < < ");"
    }
    });
    vb.getChildren () .add (bt1).

    layerPane.getChildren () .add (vb);

    mainModalDimmer = new StackPane();
    mainModalDimmer.setId ("MainModalDimmer");
    mainModalDimmer.setMaxSize (Double.MAX_VALUE, Double.MAX_VALUE);
    mainModalDimmer.setVisible (false);
    mainModalDimmer.setStyle ("background - fx - color: RED ;"); ")
    layerPane.getChildren () .add (mainModalDimmer);

    Scene sc = new scene (layerPane, 800, 600);
    primaryStage.setResizable (true);
    primaryStage.setScene (sc);
    primaryStage.show ();

    }

    /**
    * Display the node given as a floating dialog on the entire application, with
    * the rest of the application grayed out and blocked from mouse events.
    *
    @param message
    */
    {} public void showModalMessage (message from node)
    mainModalDimmer.getChildren () .add (message);
    mainModalDimmer.setOpacity (0);
    mainModalDimmer.setVisible (true);
    mainModalDimmer.setCache (true);
    TimelineBuilder
    . Create()
    () .keyFrames
    new KeyFrame (Duration.seconds (1),)
    new EventHandler < ActionEvent > () {}
    {} public void handle (ActionEvent t)
    mainModalDimmer.setCache (false);
    }
    }, new KeyValue (mainModalDimmer
    . opacityProperty(), 1.
    Interpolator.EASE_BOTH))) infrastructure)
    . Play();
    }

    /**
    Hide the any modal message that appears
    */
    public void hideModalMessage() {}
    mainModalDimmer.setCache (true);
    TimelineBuilder
    . Create()
    () .keyFrames
    new KeyFrame (Duration.seconds (1),)
    new EventHandler < ActionEvent > () {}
    {} public void handle (ActionEvent t)
    mainModalDimmer.setCache (false);
    mainModalDimmer.setVisible (false);
    mainModalDimmer.getChildren () .clear ();
    }
    }, new KeyValue (mainModalDimmer
    . opacityProperty(), 0,.
    Interpolator.EASE_BOTH))) infrastructure)
    . Play();
    }

    /**
    @param args
    */
    Public Shared Sub main (String [] args) {}
    Launch();
    }

    Dialogue/public class extends TitledPane {}
    private owner of TitledPaneExample = null;
    instance of TitledPane private;

    Dialogue (owner of TitledPaneExample, String message) {}
    This.Owner = owner;
    this.parentThreand = Thread.currentThread ();
    This.instance = this;
    this.setExpanded (true);
    this.setText ("Dialog");
    this.setMaxWidth (400);
    this.setPrefWidth (300);
    this.setMinWidth (200);

    Label the tx = new Label ("message");
    tx.setTooltip (new Tooltip (message));
    tx.setWrapText (true);
    tx.setContentDisplay (ContentDisplay.LEFT);

    Bt button = new Button ("OK");
    bt.setOnAction (new EventHandler < ActionEvent > () {}
    {} public void handle (ActionEvent event)
    masquer();
    }
    });

    Sp ScrollPane = new ScrollPane();
    sp.setHbarPolicy (ScrollBarPolicy.AS_NEEDED);
    sp.setVbarPolicy (ScrollBarPolicy.AS_NEEDED);
    sp.setContent (tx);

    Hb HBox = new HBox (30);
    hb.setPrefHeight (40);
    hb.setAlignment (Pos.CENTER_RIGHT);
    hb.getChildren () .add (bt);

    BP BorderPane = new BorderPane();
    bp.setCenter (sp);
    bp.setBottom (hb);

    this.setContent (bp);
    }

    {} public void show()
    System.out.println ("dialogue show() 1 > > >");

    owner.showModalMessage (instance);

    System.out.println ("dialogue show() 2 > > >");

    }

    public void masquer() {}
    System.out.println ("dialogue masquer() 1 > > >");
    this.owner.hideModalMessage ();

    System.out.println ("dialogue masquer() 2 > > >");
    }
    }

    }

    I'm also interested in how to do this without the use of a step.

    But, if you are ready to use a step for this, you can create a useful first step (without borders) with its owner being your current stage. Then, you can call the function showAndWait on stage that allows to block the thread of your application. For example, I implemented a DialogStage like this:

    package hs.mediasystem.util;
    
    import javafx.animation.KeyFrame;
    import javafx.animation.KeyValue;
    import javafx.animation.Timeline;
    import javafx.event.EventHandler;
    import javafx.scene.effect.ColorAdjust;
    import javafx.stage.Modality;
    import javafx.stage.Stage;
    import javafx.stage.StageStyle;
    import javafx.stage.Window;
    import javafx.stage.WindowEvent;
    import javafx.util.Duration;
    
    public class DialogStage extends Stage implements Dialog {
    
      public DialogStage() {
        super(StageStyle.TRANSPARENT);
    
        this.setTitle("MediaSystem-dialog");
    
        initModality(Modality.APPLICATION_MODAL);
      }
    
      protected void setParentEffect(Stage parent) {
        ColorAdjust colorAdjust = new ColorAdjust();
    
        Timeline fadeOut = new Timeline(
          new KeyFrame(Duration.ZERO,
            new KeyValue(colorAdjust.brightnessProperty(), 0)
          ),
          new KeyFrame(Duration.seconds(1),
            new KeyValue(colorAdjust.brightnessProperty(), -0.5)
          )
        );
    
        parent.getScene().getRoot().setEffect(colorAdjust);
    
        fadeOut.play();
      }
    
      protected void removeParentEffect(Stage parent) {
        parent.getScene().getRoot().setEffect(null);
      }
    
      protected void recenter() {
        Window parent = getOwner();
    
        sizeToScene();
    
        setX(parent.getX() + parent.getWidth() / 2 - DialogStage.this.getWidth() / 2);
        setY(parent.getY() + parent.getHeight() / 2 - DialogStage.this.getHeight() / 2);
      }
    
      @Override
      public final void showDialog(final Stage parent, boolean synchronous) {
        initOwner(parent);
    
        setParentEffect(parent);
    
        setOnShown(new EventHandler() {
          @Override
          public void handle(WindowEvent event) {
            recenter();
            onShow();
          }
        });
    
        if(synchronous) {
          showAndWait();
        }
        else {
          show();
        }
      }
    
      protected void onShow() {
      }
    
      @Override
      public void close() {
        removeParentEffect((Stage)getOwner());
        super.close();
      }
    }
    
  • Prevent my homepage of refreshing when I open a [solved] dialog box

    Hello world

    I have a problem. When I open a pop of a page, the next page is refreshing.


    My first page contains a LOV and table.
    The table is PPR by the LOV.

    When I opened the box, my parent page's refresh the data on the page are refreshment I want...



    Help, please


    Concerning
    Lutchumaya

    Published by: Lutchumaya on September 3, 2008 05:15

    Any component that you use to open the dialog box, set the property partialSubmit to true.

    John

  • Internet connection lost when power is removed Probook s 4330

    HP probook 4330 s

    Windows 7 Ultimate + service pack 1 64-bit

    Driver: Microsoft 3.0.0.41 RALINK driver (up to date when I do a search)

    When I remove its internet external power is lost.  The wireless connection always seems to be in place, but there is no traffic.  I can't ping anything in this case.

    The only way to get this up and running again is to

    1. Insert the AC power

    2. restart the service dhcp client (sometimes required to conduct more than once).  The service has not stopped, but for some reason, it becomes it running.

    I also tried to disable the 'allow the computer to turn off this device to save power ".  But that did not help.

    Have spent a long period of problems, have almost tried everything and am at the point where I am considering the purchase of a new laptop computer.

    Kind regards

    Paul

    fixed by updating with the latest wifi driver

  • Connection failed when open the SH.rpd online with OBI administration tool

    I have a sameple that sh. Deployed DPR and OBI servers are uprunning on a Redhat Linux 5 box. The administration tool on a planter, I tried to open the RPD online, but get the error message connection failed. I was using the same name of user and password I used in offline mode to connect the RPD even.

    When the failure of the online connection, I tried to connect offline with the same credentials. I received a warning from read-only, but be able to connect to.

    What is wrong here that I can connect offline but not online. Some security configurations on the server side is involved?

    Thank you

    I have a DSN configured in the window box and be able to import database objects.

    Certainly, you create the DSN with the 'Oracle BI Server' driver?

    When you create or change the DSN, try checking the 'Connect to Server BI Oracle to obtain default settings for the additional configuration options' and click Next. If your DSN is correct, you will get another screen. If not you will get a more descriptive error message, e.g. «...» Authentication failed... «or «Could not connect to port 9703...» "etc.

    What do you mean by "import database objects"?

    Connection mode is suppose to have the same password online?

    Yes

  • a finger scrolling lost when upgraded to windows 10

    HP G72-259WM Notebook PC laptop using, upgrade to Windows 10 and now the Snaptics pointing device lose vertical scrolling with a finger.  It is checked and the scroll box shows ok.  He worked well with windows 7 Home Premium, before the upgrade. I was not able to locate an updated driver. Very awkward not having no not this function when working with spreadsheets or trying to make the web pages of reading. Any suggestions?

    Back to Windows 7, it wasn't a very viable option after using the half of my monthly data quota to get upgraded to Windows 10. Using the old driver works better and I quit using Windows Explorer (Edge) and use instead Google Chrome for my internet and scrolling works well with it. Problem solved.

  • fall of Internet connection out when opening windows mail

    Windows vista (home) email box as wireless b/band disconnection on the Outbox of windows mail.reconnect, sendfrom access and reconnect?     mail via fbook and messenger, no problem.

    In Windows Mail, go to select Tools, accounts, your account email, properties, connection.
    It shows for the connection?
    You should leave this setting not selected, in this case Windows Mail will use any connection IE uses.
     
    In addition, under Tools, Options, connection, the first box must be checked.
    and the second box unchecked.
     
    If everything which withdraws, but you still have the problem, the account may be damaged.
    Remove account, restart Windows Mail, and then recreate the account.
     
    Gary van, Microsoft MVP (Mail)

    "ayoolover" wrote in the new message: * e-mail address is removed from the privacy... *

    Windows vista (home) email box as wireless b/band disconnection on the Outbox of windows mail.reconnect, sendfrom access and reconnect?     mail via fbook and messenger, no problem.

    Gary van, MVP (Mail)

  • How can I make windows open with a full window? When I connect and I opened every window, opens with a small window.

    Each window opens with a small window and I click the enlarge each time to open a full window.

    Three options.
     
    1: take the corners of the window and drag it to the format full screen. Do not use to expand. Close all other windows first via the taskbar and the latter. Windows will remember the size of the last closed window the next time that you open the program.
     
    2: any shortcut you use to launch the window, right-click, and select Properties. Under the 'Run' drop-down list, choose "expanded".
     
  • My PDF does not save when I click SAVE AS opens a blank dialog box and it does not record.

    Anyone else has this problem and knows how to fix?

    Hi simonak10820071,

    Try this: -.

    The default "Save as" dialog Acrobat DC is different from the dialogue box you had in earlier versions of Acrobat, it also allows you to record in the clouds and previous locations that you saved the files. It is possible that when Acrobat tries to connect to the 'cloud', it runs into problems. You can try to disable this feature to see if this brings your backup in the back of the box: open Acrobat Preferences, then go to the "General" category and uncheck "show the online storage when you save files:

    Kind regards

    Nicos

  • Favorites in the Finder are not displayed when a Finder window is pulled upward by application.

    I use a Mac Mini 2012 model. When I opened Finder in the menu I see my favorites, as shown in this screenshot

    When I perform an action inside any application such as Word, Chrome, etc. My Favorites are missing from the side bar, but also a way to bring them back.

    Anyone know how I can make them visible? It's very frustrating when you want to record stuff in your iCloud!

    Given that my favorites appears, I suspect you have the scroll bars is off and don't realize that has been scrolled beyond the scroll bar on the left side to hide the Favorites over the devices.  Because that's where my favorites are, is above the devices.   Go to the Apple menu-> system-> general preferences and check always the scroll bars.  This way, if the scroll bar Scrolls the sidebar out of sight of the Favorites, you just have to set the scroll bar on the side bar.

  • I have an update for El Capitan 10.11.2 in the app store, but it will not be installed. Whenever I click it, it says the computer must restart, and when that happens, a dialog box appears saying that updates have changed and he does not apply.

    When I click on he App Store update, he said first a reboot is required, then it just happens before the restart, a pop up advising me that updates have changed and offers 2 options: 1) cancel, which does nothing and 2) show invisible characters, which also does nothing. I rebooted several times and it still does not work. What should I do?

    In some cases, this error message is caused by a problem in the network. Please restart your router and your device at wide band, if they are separated. If there is no change, see below.

    This procedure will remove some temporary and cache files. The files are generated automatically and do not contain any of your data. Sometimes they can become corrupted and cause problems like yours.

    Please, back up all data and read this message before doing anything.

    Triple-click anywhere in the line below on this page to select this option:

    /var/folders/zz/zyxvpxvq6csfxvn_n00000s0000068

    Right-click or Ctrl-click on the highlighted line and select

    Services ▹ reveal in Finder (or just to reveal)

    the contextual menu.* file should open with a selected subfolder. The subfolder has a long name beginning with "zyx" and ending with "68". Place this subfolder in the trash. Do not move other subfolders with similar names. You may be prompted for administrator login password. Restart the computer and empty the trash.

    * If you do not see the item context menu copy the selected text in the Clipboard by pressing Control-C key combination. In the Finder, select

    Go ▹ go to the folder...

    from the menu bar and paste it into the box that opens by pressing command + V. You won't see what you pasted a newline being included. Press return.

  • When you use Windows Search error SearchFilterHost.exe - Application error

    When you are using Windows XP (SP3) running Windows Search (4.0), I get the error message:

    SearchFilterHost.exe - Application error

    The instruction at "0x0af609c" referenced memory at "0 x 00000014. The memory could not be "read".

    Click OK to terminate the program

    I do nothing especially when this happens and the disabling or uninstalling this feature is not an option that I and some of the programs that I use it. She repeats every few minutes, but I'm pretty sure it's because the application restarts whenever you "Finish". I also tried to reinstall it but to no avail. Thanks in advance for any help.

    These errors appear when the index database is corrupted, for example during the crash, etc. The solution is, except disabling or removing the search service, reconstruction of the index. Just reinstall will not solve the problem, because that does not remove the corrupted index.

    On XP Pro:

    (1) start 'services.msc' and find Windows Search stop.

    My personal advice: check user accounts all records and make sure that the "Application Data" and "Local Settings" directories have their attribute 'Index summary' unchecked, including all files and subfolders. You can avoid many possible future performance issues.

    2) go to c:\Documents and Settings\All Users\Application Data\Microsoft and delete the entire directory "Search" (or just rename / move elsewhere).

    (3) close the session log. Index will rebuild, it may take some time, depending on the amount of documents, music, etc. you have. So be patient with harddisk increased temporary activity. Normally it works with a low priority.

    On Vista/7 Search index is located in \ProgramData\Microsoft, otherwise,'s done it the same way. Unfortunately, I do not know how to avoid the real alteration. XP seems more inclined to him.

  • get #0 x 80004003 error message indicating a problem that occurred when opening my Windows Live Mail and I can not respond to mail that comes in

    get message #0 x 80004003 error indicating a problem that occurred in openiing my windows Live Mail and I can not respond to mail or transmit it when well even I can receive.   Please notify.  Judy

    Hi Judy,.

    In dealing with the problem with the Windows Live Mail account, you can post your question in Windows Live Mail support for assistance.

    Hope the helps of information.

  • Google chrome has started to crash when opened with windows 7

    My google chrome suddenly began to crash whenever I try to open it.

    Never had this problem earlier and can not connect to anything unusual, I did with my windows 7.
    I reinstalled Chrome but no result.

    There are several items in the following Google Chrome Support not associated with Chrome open or crashing after opening: http://support.google.com/chrome/bin/static.py?hl=en&topic=14684&page=table.cs&tab=21605

Maybe you are looking for

  • My new iPhone continues to try to download a podcast, which I don't.

    I recently spent a from 5 c to a 6 S Plus iPhone iPhone. Everything is great with the exception of a strange "glitch" in my podcast app... it will not stop trying to download a specific episode of a podcast. The problem is the podcast seems to be dea

  • PC clock stops

    Since setting up a new motherboard my pc clock stops whenever the pc is asleep or is cut.  I have reset the pc to sleep and I stop and retsart time service and it is then ok for the session.  Any ideas please?

  • Download free windows 10

    Tried all day today, 29 July for access to the server to get the free download. Only get the spinning wheel in the well-being of the screen. What can I do (other than to try to do several days ago!)?

  • 4580 scanner said "no responsible document" when no document is loaded.

    I have upgraded to Mac OS7. Attempt at analysis of the preview, the message is "no document Loaded". I have HP J4580 all in one.

  • Change the port number of the IOM servers

    How do I change port number of servers IOM to 14000 to some other port after installation/configuration and use of the server for more than a year.