OOP - how to pass variables between the branches of the object, but not instances of VI

I have a main VI where a thread object goes through some subVIs initialization and then branches off into several parallel loops. My understanding is that each branch becomes a separate instance of the object. Data is passed between the loops using global variables, wrapped in the accessors (I can change this if someone has a better approach - reducing to a minimum the memory and the CPU usage is very important).

I need to have a large number of instances of the main VI running at the same time. What would be the best way to ensure that the data transmitted between the loops of one instance of VI do not interfere with the data transmitted between the loops of another instance of VI?

Thank you for your understanding.

Ah, you're right. Stupid mistake on my part. It's all working now. The corrected code is attached.

Tags: NI Software

Similar Questions

  • Mix between the objects, but not their colors/shapes

    I want to mix the effect shadow from object A to object D. so that B and C will have their own dropshadows, whose parameters are between those of A D.

    I didn't want to mix shapes or colors of the any object. They stay the same.

    This of course is an example, in order to manually would not do the trick.

    Bildschirmfoto 2016-07-13 um 18.57.06.png

    Thanks for your help,

    Jonathan

    With the help of the gradient tool you would get results and have manually reapply the colors.

    Another way is to put a white square and drop shadow below, with shadow and make a mixture between those.

  • passing variables between the pop-up windows

    I'm moving one popup to the other variables. It works fien if I spend bvariable of main application as soon as I'm moving from variable popup to popup window it does not work here is what I am trying ro:

    That works fine

    hand. MXML

    private function launchMoreInfo (): void {}
    var win: view = PopUpManager.createPopUp (this, opinion, true) as point of view;
    //

    victory. AccountNum = list1.selectedItem.accountNum;
    Win.User = user;

    }

    But if I try to pass variables to the pop-up window, created from popup component, is not ' work

    View.MXML

    private function dsclientevents (): void {}
    var win2:view = PopUpManager.createPopUp (Thi, dsclienteventlog, true) like point of view;
    //

    win2. AccountNum = 'test ';

    }

    AccountNum is declared in dsclienteventlog.mxml

    Is it possible to pass variables between the pop-up windows?

    I would much apreciate your help

    Thank you

    Hi friend!

    I have faced this kind of problem and solved using 'Public static var '.

    Just, you declare a public static variable in your class Popup. Then you can directly set the value to this variable as,

    ClassName.StaticVariableName = value;

    In your case,.

    say PopUp2.mxml or PopUp2.as

    =======

    In the PopUp1 script:

    OnItemSelectionChange (event): void

    {

    PopUp2.m_iSelectedID = DatagridID.selectedItem.AccountID; It will change the value of this variable, even if the popup2 is open.

    your stuff here...

    }

    Try this, I hope this will help you.

    Thank you

    Merlina.

  • Marshall plan: how to pass data between the main field and sub-application

    Hello

    I'm trying to load a Flex 3.5 application in Flex 4. In the process, I need to move a strong local typed object from main application to the loaded swf file. And I also have to pass a rope and a bitmap of application sub to the main application. Have an example to show how to pass data in the application domain?

    Thank you

    SW

    Define scaleContent = true, set a breakpoint on SWFLoader.as:doScaleContent and

    see if he thinks there's a swfBridge.

  • How can I pass variables between the areas?

    So I have a SWF8 file as a player on one area (unsecured).  It loads and plays a SWF8 from another domain (secure).  So far so good.  Problem is, I need the player to send variables to files it's play that links in this SWF will be, in addition, a link.  I also need the player to receive orders from control of film in return.  There must be a rule or two that I am violating, because even if the file is read, everything depends on a variable is just dead.

    A note: the two files started as SWF6.  I understand that I can only make what I'm trying with SWF8, I went into the code and fixed case sensitive issues and made the conversion.

    Can I do this?  If so, how?  Is the script for the variables from another domain different somehow?

    Thanks in advance.

    You can use localconnection() for communication between the two.

    If sovereign wealth funds need to both send and receive data, using 2 instances of localconnection in each swf file.

  • How to pass Variables from the Source (SQL) to tab target (JavaBin Shell) in ODI knowledge Modules

    Hi all

    My name is Alessandro and I am new to the community.

    I have a problem with the KM stage custom when I try to pass the variable from the source to the target.

    The ODI version tha I use is the 11.1.1.5.0.

    I created a stage KM following the instructions of the metalink document (Doc ID 728636.1).

    But when I insert the value of the variable in a test table, the value in a table is the name of the variable.

    Where I'm wrong?

    I am doing thi.

    (1) create a step in my goal of shell sql source and javabin KM. In the source tab I get the value of a query, and the name "LAST_UPDATE" column.

    In the target tab, I attribute to the variabile jv_last_update the value of the variable #LAST_UPDATE, with the same name in the selection column.

    source_tab.jpgtarget_tab.jpg

    (2) I created a second stage where I insert into a table of the value of the variable jv_last_update (to debug the value of the variable):

    insert_step.jpg

    (3) when I try to see what I have in the table, the value of any line is the name of the variable "#LAST_UPDATE"; ".

    result_table.jpg

    Thanks in advance


    Alessandro

    Hi Alessandro,.

    Interesting... I have not read the Oracle document you sent yet, but one thing I can guarantee you, is that it doesn't. If Oracle says that it should work, maybe it's a bug, or maybe he has changed on new versions of ODI. I am also on ODI 11.1.1.5 and I tried many different ways to pass SQL results to variables of java with all sorts of different labels, but none of them worked for me as well. But I managed to use it in a different way, so please see below if it matches your needs:

    We are just one step. The second is just to show that it worked:

    In the first step, on the source tab, select Oracle and point to the logical schema that you want to run the query:

    On the target, note the following Java BeanShell code with the SQL that you want to run:

    Now your variable must have the correct value of your SQL. To test it, I just write a comment 'Raise' to Jython in the second step:

    The result is 'X' as expected:

    It will be useful.

    Thank you!

  • How to pass variables to the basket to your fund information?

    Here's what I have to do.

    I have a site that sells the same products to several groups of people.

    When a customer enters our site that they need to choose what 'group', they belong to.

    Based on this selection of some of the images, text and links on the pages are customizable (I can do this without problems using a combination of passing parameters through the URL, and writing based on cookies).

    My problem is when I get the extraction are the cookies that I wrote do not give because the url changes to the worldsecuresystems.com.

    I tried everything I can think of to try to get the information stored in the basket page to transfer to the payment page.

    I basically need to spend the 2 pieces of data based on {{globals.cookie.creditunion}} and {{globals.cookie.group}} in the cart at checkout it is added to the CMS or order somewhere.

    I hope that makes sense.

    James

    Hi James,

    Just like Mihai said, pass variables by using the url in the payment button.

    Use the liquid version to create a payment button, here is an example:

    Checkout

    Afterwards, you should be able to go to globals.get.creditunion or globals.get.group

    Good luck

    Stoiky

  • How to pass variables between scripts in OpenScript

    I have a script that calls two nested scripts. A single script creates an account number and the other script uses this account number.

    MainScript:
    RunScript: Script1-> 'account number '.
    RunScript: Script2 <-"account number".

    What would be the most effective way to pass a variable to the main script to the secondary ones. OpenScript there overall (or maybe environment) variable I could use?

    Hello

    You're right OpenScript variable will be visible from any script, note however that you will not see them in the list of proxy using the user interface, you need to change the name of the parameter and use the syntax of variables * {{nomvar}} * in any script.

    Concerning

    Alex

  • How to remove pictures of the iphone but not on icloud?

    Hello, I have an iphone 6 and I have a backup to icloud. I need to free up space on my iphone, I noticed when I delete a photo on my phone its disappear automatically icloud. Is there a way to remove photos from the phone, but keep about icloud?

    Thank you!

    iCloud Libray Photo is not a backup service; It is a synchronization service. Whatever you do a device is synchronized with all other devices, including your computer and iCloud. That's how it was designed to work.

    If you are running out of storage space on your device, choose to use a local library optimized photos. This will dynamically adjust the size of the library based on how much storage is available.

    Otherwise, you will need to disable iCPL and return to the management of your image sync via iTunes.

  • Mercury pass working in the first, but not After Effects (CC 2015)

    Hello people. Did some research on Google, but not came with something useful.

    I use a TV regular ole plugged into the HDMI port on my graphics card to production and to see my work on a larger screen, thanks to pass mercury. 2014 CC gave me no problem. Make the same settings in CC 2015 and first works like a pro, but After Effects is a no-go. I tried to ensure that the window cross the edges of the screen, try it with or without first opened, with or without "disable in the background."

    Loss - of ideas? Of qualifying questions that can help to provide more information?

    System specs

    Mac OSX 10.10.4 (early 2009 MacPro)

    2 x Quad-core 2.26
    680 2 GB GTX

    20 GB of ram

    With the help of AE in the last update

    Hi DG;

    Have you tried measures to solve the issue that helped you? If so, mention the steps you tried this number shouldn't, t come on CC 2014 or 15 on 10.10.5 and below.

    Have you tried to calibrate the seconday monitor or rename the Adobe folder in the Documents and MAC hd library > Application Support > Adobe? or tried any other HDMI and redefinition of workspaces?

    Vinay

  • How can I make Firefox the browser but not to make the default browser?

    I want to use Firefox as a browser on some sites, but not all. I don't want to make Firefox or Internet Explorer as default browser but use each on sites such as Google or MSN certaion web.

    For your choice of default browser, consider that you want to manage links in other programs, such as word processors, Adobe Reader, or an external e-mail program. Windows will use your default browser to open links.

    Then, when you visit a site in a favorite browser, open the browser and use bookmarks or Favorites to get there.

  • The distance between the objects and not the objects themselves scale

    I work with a card and who is currently around A4 in size but will print about A0, cities are so numerous that they overlap on the small map. I hope that there is a way to change the positions up to size without scaling objects in this way, they must not overlap into the completed task. I use illustrator CS3.

    Jim,

    Before experimenting, always save a copy of the but not destroyed work.

    Have you tried:

    (1) to select the entire document (what you want to have at the present time, or relative, different size), possibly through selection > even > what is relevant, then object > transform > transform each uniform scale to the relative scale reduction (6.25% if you want to keep the size A4),

    (2) to select the entire document and scale up to 1600%?

  • duplicate the names of the objects, but not?

    Hello, Cp5.5

    I am appointing some of my objects using logical names so I can keep track of everything.  For some objects, I get a mixed message of name "...". is a reserved keyword or is already assigned to another element. "That is not the case now.

    When I originally started this project, I went a bit sideways with how I built and have since taken over my senses.  Originally, I had 6 slides that were essentially duplicates of each other and I condensed the 6 slides in 1.  This particular object is a chart that I'm trying to scen2_3_backoff name (which means "scenario 2, slide 3, back office person ').  Initially, I had an object with the same name but once I changed tactics on the build, this object and slide on that it was are both deleted.

    I cleared the cache but no change.  There is * much * advanced actions on my slides and copy to a new empty project is not an option.  The library shows me using only this image 4 times and I checked that the name is not used in 4 cases.  Checked variables and advanced actions and I have a duplicate here either.

    Any suggestions on how to empty the old names of objects I no longer use?

    Sorry, Andy, but it seems that Captivate has a persistent memory, once you have used a label, you can not use it again. Very annoying and I work on it many times myself. I'm trying to solve and then adding underscore more.

    Lilybiri

  • How to pass variables between Labview and Teststand

    It is probably a trivial question, but I'm new to TestStand. All I'm doing is updated to a variable in Labview and then pass this value in a local variable Teststand. A simple test that VI is attached. I get no error and it seems correct, but when I followed the variable via TS watch display is not updated. Also I am not able to read the variable outside TS. It is probably a trivial thing, I'm doing wrong, but I'm stuck.

    Too bad, it was simple. Just need to add the context of sequence as input, then set it to ThisContext TS

  • How to remove music from the iPhone but not the iTunes library

    How do I remove songs from my phone, without remove them permanently from my iTunes library?

    Hello cruzansingerboi,

    If I understand correctly, you want to know how to remove songs from your iPhone 5 c without removing the tracks from your music library to iCloud. The article below provides a lot of information on the management of your music library to iCloud and it also describes the process to remove the pieces of your iOS devices.

    Delete songs and video clips from your music library - Apple Support iCloud

    iPhone, iPad, or iPod touch

    1. In the music application, find the name of the song, album, or playlist you want to delete and tap the Options icon more .
    2. Tap on delete download to remove the item for offline listening. The item will remain in your library on all your devices.
      Press on my music to remove to remove the item completely from your library on all your devices.

    So long.

Maybe you are looking for