How can I create an event listener for the change of variable shared or similar?

Hello

I have a 'big' 6 devices communicating measurement system via the TCP protocol. The system is designed to use REST (the representative State transfer) with JSON (JavaScript object notation).

Now, I need to add labview program to this environment. I've implemented a solution to 'work' with the help of this forum. Thank you for this! Now, I need to do better (currently no timestamps, large delays, etc.).

I currently have a web service deployed using http-get as input. My web service .vi is just passing the web entrance to shared variables that are then questioned in real measurement program. Reason is that when I put the measurement program directly to the web service, it does not (something about rights and dependencies). Measurement program includes one third of the owners (Instron) drivers. Also I would not direct access via the network to our mechanical testing device potentially dangerous.

Now, I want to change the message from the web services .vi commensurate .vi. Currently I have a loop of 10ms to query for changes in the shared variable. Is there a better way to do this? I thought create a listener to the shared variable change events.

In addition, if you have any ideas (preferably, working code example) how to make the interface between labview and TCP-JSON I would really appreciate it.

BR,

Juha

Currently in LabVIEW, the only way to create an event listener or event NSV is to use the DSC toolkit.  Most of the time the DSC is a very expensive tool that simply encapsulates the functionality that is built into the motor of the PSP and OAS and which is accessible to anyone who can program in LabWindows/CVI.

http://zone.NI.com/reference/en-XX/help/370051P-01/CVI/libref/cvicnvcreatesubscriber/

If you want to collaborate, I would like to create a small library of LV that would create a base SV events using a vi LV reminder or possibly passing return user LV event which is how works the DSC toolkit.  I asked OR several times to explain how do this and they're very tight discreet about it.  I guess that they do not want to give users LV less reason to buy the DSC.

Tags: NI Software

Similar Questions

  • To view the details of the table, how can I create users and applications for the dev team?

    Hello
    Veiw the tables as column details, etc., we use the password apps by oracle apps Forms.But apps password giving the development of values is threat to security. My question, how the development team will check the details of the database other than the apps user & password? No work around for this problem?

    Naya,

    The developers must have access to the development/TEST instance but must not be connected directly to the instance of PROD. Assuming that your development instance is identical to the production, I believe that the best scenario is to prepare reports on the development instance (having full access including password apps), and once they are done, they go to the ADMINISTRATOR to upload it to the production instance.

  • How can I create a language pack for Windows 7?

    How can I create a language pack for Windows 7

    No! You can use the language packs provided by Microsoft. "A programmer is just a tool that converts the caffeine in code" Deputy CLIP - http://www.winvistaside.de/

  • How can I create a better UI for Blackberry?

    How can I create a better UI for Blackberry?

    Do you it with love.

    or you could try this.

  • How can I create sequential shooting (1 for each 'row') numbers in a script in multiple column?

    How can I create sequential shooting (1 for each 'row') numbers in a script in multiple column?

    Sorry, but for now there no such function to put sequential numbers in the column number drawn.

  • How can I add a separate apple for the iphone and ipad wife id

    How can I add a separate apple for the iphone and ipad wife id

    Hi, are the measures already implemented? If they are, you need to configure them again and establish a Apple ID at this time.

    Apple ID - Support official Apple

  • Noobie here... How can I register my HP Touchpad for the guarantee

    Noobie here... How can I register my HP Touchpad for the guarantee. I have no ideal where to register my details... Then... Helppppppppp... lol

    When you connect to your hp webOS device information is returned to servers HP to register essentially the device for you. It has been since the registration for you. You will then receive an email which will help you to confirm your e-mail address to your profile and validate it.

  • How can I use my current windows7 for the new portable computer

    Original title:

    Windows 7

    Hello

    I bought the original windows7 and I currently use it in my laptop. I recently bought a new laptop and now I want this original windows 7 on my new laptop.

    How can I use my current windows7 for the new portable computer

    Please notify

    Concerning

    Run you where you are unable to activate code product. It gives you a list of phone numbers for Microsoft to ring.

  • How can I create a library item in the latest version of dreamweaver CC?

    How can I create a library item in the latest version of dreamweaver CC? I want to save my Start menu and my right foot of author as part of the library but can not find a way to do it.

    Switch to the design view or Code view, and drag the selection to the active panel library category.

  • How can I create a separate page in the menu bar?

    How can I create a separate page in the menu bar?

    I want to create a page that does not contain the bar, other pages, and I don't want other pages to include this new page in their menu bars.

    I want to create a different page (s) completely independent in an existing menu bar and maybe add it's own menu bar...

    Is there a way to do it?

    Yes, you can right click the page you want to have separate and select "exclude of the Menu.

  • I want to install adobe Flash player, I don't know my password. How can I create a new or retrieve the original?

    I want to install adobe Flash player, I don't know my password. How can I create a new or retrieve the original?

    When you (or someone) first put on your computer, you (or someone) had to choose a password. This protects your computer, and you need to install most software or change the system. We cannot help you if you forget it, sorry.

  • How can I create a scroll effect when the manuscripts of user to the bottom of the image will be blurred?

    How can I create a scroll effect when the manuscripts of user to the bottom of the image will be blurred?

    Hello

    You can create a scrolling movement where the image fade out the scroll, you must use the tab opacity under the effects of scroll Panel.

    If you need especially be blur on the image, then you must change this image in any editing program like blurry image to make a copy of this image, then place the two images (real and blurry) on this page and use the scrolling motion or fade option to replace the images.

  • How can I make my default program for the Adobe Downloads?

    How can I make my default program for the Adobe Downloads?

    Set up the default program depends on the type of file you download, Ex:-PDF file open in Adobe Reader or Acrobat.

    The downloaded file is opened in the default program set on your computer for this file type.

    The steps may vary for Windows and Mac.

    Windows

    Right click on any file with the file type that you want to change the default program Ex:-Pdf,.

    Select 'open with '.

    and from the list select your application that you want to set default Ex: Acrobat

    Check the option on the bottom, "always choose this application to open this file type.

    Mac

    CTRL + click on any file with the file type

    Go to 'Get Info '.

    Modify the Application in the 'open with '.

    Select 'change everything '.

    Close window 'Get info '.

  • How can I create dynamic events for a group/list?

    Hey,.
    ATM I'm programming request a bit where I add items to my center pane.

    Simpyfied I got:

    -Center pane: here are the items that appear on right click in the lower pane. This component must serve something like a playground where you can drag and drop and associate items in the bottom pane
    -Low component: here, I got approximately 180 items which are quite equal. It's smth like a menu of items that you can use. I realized the java classes extended from a parent with v.f. dispute class.

    What I want:
    I want to create an event handler for EACH of the items 'menu' dynamically. Just sth like:
        for (int i = 0; i < basic_menu_list.size(); i++)
        {
          final Element el = hbox_bottom.getChildren().get(i);
          hbox_bottom.getChildren().get(i).setOnMouseClicked(new EventHandler<MouseEvent>()
          {
    
            public void handle(MouseEvent event)
            {
              if (event.isSecondaryButtonDown())
              {
                playground.add(el);
                redrawPlayground();
              }
            }
    
          });
        }
    But as I expected, it does not work...

    Now my question:
    How can I solve this problem? Y at - it no option to listen to all the elements of a group without hard-coding every single listener?

    Thanks for your help,
    Martin

    Hello user,.

    Why you expected you it wouldn't work?
    You have an example with the 'transition' apply on a bunch of circles in the Getting Started with JavaFx (http://download.oracle.com/javafx/2.0/get_started/jfxpub-get_started.htm)

    Here is a class of the basic example...

    import javafx.application.Application;
    
    import javafx.event.EventHandler;
    
    import javafx.scene.Node;
    import javafx.scene.Scene;
    import javafx.scene.control.TextBox;
    import javafx.scene.input.MouseEvent;
    import javafx.scene.layout.Pane;
    import javafx.scene.layout.VBox;
    
    import javafx.stage.Stage;
    
    public class HelloWorld extends Application {
    
        //~ ----------------------------------------------------------------------------------------------------------------
        //~ Methods
        //~ ----------------------------------------------------------------------------------------------------------------
    
        public static void main(String[] args) {
            // Entry point
            Application.launch(args);
        }
    
        @Override
        public void start(Stage mainStage) throws Exception {
    
            Pane pane = new Pane();
            Scene scene = new Scene(pane, 200, 200);
    
            VBox vBox = new VBox();
            TextBox input1 = new TextBox();
            TextBox input2 = new TextBox();
            vBox.getChildren().addAll(input1, input2);
    
            for (Node input : vBox.getChildren()) {
                input.setOnMouseClicked(new EventHandler() {
                        public void handle(MouseEvent event) {
                            System.out.println("test click");
                        }
                    });
            }
    
            pane.getChildren().add(vBox);
            mainStage.setScene(scene);
            mainStage.setVisible(true);
        }
    }
    

    Niculaiu

  • How can I create a full recovery for OS and preinstalled software media?

    Hello
    My son´s accompanying the new Satelite L855-10U preinstalled OS and much other software already installed on the HARD drive, but no installation media, the client is supposed to create a tool from Toshiba.

    I created 6 Swedish recovery for the operating system using the tools Toshiba had installed on the HARD drive.

    To do this 6 Swedish, I created with the Toshiba Recovery tool contain the operating system and all other preinstalled software?

    How can I create the installation media full and usable if not for the operating system and all other preinstalled software?

    I can´t find all the information on the backup software pre-installed with the exception of the BONE. Is there complete information how to do the above, in the manual of the computer, or have you missed this information?

    I would like to know how I can create media backup complete and usable for the operating system as well as for all other preinstalled software, so I can recreate all the facilities of the plant at a new disk if/when the original HARD disk crashes.

    Is there a partition hidden with pre-installed software, and if so, how can I create a backup of this partition, or all the software, so I can reinstall everything if the HARD drive fails, if it is already not with the Swedes 6 Toshiba tool created for me?

    Forward to your response and to complete your customer documentation about the complete instructions for installation and recovery media creation.

    Thank you very much!

    Baltazar

    Hello

    On this forum, you will find a lot of useful comments on the recovery image saved on the HARD drive and its operation to the facility and the creation of recovery disks.
    All this is clearly and simply.

    Front of Toshiba offer new people for laptop in software development create recovery image. This recovery image will be created for each laptop model (specific hardware configuration). Recovery image contains the operating system, all necessary drivers, tools/utilities Toshiba specific and some other software like DVD/Blu-Ray, Microsoft Office test drive and the antivirus application. With this configuration every laptop owner can begin to use the laptop without having to install important applications.

    This package is then saved on the HARD drive and can be used for the installation of HARD drive recovery - http://aps2.toshiba-tro.de/kb0/HTD1303440001R01.htm. In other words, if something is wrong with HARD drive recovery facility you can reset the preinstalled operating system and reinstall recovery imae. After that make you have absolute same settings you had after purchase and first start of the laptop.
    HARD drive recovery image can not be used if:
    -HARD drive is defective
    -you have installed the version of the own BONE
    Structure of the HARD disk partitions - is changed
    Recovery image - HARD drive is deleted or moved to another partition or copied to the external device.

    To avoid all this Toshiba recommends the creation of recovery disks. Using these disks, you will be able to install the OS on the new drive HARD or in any other situation listed above.
    Please note: the use of recovery disks will remove all HARD drive, create the new recovery partition and install image recovery, so you still have the same settings.

    I hope I can help you with my explanation. If you have any other questions you are welcome.

Maybe you are looking for