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!

Tags: NI Software

Similar Questions

  • running multiple instances of VBAI does not work

    Hello everyone,

    We are 4 common examples of VBAI at the same time. Recently, he had to copy it (because production is doubly).

    With our first system, we have no problems when you try to run multiple instances of VBAI. This time, however, it does not.

    Our system:

    • 4 cams: Allied Manta 201

    • camera is triggered (rising edge) separately, but almost simultaneously.

    • Four port NIC (with the right driver :-))

    • 4 ports and our on-noard port are bridged.

    • computer: intel I5 (4 cores)

    • License to run Vision Builder 2012.

    • Programmed with Vision Builder HAVE 2012.

    • Interface programmed in c# (receives images of the relevant info 4 programs and displays on the screen).

    Action taken:

    • Test with our program that opens 4 instances of VBAI. Result: 1 single instance opens.

    • Removed our bridge a connected our cams on a switch. Result: 1 single instance opens.

    • Open VBAI 4 VBAI-programs directly (but separately). Result: Each program opens and is fully working.

    • Open 2 programs at the same time (with VBAI). Result: Fist opens and is equipped with the work. At the opening of the second program, that we get error messages saying that it is not possible to connect with our camera.

    • The test above was created with:

      1. The cam connected to our network card 4 ports.

      2. The cam connected through a switch.

    • I have also written 4 simple programs (just enter a period followed by image)

    • With these programs, I tried the above test (VBAI 2 hours and run both programs at the same time). Same problem: 1programs starts, the error messages when opening a second program.

    I have the impression that it's a network problem, but what bothers me is that, when the bridge, I don't see a difference with our another computer that works on our original assemblyline. When you work on a referral that our parameters are the same as on a computer that does not have a network card 4 ports. The computer (and liked)) allows us to run multiple instances.

    Any thoughts?

    Any help would be greatly appreciated. I'm sure I'm missing something obvious here, but I don't really see.

    If you need more information about something, let me know.

    With sincere friendships.
    Tom Declercq


  • Running multiple instances of Flash IDE CS (6)

    I have a build machine compile my fla files by running Flash.exe command line and providing a JSFL file as a parameter. I want to run multiple instances of the IDE Flash to enable simultaneous generations on this machine otherwise it only one thread running on a build machine that is a waste of resources.

    So, is it possible to run multiple instances of the Flash IDE? Perhaps there is some sort of command line? I have Flash CS6, but there should not be a lot of differences with CC, isn't it?

    I don't think that you can run multiple instances of flash CS6 and CC.

    -Reynaud

  • Can VMware Player run multiple instances of the same VM?

    I looked around but could find an answer to this question. If it has already been answered, please feel free to point me to that answer. I am relatively new to VMware Player, so this may seem like a stupid question. Please bear with me.

    I've been running Linux in a virtual machine using VMware Player 5.0.2 on Win7 and I would like to start another instance of the same virtual machine, simultaneously. When I try to launch the image once again, VMware asks if I want to take possession of the virtual machine running, but does not give the opportunity to start another instance.

    Is it because it is not possible to run two instances of the same VM, or y at - it another way to get there?

    Welcome to the community,

    This can be done. If another instance would be allowed to use the same file system, the guest operating system would be very likely corrupt the file system. What is possible - at least with VMware Workstation - is to create clones related, where the Basic virtual disk is the same (open in read-only mode), but writes go to independent virtual disk files.

    André

  • What is the best way to run multiple instances of the class containing infinite while loop?

    Hello

    I have a several instances of the class (say a, b, c,...) that have the same parent and I want to run the same methods overridden to all instances in parallel.

    For example:

    a.init ()-> a.run ()-> a.stop ()-> a.run ()-> a.stop ()->

    b.init ()-> b.run ()-> b.stop ()->->->

    c.init() ->           ->             -> c.run() ->               -> c.stop()

    ...

    See the attachment for more details.

    The problems are now:

    1. the 'run' - method does not return until it receives the external trigger

    2. everything to run methods return in a different time

    1 chip means I can't use autoindexed for loop because in this case b.run () will have to wait before the end of a.run (), right? Is it possible to run to the loop in parallel?

    2 chip means that an object must be able to run and stop independently from others.

    What is the most elegant solution? The solution copy - paste in the attachment works for 3 instances, but there are currently 10 and more is coming.

    Juha

    In fact, what I wanted to know was "how to add the 'P' loop '... Easy, after you ask the right question.

    In the attachment, there is a test.vi that has two numerical indicators in a certain time-infinite loops. If I leave the parallelism, the two digital are incremented infinitely. If I don't allow parallelism, only the first is incremented (he never leaves the infinite while loop).

    To solve my original problem, I can make an init-start-stop branch within a loop-parallel-indexing for and make sure that there are the same number of instances of loop as there are objects in my array of objects (object array is an autoindexed in the loop for).

    Also good point about the vis environment. I should also add that.

  • Photosmart 7510 running multiple instances of HPNetworkCommunicator.exe

    I have several instances of HPNetworkCommunicator.exe being run, but only 1 printer configured.  An escalation manager HP/engineer? connected to my PC to help solve a problem that I had with Efax.  He used a tool of the scrubber and left all instances previous HP printers I had and then reinstalled the PhotoSmart 7150 software.

    Everything worked fine after that.  However, Windows did an update on my computer and after that I could not the scanner, no printer software worked (to check the ink levels, scanner, etc...).  Responsible for the escalation, said there are problems with Windows updates because after the update, Windows does not see the printer as a scanner and it is a threat to the network, so it disables the scan from the printer part.

    He has reinstalled the printer that a printer wireless and then scan will work again.  However, he had several (3) instances of HPnetworkCommunicator.exe running after that.

    I went into the control panel and saw 2 7510 s PhotoSmart configured, so I deleted one of the printers.  I thought that's why there are several instances of HPneworkCommunicator running, and delete the redundant printer would solve the problem.

    I rebooted and checked everything was working on the printer.  However, I have yet 2 instances of HPnetworkCommunicator running.  Is this normal?

    Hello

    It is normal to have more than one instance running at the time sime because of several communication actions occouring simultanly (e.g. alerts of ink. Front panel to scan, the device status, etc..)

    This is the mode of operation of the specific software version.

    If you see the affected PC performance, it's another story.

    For such a question, I would recommend you to set the alert of ink as shown below, restart the PC and check any changes:

    http://support.HP.com/us-en/document/c03191239

    If performance is still affected, also disable the front panel scan option.

    If the software does not affect the PC somehow, you have really not hae any reason to take action.

    Kind regards

    Shlomi

  • You can run multiple instances of Windows Sidebar?

    I use multiple monitors and I would like to use more than 1 instance of Windows Sidebar as aware, I have 2 pages worth of gadgets.  and it would be easier to have a sidebar on each screen.

    Hi IT_Shaggy,

    It is not possible. If you have two monitors or more, you can place the sidebar on one of them

    For more information, see the link:

    Customize Windows Sidebar

    Hope this information is helpful

  • How to force multiple instances of a process or program to run under XP?

    Sometimes, several instances of a program can execute without the user does something special, for example, you can open several instances of the Adobe Reader software if you click on the names of different files (but if you click directly on the .exe in Program Files XP opens just one instance).

    I am trying to run multiple instances of the Kindle for PC program, so I can display 2 different books or pages at a time. I guess that there is a way to do this by manually creating a shortcut or directly from the running of the KindleForPC.exe command line and play with command line parameters... someone knows it how?
    Thank you

    It really depends on how the application was written.  You can try to run as a different user and see if it works.  Right click on the shortcut of programs and select 'Run As.... "and use another user that the currently connected.  The user must have the appropriate privileges to run the program, for example a limited user may not be allowed to run the program or access any of its files or registry keys.

    John

  • Multiple profiles can be addressed by running multiple installations of Thunderbird; rather than put several profiles on a plant?

    Please don't laugh, but I'm running three quite separate mail programs Eudora on a PC; each one with a different email address. I have three icons, and emails are completely separate. I'm just trying to determine if I can do the same with Thunderbird. I know that you can configure multiple messages in a single installation, and then switch back within this facility. But I'm trying to see if I can keep doing what I'm doing now. I know that I have to open a new Eudora program for each email address, but I'm OK with that. Any thoughts?

    Eudora becomes old and unstable, so I would go if I can.

    Thank you very much.

    Although I don't really no why you must run multiple instances of tuberculosis, especially since the TB program folder and the profiles folder are separated, to do so are described here:

    http://KB.mozillazine.org/Run_multiple_copies_of_Thunderbird_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.

  • Multiple instances of VBAI

    I know that we can now acquire multiple cameras in VBAI (thanks!).  However, in my view, what to do so leads to very complex control sequences.  It doesn't look like VBAI has fully embraced parallelism for anything other than the FTP transfer.  What should I do if I have 5 cameras GigE each needs to be raised, and where it is possible that two can be triggered at the same time?  Can I run multiple instances of VBAI on a single PC (hey, it's multi-core)?  I predict that the current response is to use LabVIEW, but VBAI is especially LabVIEW... right?

    I want to retain only the simple, single camera, inspections on the PC.  Running multiple instances of VBAI would allow me to devote an instance for each camera without worrying about what's happening on TSF the other 4 (or more).

    No, I have not tried to do it again.  Currently, I am out of town and away from my vision laboratory.  I thought that if this is possible, it is worth mentioning to the public and if it is not, then, it is worth noting in R & D.  The system I'm imagining would be a future version of a system, we finished just where we had 4 NI Smart Cameras and a GigE camera.  The question is on what to do if all 5 GigE cameras.  Don't worry, we still love the SmartCams!

    On a sequence of validation.

    Dan press

    PrimeTest Automation

    Hey Dan,

    Good question! VBAI supports the acquisition of several cameras, even if they are triggered at the same time. We have a flag in the acquisition stage that allows to specify if you want to wait as the following picture or purchase immediately. Thus, in the case simple two cameras triggered at the same time, you will have an initial state who tried to acquire the camera 1 and if there was a timeout he loop back and try again using the wait for the flag of the next Image. When an image is acquired, you know that the other camera was triggered, so you transisition to another State who acquires the camera 2 with an immediate flag, since we know that the image is already there. You can use the image select to switch between the two images, so it is possible, but not necessarily the cleanest. Even if you had two VBAIs simultaneously, synchronizing is not trivial to make sure you weren't inspect imageN camera1 and imageN + 1 on camera2, but perhaps this would not be the cause of your system. In any case, we don't currently support multiple inspections VBAI operating simultaneously on a system, but it is certainly a feature that we know.

    Thanks for your series of validation,

    Brad

  • 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.

  • Multiple Instances of the Application to access the same DAQ hardware

    I have a relatively simple application that reads from a device of data acquisition (OR-9205 connected to NI WLS-9163) wireless.  I would like to run multiple instances of the executable, but I get the error-201105 (resource reserved) as soon as the DAQmx task starts on the second instance.  Each instance tries to acquire different channels of the same DAQ hardware.  Is this a problem with the data acquisition device, or DAQmx in general?  Thank you.

    -Joe

    Hey Joe,

    Unfortunately, you can only one type of access channel with each program.  For example, you might HAVE a program access and another use AO, but you can't have two programs different AI the same access card.  It is common among all of the DAQ hardware to NEITHER.

  • 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?

  • 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

Maybe you are looking for

  • Save picture without re-download of the source.

    I'm trying to save bandwidth, I noticed that when I right click on the image and select "Save Image", Firefox download again the image of the source, instead of saving the image already displayed or copying from the current cache. How to get FF just

  • Alerts SmartBridge: entry point for notifier.exe Blueyonder ist not found

    Since download Explorer 7, I get an alert message whenever I restart. Alerts SmartBridge: point Blueyonder - istnotifier.exe - entry not found. "The procedure entry point GetProcessImageFileNameW 'no' could not be located in the dynamic linkLibrary P

  • Youtube video of yoga stuck 8 after 27 seconds

    I have yoga 8 4.4.2 android running and the youtube app update. All tube videos you stuck exactly after 27 seconds to play. Audio to work well. Everyone face similar problem? I am doing this side only if playback of video in youtube app. If the video

  • not found in the system

    Hi there ive tried to download manager HP recovery but said the softpaq will not be installed because HP Recovery Manager cannot be found in my system? What to do now? Lisa x

  • Window sizes host display does not restore after a remote desktop connection

    After that my computer has been accessed via a remote desktop connection, the window size for my program do not restore their previous size.  I have monitors of landscape which are larger than most of the remote users.  When they log off my computer,