Multiple instances of VI with uninitialized SHIFT registers?

Is it possible to run easily several instances of a VI that uses a shift uninitialized register? Take the Pt means by Pt function, for example. If I want to permanently keep a medium of digital data 1, I just put the VI in a loop and run it. If I want to have 2 digital data, I just change the settings of the VI "Preallocated clone environment execution" to and copy the VI below. Now if I want to have 5 digital data, he begins to take a little bit of real estate on the block diagram. I can put it in a loop For with a business structure that changes with each iteration. It is easy to make these cases, simply duplicate the case '0 '. But, if I decided to add something to the '0' case or something is a tiny bit different in each case, it then becomes a real pain to do this way. Is there a better way to handle this?

Edit: I realized that if something changes with each iteration, I must rethink my datatype or continue to use a box structure. But, if we solve the first problem where I don't have to transmit a change to the stop "0" in all other cases, that would be great!

Thank you!

Use the node of the call by reference when you open N VI references to your VI MeanPtByPt - each instance will then be a VI reference who will maintain it's own memory space.

Something like this:

With the help of the indicator 0 x 8 means that each reference VI coming out of the open reference has its own data space. To be honest, need you the indicator 0 x 40 at the place/as well - but I don't remember off the top of my head.

Tags: NI Software

Similar Questions

  • Uninitialized shift registers compiled in a DLL retain their values?

    Hello

    I'm using Labview 8.6 to create a DLL and then I create another Labview program that will call this DLL.  Within the DLL is a function called Untitled2 which is your basic uninitialized shift register.  It has a digital input which can be put in the shift register, and then I can read the number back.  After that I build it to the DLL and call it from another Labview program looks like registry of offset values are lost.  So, my question is whether Labview DLLs that contain uninitialized shift registers to the as registers of the SHIFT to retain their values?  I enclose a copy of Untitled2.vi so you can see my simple test vi.

    Does anyone know also - all good articles on the creation of DLLs in Labview?

    Thank you!

    Steve

    The short answer is the fastest is to call a VI a VI with a direct appeal. Any other way to do so is somehow above enveloping mechanism which means added. If you want to hear some details, you can read on.

    When a caller VI loads, it is "patched" with its subVIs. This means that he holds on a pointer in which he can use to call effectively than VI. The appellant also assigns a list of parameters for each call. When the call runs, the only thing the caller must do is to fill this list of parameters with the locations of their data and pass the pointer to this table in the code of the Subvi.

    When you call a VI that is embedded in a DLL, the call library node must all first set all parameters in the form provided by the convention call DLL. This is different from the approach of list for the parameter of LabVIEW and usually is to set each parameter on the processor stack. The function exported in the LabVIEW built DLL, must first obtain a connection to the VI to run. She accomplishes this by obtaining a reference VI of a cache of VI references created in the loaded DLL. Each VI reference has a list of parameters that should be filled in the settings for this call. It can then call the code. When the code is complete, there may be additional work to put the outputs in the form provided by the appellant. The VI reference must then be returned to the cache.

    So there will be several manipulation of the parameters in the call to a DLL and a couple of access to a cache may cause overhead and additional jitter include parallel calls. Even a call via a strict VI one reference would be faster. With whom you are in direct control of the VI reference so cache intervenes and the call puts the parameters directly from a list of parameters, the Subvi expected so there is less handling it.

    There are also several other limitations introduced by calling a VI in a DLL.

    1. If you are reporting to the DLL that contains the handles, then you must make sure that the DLL is called from never screw in the same version of LabVIEW. If you do not do this, then you will be allocated in a nursery memory to another instance handles and LabVIEW will stop.
    2. If you do not pass data containing the handles, then LabVIEW must make copies strings or arrays that are passed to the DLL, hindering more performance.
    3. Préallouée reentrancy is not available through dll. It's the kind of reentrancy, which allows the slot - VI maintain state specific to each caller. When it is called by a DLL, we have no idea where we are called to so we cannot give you a specific instance. Each VI reference in cache will be a specific instance of the VI but not sure which one you will get. Essentially, this makes it reentrant in dll screws act as shared reentrant. (Which could explain why it does not seem like your uninitialized register shift worked.)

    I hope this doesn't scare you use LabVIEW to create the dll. When you need to communicate to other software, this is the way to go and all of these steps are necessary to cross this limit. But if you're already in LabVIEW is not an ideal replacement to directly call a Subvi.

  • Company that multiple instances cannot start with port set to 80

    I have three instances: main forum is for cfadmin site, then, two are my websites.

    cfusion-> site cfadmin - port http < white - > remote port 8014 - host localhost - cluster no

    cfusion2-> site 1 - port 80 - remote port 8012 http - host localhost - cluster no

    cfusion3-> 2 - port 8501 http site - remote port 8011 - host localhost - cluster no

    cfusion2 does not start and the instance Manager page refreshes just without message, and there is no log system or cf with errors. I use the Chrome browser, I gave up on Internet Explorer (event after adding the sites to the safe zone).

    I then configure the third-party site using WSCONFIG in the hope that it will use cfusion3 server but on the contrary it is selected automatically cfusion.

    I could really use some help here. Thanks in advance.

    Well, I received my case running and each with its own windows service. More I don't get the blank page of death, and I did not manually change the configuration files in order to make this work.

    When CF instances are created, it creates a copy of the file cfusion for himself. and so in itself, there's also a runtime/bin folder that contains the WSCONFIG tool. So rather than create a CF Connector for my IIS sites using the main cfusion WSCONFIG tool I had use every tool within each instance. Many of you probably already knew that.

    It was recommended by Anit Kumar to activate the embedded server so that port 8500 is busy before creating instances so that the newly created instances do not automatically pick up port 8500.

    Thanks to Alexis who helped every step of the way and that got my server correctly setup.

    For anyone doing a new installation on windows server, be sure to run the installer with administrator rights. In addition, make sure that your cf installation folder has the appropriate permissions. Initially, I gave everyone full control of my installation folder, then after its installation and work I started to follow the recommendations of Peter CF 11 Lockdown Guide permissions. follow http://www.Adobe.com/content/dam/Adobe/en/products/ColdFusion/PDFs/cf11/cf11-Lockdown-GUID

    Adobe CF, could you guys add some stuff and how simple instructions on the page instance in CF Administrator Manager? He must know that bodies have their own WSCONFIG tool and should be used for the planned sites. Also, I think that additional instances should start with port 8501, 8500 should be left alone for the integrated server option. This could avoid installation problems. Oooh, also if possible in the instance Manager add an action button that opens its own WSCONFIG tool. Action can be called "add a website".

  • Multiple instances of oracle with characterset different on the same server database

    Hello

    We are finalizing plans to install Automic (software scheduliong formerly UC4) for our suite of retail applications and replace Uc4.

    The process came to know that Automic does not support AL32UTF8 database characterset.

    At this moment we have RMS and UC4 UC4 supports AL32UTF8 and schema for UC4 running on the same database server is inside the RMS database.

    From now on, it is recommended to have a separate database instance on the same server as the RMS database and with a different characterset which is WE8MSWIN1252.

    Is it possible to have 2 instances of database running with different charactersets, one with AL32UTF8 and the other with WE8MSWIN1252. ?

    There are configuration requirements before implementing instances of database?  THS APPWORX (for UC4) schema will be exported (data pump export) and imported into the new database.

    The utility Automic we want to use is not compatible AL32UTF8 and manage only a database of character set WE8MSWIN1252.

    Any help and advice would be much appreciated.

    Thank you

    RAM.

    PL post OS and database versions.

    Is it possible to have 2 instances of database running with different charactersets, one with AL32UTF8 and the other with WE8MSWIN1252. ?

    Yes - without any doubt - two databases are independent and have nothing to do with each other.

    There are configuration requirements before implementing instances of database?  THS APPWORX (for UC4) schema will be exported (data pump export) and imported into the new database.

    You may have - to test the export/import process rigorously. If your source is AL32UTF8 and target is WE8MSWIN1252, data loss may occur for those characters that are in the former, but not the last.

    HTH
    Srini

  • Need help with while loop and shift registers

    I have a broad set of data and required to read data at maybe 200 samples at a time to process these samples through my VI and have add and concatenate a file separate lvm.  The part where I am confused is the shift registers. How can I limit the number of samples read in an iteration? How do the while loop to stop when all data are read in?

    I have attached my diagram, there may be something wrong with my technique?

    This will give you an idea.  There are a lot of other (probably more effective) methods.  It is a basic solution, quick and dirty to help you grasp the overall concept.

  • Cluster vs multiple Shift Registers

    I had a question about good coding practices.

    Say you have several elements (numeric values, strings,... whatever) you need to iterate between the loops.

    Is it better to make a registry change for each item?
    Or cluster, and then move the cluster to a single shift register?

    It is faster than the other? Or better/worse for another reason?

    Cory,

    Yes.  and no.

    I usually create a large cluster of typedef I call indicators and flags (InF).  I put most of the things that need to be passed around with that.  The cluster of error, the State enum and large data tables are usually in separate shift registers.  Table L: shift registers and data are at the top of the loop and error and SRs of the State are at the bottom.  Most of the code goes between them.  Given the help of bundle/Unbundle documents name to which the data is used in a case.  The InF cluster is usually not displayed on the Panel before and may exist only in a Subvi to save space of block diagram.  The data are unbundled indicators as needed for display to the user.

    If you have a situation where speed is concerned, separate data that must be processed everything quickly and optimize for that.  Strings and arrays within the cluster probably cause some memory interesting distribution issues since they change size, that can be an argument in favour of that separates them.

    Lynn

  • How can I play multiple instances of video to classic media player in Windows xp help, that I could do so some time! It has to do with the codec? If yes what codec plays multiple instances?

    How can I play multiple instances of video (no problem reading of 12 movies at the same time, at the opening of the 13th film the problem only starts), the classic use of media player in windows XP? I was able to do all the time! It has to do with the codec?
    If yes what codec plays multiple instances of Media Player Classic in windows XP?
    I get the same problem with VLC all that needs to be checked on preferences is checked in the two VLC & MPC!

    Hello

    Multiple instances of Media Player is not supported in version 7 and greater.

    · What version of Windows Media Player you have installed?

    · Are instances that you are referring to the bodies shipped?

    · You use any third-party software to run multiple instances?

  • DG on multiple instances with no CARS

    Hi all

    I am new to Oracle Data Guard and would like to know if it is possible to apply on the top one only binary instances multiple server, even if that server has no RAC installed on it.

    To understand better, I will introduce the current scenario, look:

    A server (Oracle 11 g 2) No. RAC

    -Instance SO (sales order);

    -Instance PO (purchase order);

    -Instance AC (creditors);

    Server B (Oracle 11 g 2) No. RAC

    -Instance SO (sales order) - offline;

    -Instance PO (purchase order) - Offline;

    -Instance AC (creditors) - offline;

    Desired scenario

    A server (Oracle 11 g 2) No. RAC

    -Instance SO (sales order) - primary;

    -Instance PO (purchase order) - primary;

    -Instance AC (creditors) - primary;

    Server B (Oracle 11 g 2) No. RAC

    -Instance SO (sales order) - secondary;

    -Instance PO (purchase order) - secondary;

    -Instance AC (creditors) - secondary;

    I know this may sound stupid to have multiple instances for these databases without CARS, although it looks like my current scenario and I operate the DG of the Oracle.

    Everyone is in a similar situation?

    Sorry for any error English and thanks in advance.

    Hello;

    Yes you can do it. Data Guard is part of the ERA, so if set you your Listener Tnsnames and Oracle Data Guard you're good to go.

    I have a server with three databases using Data Guard and the other not. There is no conflict.

    Also, I have two different versions of Oracle running on this server, 11.2.0.3 and 11.2.0.4. No problem, just configure the listener and start from the House of 11.2.0.4.

    Best regards

    mseberg

  • CF 11 Enterprise multiple instances are not created correctly with a separate service account.

    The company that multiple instances are not created correctly with a separate service account.

    The questions that I have are very similar to the issues identified in the link below.

    https://forums.Adobe.com/message/6584848#6584848

    My company of 11 CF will not create additional services for my sites of cold fusion beyond the initial service created during the installation process. My problems are compounded because when I try and uninstall the CF11 Uninstalling application crashes and generates the error below. I now have to try to manually uninstall to reinstall CF11. Any help or suggestion to get the problem solved is welcome.

    Description:

    A problem caused this program blocking interact with Windows.

    Signature of the problem:

    Problem event name: AppHangB1

    Application name: javaw.exe

    Application version: 7.0.510.13

    Application timestamp: 52b25e38

    Hang Signature: 0967

    Hanging Type: 6144

    OS version: 6.1.7601.2.1.0.274.10

    Locale ID: 1033

    Signing of additional blocking 1: 09675b5d8f587c9fd57b85cb72e629da

    Signing of additional blocking 2: 2cff

    Signing of additional blocking 3: 2cff32d5db809ac6ce8170a1d7ac1eb0

    Signature of blocking additional 4:0967

    Signing of additional blocking 5: 09675b5d8f587c9fd57b85cb72e629da

    Signing of additional blocking 6: 2cff

    Signing of additional blocking 7: 2cff32d5db809ac6ce8170a1d7ac1eb0

    I solved the problem with the implementation of Cold Fusion 11. I had to disable Windows server 2008 R2 UAC for all users in order to complete the installation with IIS as a web server. This also solves the problem with the inability to uninstall Cold Fusion.

  • Manager server with multiple instances CF10

    Hello

    I'm having some trouble connecting to instances of ColdFusion I installed the 64 bit with CF10 RHEL6.1.

    If I just add a single server that points to the default cfusion instance

    Host: 192.168.0.10

    Port: 8500

    Server Manager connects and I can view the settings.

    If I then add a second server that points to an instance newly packed

    Host: 192.168.0.10

    Port: 8501

    The ability of the server to connect to an instance manager becomes poor at best. I can't do a diff of parameters if they both happen to connect.

    I need to enable something specific in the admin of each instance?

    See you soon,.

    Simon

    LCD SCREEN? You mean livecycle dataservices? If I google (based on the message shown in the screenshot):

    double Server session manager

    I get this as the first hit: http://www.shilpikhariwal.com/2010/08/duplicate-flex-session-error-in-server.html

    It seems that it may be just what you need, especially in light of your next note on running multiple instances. (Not sure of the impact of J2EE session vars).

    Let us know if that helps.

    /Charlie

  • EMCA with multiple instances

    How to set up EMCAwith multiple instances?
    How to manage multiple instances on a server?

    Best regards

    Please read

    EM and multiple instances

    Concerning
    Rajesh

  • Update loop under Vi of hand / run multiple Instances

    Hey everybody,

    If I want to keep my code as modular as possible so that I can see any sub or VI.

    One of the SUB vi is permanently offices incase another output is detected. I don't want to make this mark on the main level because I don't want a huge loop in my main.vi and you won't worry about sending shift register valuse to my Subvi for him to function.

    Essentially, I have designed this subroutine Vi and am now trying to constantly be driven from a main.vi

    This hand is simply.

    Cluster of entry--> Sub VI

    Void VI retains a loop waiting for a change request action. Unfortuantely when I change the vale in main.vi the avlues in Subvi don't update. I guess that makes sense, in C, for example when you call Returns you need to wait until the end of the function call to update. Yet, as Labview is so strongly focused on taking SUB vi to do almost everything for you, I can't imagine labview is not able to update these values. I looked around and the answer seems to be global variables. I really don't want to use the because my application will become very big, but I'll use them if I need to.

    Unforunately, when I tried to use my global variable thing, it didn't work.

    1. global Var = Cluster

    2. it's in the Subvi both the main VI.

    3. when I run my code the global variable is not up-to-date on both front sides when I change one of them. I'm doing something wrong?

    A few comments.

    • You have not included the global variable
    • If you want to run multiple instances of the Subvi in parallel, it must be reentrant.
    • As the Subvi is interactive, it must be configured to display the front panel when it is called, otherwise there is no way to stop it ever.
    • All your time loops needed little expects. They have no need to turn as fast as the CPU allows, all other processes of hunger.
    • "Go to under control" is extremely complex and crawling with weird stuff like an ant farm.
      • The shift register must be initialized to avoid surprises (but you probably don't have it all)
      • Your loop runs one time too many.
      • Avoid the stress points, such as the structure of the case.
      • You can replace this whole thing with for example a table of threshold, no need to loop. (see image below).

    Good luck!

  • How can I hide/show toolbar again operate independently on multiple instances of firefox?

    I run two instances of firefox.exe. One for the left monitor and one for the right. There is a toolbar that I want to see on the right screen, but I don't want to see it on the left screen. This used never to be a problem, but it is now. It seems as if well now why show/hide toolbars are inextricably linked, and by changing or watching a toolbar on a single instance simultaneously causes the exact change even on the other open instance. I'm hoping that it could be a simple solution to this effect in the subject: config, however, I would rather not tamper with these settings until I'm sure that settings with the fix for this particular problem.

    Thank you for your attention and for taking the time to read this post.

    Sincerely;
    DC

    Toolbar settings are common to all windows open in this instance of Firefox.
    I don't know if there is an extension that allows to fix this dependent window, so you can check the website of modules.
    If you can't find one then you would use a second instance with its own profile.

    You can add - no.-distance to the command line to open another instance of Firefox with its own profile and run multiple instances of Firefox at the same time.

  • Question about multiple instances of Thunderbird running at the same time

    I read that when you start Thunderbird by clicking on its icon or the shortcut must only load once, even if you click on it several times. It should be just a window of TB. If I click on the shortcut/TB desktop icon, it behaves like that. I can click several times and that a single TB window will open and be active.

    However, if I run the 'quick launch' TB on my windows 8.1 (or no matter what windows) taskbar, I get mulitple TB windows to open, as much as I want. So if I click on TB icon in the quick launch once, I get a single instance of it. Twice, I get two, and etc. In the quick launch any program behaves like that. He starts programs with a single click and launch again and again.

    Only, I click it once and get an instance which is good and how it should be. But this behavior with the quick launch is ok? It must do this not with Thunderbird? Thank you.

    There is usually no advantage by running multiple instances of Thunderbird, unless specifically do you these race with different profiles. In practice, if they are allowed to use the same profile, the first Thunderbird should should acquire the profile and therefore block the others, although this may not become apparent until you try to salvage something, for example, a message, or to change certain settings.

    Your multiple Thunderbird work successfully? They all show the same mixture of accounts, folders and address books? Can all or part of them save and make changes?

    If this is the expected behavior, (i.e. some "typical" windows) I do not like; He does not play well with profile blocking and I think that lead to problems.

  • Firefox does not work for multiple instances of the SAME user account on Windows Multipoint Server 2011

    We have a PC HP of MulitSeat MS6200
    It runs Microsoft Windows MultiPoint Server 2011 (which seems to be a twisted version of Windows 7)
    It is implemented in a laboratory of computer science and students connect you using their account for shared room - IE multiple instances of the same user accounts are currently running on the PC at the same time.
    The first student to run Firefox can work with it without a problem.
    However, when another student try to start firefox they get the following message:
    Firefox is already running but is not responding. To open a new window, you must first close the existing Firefox process, or restart your system.

    Cannot start Firefox using a profile that is already used by someone else.
    Each Firefox instance needs its own profile or you will get this error message.

    Use-no.-line switch remote control to open another instance of Firefox with its own profile and to different instances of Firefox running concurrently.

Maybe you are looking for