How to call a second instance of the same VI?

Hello

I have a useful VI dealing with IO operations. To save some time, of what I would call the VI as a second instance do work at the same time. I created a sequence sub with the run option 'Use the new thread' and I called the Vi (a step of the sequence only). Execution time of the VI is about 20 seconds run Durin I called the subsequence and I carried on running my main sequence (parent). Since then 10 seconds to launch the subsequence (in the thread of sepatate I called the same VI as in the thought of subsequence the second instance will be created. However, instead of parallel work of the two instances of the same VI had to wait when mt subsequence end known call the VI th.

So my question is, as in the topic: how to call a second instance of the VI even at the "same time"?

Could you please tell me about the best approach to solve the problem?

Any VI that you want to run in parallel must be paid also re-entrant, including screws.

Tags: NI Software

Similar Questions

  • NEWBIE! How to create a second timeline in the same project?

    I often use first Pro CS5. I just bought a copy of the first 10 Elements for my wife. Surprisingly, a large part of my experience of the body has no transfer! For the most part, I was able to answer his questions, but need your help with this seemingly simple question...

    How can I create an another sequence/timeline in the same project file?

    Thanks for your help!

    Premiere Elements allows only a chronology by project.

  • How can I have two instances of the same open page to separate tabs?

    New 4.0.1 on a Win7 machine - last week using. It happens in time I want to open the same page twice. In the case of today, it's because I need to fill out a form and the need to look at a previous version - filled - in the same form that opens with the same URL. I've done this before, on the old machine with the next recent FF and Win XP.

    Thank you and I love Firefox!

    You can middle - click reload on the side of the right end of the address bar to open the same page in a new tab.

  • How to call a second screen?

    I don't know exactly how to call a second display (displays the results of a web service) with some parameters.  I'm starting simple and sending the GPS coordinates of the current location.  I would like to call the service, and then view the name of the first result in the text field.  However, I get the infamous with is not the mistake of blocking event every time that I try to do the setText.  Can someone tell me what I'm doing wrong here?

    class Results extends UiApplication {    public static void main(String[] args) {        Results gbResults = new Results(args[1], args[2]);
    
            gbResults.enterEventDispatcher();    }
    
       private Results(String Latitude, String Longitude) {        pushScreen(new ResultsScreen(Latitude, Longitude));    }}
    
    final class ResultsScreen extends MainScreen{
    
        ResultsScreen(final String Latitude, final String Longitude) {        final LabelField lblResult = new LabelField("Result:", LabelField.ELLIPSIS | LabelField.USE_ALL_WIDTH);        add(lblResult);
    
            UiApplication.getApplication().invokeLater(new Runnable() {            public void run() {                //Call the service and get back [wsresult]                synchronized(UiApplication.getEventLock()) {                    lblResult.setText("Result: " + [wsresult]);                }            }        });    }}
    

    Now, I don't think that I need this class first results statement as in my first screen I call you just this screen like this:

    getUiEngine().pushScreen(new ResultsScreen(String.valueOf(qc.getLatitude()),String.valueOf(qc.getLongitude())));
    

    I think I'm calling and declaring the second screen correctly that the code is certainly get there.  There is just something to do with this setText.  What I need to do kind of the enterEventDispatcher () inside the ResultsScreen class?

    Also, I tried to do just the invokeLater by itself and the synchronize (getEventLock) by itself and kept getting the error each time.  It seems that no matter what I do, it always says that I'm not holding the lock on the event.

    I realized what the problem was.  When I called the getUIengine (.pushScreen), I was outside the event thread and so I had to wrap this call in a getAppLock as well.  When I was debugging before she looked like she came all the way to the setText (I'm sure that was the case somehow) and then wrong so I don't think that the appeal was the cause of the problem.

  • How to add a second connection of the user with windows 8

    How to add a second connection of the user with windows 8

    Go to the Control Panel, then click on change the Type of account in respect of the accounts of users and parental control.  Beneath the box with user accounts, there should be a link that says add a user account.  Click on that and follow the instructions to set up another user.

  • Only one instance of the same function call button?

    I have 4 instances of the same key on a single layer on a timeline of the "coverflow_mc" mc named 'ThatsMe_btn_a' to 'ThatsMe_btn_d' IE the same button, same position... He just changing the name of the instance on 4 key frames. Why he calls the function fine for button but not to b, c or d? There is a stop on each of these frameworks and I can see the SWF that it prevents the correct images.

    Picture 7.png

    function thatsMe() {}

    right = new Sound();

    right.attachSound ("right");

    right.start (0,1);

    trace (subTotal);

    }

    _root.coverflow_mc. ThatsMe_btn_a.onRelease = function() {}

    subtotal = 2

    thatsMe();

    };

    _root.coverflow_mc. ThatsMe_btn_b.onRelease = function() {}

    subtotal = 1

    thatsMe();

    };

    _root.coverflow_mc. ThatsMe_btn_c.onRelease = function() {}

    Subtotal = 3

    thatsMe();

    };

    the other buttons do not exist when your code runs.

    to remedy this, make sure that the other buttons exist when your code runs.  You can disable their visible property, so they cannot be seen.

  • How can I access all instances of the itemRenderer in a specific DataGridColumn?

    How can I access all instances of the itemRenderer in a specific DataGridColumn? Or, if I have a rowIndex and columnIndex, how do I get the itemRenderer to these clues?

    I use States to change the display of my itemRenderer of a TextField of a PopUpMenuButton. What I was trying to do was change back the display of all the other itemRenderers visible in the column of the textfield, when one of the itemRenderers displays the PopUpMenuButton.

    I tried to loop through all of the itemRenderers in the column and casting them as the class I was using and then by setting the currentState, but, it wasn't good performance wise and required too code. I simplified it listen to a change on the listData owner event (in my case a DataGrid, but any component ListBase) and by setting the currentState to null when it is triggered. Works like a charm.

  • How can I make the < Instance name > the same as the name of the clip in an animation.

    Hi, I'm a moderator for a small game project and I have a very big problem. Even if I used flash for animation for a long time, I am a newbie when it comes to something technical. I just got a request to make of each video clip I use to have a uniform < Instance name > in each frame of the animation. Only if they have told me that earlier... Y at - it an easier way to do the < Instance name > the same as the name of the clip another that you enter manually. I have 16 characters with 12 parts of the body with 20 animations each with approximately 6-7 frames for each part of the body, it will take me months and nightmares evey night enter everything by hand. Please help me keep my sanity!

    I don't know if I explain properly, so here's a picture:

    Instance.jpg

    Thank you!

    I don't know a easy way to do it.

    you could do a file jsfl to do, but it is not for beginners.

  • Trigger two FPGA instances at the same time

    I have a basic FPGA code that transmits the bits of data on a serial (RS-485) bus, the code is written so that it expects in the first State of a machine to States in a single-cycle timed loop.  After a certain trigger, he begins to read a FIFO containing data and sends the data on a line of Tx.  It does this until all bits are send and then it goes back to the first State to wait for the next trigger.  The relaxation is necessary because windows must fill out first before the FPGA FIFO can start sending.

    I need two instances of this code runs, because I have two buses of com (one is redundant).  So I use the FPGA code as a Subvi and I wrote a main FPGA vi to call two separate instances of the Subvi in parallel.  A regular window vi wrote on the FIFO for bed FIFO for Rx and Tx.  No problems so far.

    The thing is I start two transmissions in 200nS of each other (Yes, nanoseconds).  Windows will write two FIFO in parallel, but the timing is 4uS apart, too long.  I tried implementing a Boolean flag in the Subvi FPGA, but windows can not write directly on the control of Subvi.  FPGA won't allow (the Write function is grayed out).  I tried to use a FIFO for a flag, but the problem is a race condition.  One of the instances is first read FIFO and he destroy.  The other can't read.  I need a common trigger point to be used by the two instances of Subvi.

    My final solution was to use a memory in the Subvi FPGA and digital control in the main FPGA vi.  Windows write in numerical order, it may because the control is in the main FPGA vi.  Inside the main FPGA, I run a timed loop that looks for digital to be zero.  If so, it writes the value into the location of the memory used by the Subvi FPGA.  After awhile, the principal wrote a zero back to memory to prevent the Subvi is restarted, as well as to write a zero for digital to reset.  This repeats, waiting for windows to write in digital again for the next transmission.

    I had to do it this way because sometimes I want to pass on the bus, and sometimes just one or the other.  Numeric values are used to determine which to pass on.  Now, the transmissions are starting to almost exactly at the same time, 1 or 2 nanoseconds apart.  But the trigger process seems very silly to me.  I was wondering if there is a better solution.  I'm pretty new to FPGA.

    tbob wrote:

    Basically, I did the same thing using FPGA memory.  Windows I am writing for a digital control that resides inside the main FPGA vi.  In the main FPGA, I write in the memory.  Inside the Subvi FPGA, I read the brief and decode the value to use either one or the other or both buses.  After fool with it for awhile, because reading Memeory needs to use a shift register (probably because it takes a whole cycle of clock), I had to work.  The two bus trigger at the same time.  I guess it's not really important if I use a FIFO or if I use the memory.  The main problem is that I write Windows at the hand of FPGA, then the hand of FPGA for the Subvi FPGA.  Then the time is right for what is the Subvi is.

    There are some advantages to the use of two FIFO on your approach.  First of all, you don't have the change of register for the memory location.  Secondly, we should not worry that VI is responsible for compensation to the memory location, or do, you run the risk that one of your subVIs run twice, or not at all, if the memory is not erased at the right time.  Perhaps most important, you'll save yourself space on the FPGA because you will not need arbitration - the additional code that is added when two parts of the FPGA try to access the same resource at the same time.  In your case, both instances of the Subvi access the memory block at the same time, so the FPGA compiler adds additional logic to avoid conflict.  If only read you the memory block in one place and just write it in one place (reading and writing can be different loops where subVIs) there is no need for arbitration.  Using two FIFOs, you can keep independent and avoid the conflict resolution code.  See the help for the "arbitration" for more details.

  • Several instance to the same server with same ORACLE_HOME and same SID

    Hello gurus, reduce costs my company looks to reduce the backup servers and the databases consolidade waiting on big 2 or 3 servers to reduce oracle licenses.
    It is that I have about 30 cases with SID same how to configure it to run as 10 instances with the same SID, ORACLE_HOME in the same machine? is this possible?

    will run oracle on unix HP - UX 11r2

    BR

    TI

    Right. Each database will have own SID. With multiply tnsnames.ora and listener.ora all have entries for each standby.

    If the folder structure is different from primary then the DB_FILE_NAME_CONVERT and LOG_FILE_NAME_CONVERT parameters are used to convert to the new locations.
    These two taking input in two, the front of the location and the location after.

    Example:

    DB_FILE_NAME_CONVERT=('/u01/app/oracle/oradata/RECOVER2', '/u01/app/oracle/oradata/RECLONE','/u01/oradata/RECOVER2','/u01/oradata/RECLONE')
    LOG_FILE_NAME_CONVERT=('/u01/app/oracle/flash_recovery_area/RECOVER2', '/u01/app/oracle/flash_recovery_area/RECLONE')
    

    Standby for each primary SID can be all that you need. The DB_NAME parameter would be the same on both, but DB_UNIQUE_NAME would be different.

    Who is?

    So, if I have two PRIMARY and standby database, Eve will have its own password, its own file INIT file to its own directory structure (but it could be the same).

    Best regards

    mseberg

  • Can someone direct me to resources on how you get TWO esx servers to the same storage array?

    Hi all

    I use:

    2 x Compaq DL380 G2 with 5i

    cards controller 5300 AND attached to the base storage Bay

    STORAGEWORKS ENCLOSURE 4354R RM DOUBLE PORTS U3 (not yet pregnant

    compatibility list).

    The first server appears to see the good in the console of the virtual server storage Center.  The second server will see s for only its own storage room tho.  How do both to see and use the same storage.  The concept is new to me, but trying to learn.  Is there something I need to see the same storage in the virtual Center for TWO machines esx Server?  All IM just not in the right place?  Thank you.

    http://communities.VMware.com/thread/78873 was a previous thread on this can enlighten us. Looks like the 4354R has the bus is divided into 2 x 7 disks and each connector in the back can 'see' 1 of the two buses. The quickspecs (http://h18000.www1.hp.com/products/quickspecs/10624_div/10624_div.html) refer to "... allows access to two areas of storage separated from two different servers. So the first "thing" would be to get two buses attached together inside the unit so that the two connectors on the back see all readers, you must get the endpoint SCSI disabled on the device (you want termination on each 'end' of the cable that is two SCSI adapters in the servers).

    While you might be able to get the 4354R shared between the two ESX hosts, you can also get all the benefits of the shared disk + the possibility of vMotion, etc. by implementing the 4354R known as iSCSI or NFS storage. It also swings you back to something that is 'supported '. To do this, you have two approaches

    1. Fix 4354R on one of the ESX boxes, create a virtual machine that has access to the entire disk on the 4354R and run something like OpenFiler in the virtual machine to 'share' the disk via NFS or iSCSI

    2. Set up a 3rd server if you have one available and run the version of "bare metal" OpenFiler, or install Linux or OpenSolaris distribution and configure NFS and/or iSCSI target.

  • How to create multiple web photos on the same page albums

    What do I want? A single page web with a title, then a table with the winners of the first rank (images), then a title followed by the winners of the second rank (images), followed by a title with honorable mention (images) etc.

    With CS3 on a Dell Windows XP under ORDERS, I click on "Create of Web Photo Albums" and am able to do the winners of the first rank. ((He opens the Fireworks very well and creates the web album.) How can I create album of the winners of the second row on the same page? When he asks for the landing page I don't see where he give this exact page, if it creates a separate page. If I copy and paste the entire page 2 on the first page, I run into trouble. Thanks for your help.
    Diana Hunter

    Hi Diana,

    I am a professional photographer and doing my finished site published. I've used Coffeecup photo library. You can create several albums on the same page. Do a Google search at the address. It's easy, inexpensive, and it works. I tried to do with the Gallery of photos of DW and fireworks - but could not do things. CC uses Flash and Javascript.

    Good luck

  • How to show 2 web pages at the same time

    How to split screen 2 sites at the same time to allow to work in both directions easily?

    You can watch one of the following extensions:

  • How can I disable all tabs at the same time?

    How can I disable all tabs at the same time with the IMac?

    Ask yourself how to close Firefox with multiple tabs / windows open?

    Firefox menu > exit.

    Or, you try to do something else?

  • 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

  • Portege M400 battery does not show the true situation

    I had a M400 for quite awhile. It was working fine when I got it. At that point, I was running Vista RC1. After Vista RTM was released I was however not very good battery life (40-50 minutes at 100% load). At first, I thought that the battery had gon

  • Satellite A210: WIFI connection disconnects after a time of undefinied

    Hello I have a problem with my A210.I bought a few days ago, and til the first start, I had problems with the WLAN connection. It works very well, and after a time of undefinied, the connection is lost. The only solution to solve the problem immediat

  • signal level for pulse width measurement

    Hello I am able the pulse width with the meter M6251 (CI pulse width) I understand that the digital input works on the TTL levels (0, low 8V 2, 4V high). Can you say exactly in which the level of signal pulse width is measured? Thank you Ralf

  • Auto tune

    I've been running the auto tune Assistant in the lab windows cvi PID and can't seem to find how to determine if the user has canceled the operation. Is anyway to determine? I'd appreciate any help! Thank you

  • Email received on a critical security update (I think that viruses containing)

    HI people Just got an email (I think that scam/spam) on a critical fix from MS OS.  Don't know where this report. ============================================================================================================= Dear Microsoft customer, P