Dynamic FG in of multiple called vi

I have an application in which the primary vi, I load any incoming number of instances of the same vi and its façade.  Each instance of these "Sub main" environment vi, I am trying to assign their own index in a table functional global cluster, like a global local, that can be called within each sub - vi of each main secondary instance.  This is so that each instance of the outlet auxiliary and their subvi can access their own set of variables, constants, tasks, etc. from the main FG even.  The problem that I am running is the way to label each vi reading from / writing of such Mt so that the read/write data are placed in the index suitable for the main officer of the parent of this vi.  I thought to be attributed to each hand under a tag in the title of their window and using the "parent of the appellant get" package openg read this tag and index the FG, but that would mean I have to tag each vi called in Sub main, and when the final vi children are N levels ranging from the main secondary It can get hairy.  I feel like I could be overlooking something really simple, but it has not yet made for me.

Thank you very much for the help!

It reminds me of the nugget of Ben a few years where he created a number of dynamic independent references with the used small case live

Rather than the colored boxes, you could generate FGVs

EDIT: When you create your Sub Main screw, you use VI models? Otherwise, they are a very good way to manage dynamic screw clones

Tags: NI Software

Similar Questions

  • Application of the rules to Instances of entity in a sequence (multiple calls necessary?)

    Hello

    In my OPA team, we have a situation in which it would be useful to be able to run a series of calculations on a set of instances sequentially. We wonder if there is an acceptable method for this in a single call to a modules, because the OPA does not allow a loop or a sequential processing of data in a way that seems obvious.

    Context:
    Consider a situation involving a computation that can be performed on a single Bill, but we have a series of bills to deal with. For example, let's say that there are a certain amount of a deduction or "co-payments" that must be subtracted from the large bills, but is deducted in greater quantity of invoices received earlier (rather than be distributed also among them) and then will deplete fairly once was subtracted in all. In this case, it is not sufficient to use a statement of the type «for each of the Bills...» "because the conditions for the calculation have to change with each invoice. This seems to require the ability to browse an ordered list, but we do not know if something like this is possible (without violating an axiom or advised).

    Ideas:
    The best idea we could come to would be to use a time stamp to identify the Bill earlier as a starting point and then use the function of 'unknown' to force the rules to calculate the deduction for 'other' more former Bill in sequence. The current solution will be to call several times modules by an external script that loops through the Bills.

    To sum up, we wonder whether there is an acceptable approach to apply a set of rules to an entity instance before to apply the same rules to others, without requiring multiple calls for modules.

    Thank you!
    -Patrick

    Published by: Patrick guess on July 6, 2011 19:11

    You started down the right path. To quickly answer questions, there is no need for multiple calls to the basis of rules, no for ranking explicit rules or data.

    The challenge when using unordered rules / systems of determinations is out procedural thinking (that loops or sequencing data explicit is required). The solution is by expressing the declarative logic equivalent (which requires no sequence with the right answer). In this case, consider the calculation from the perspective of one invoice at a time and write the rules that express properly how much to pay, what is the quota, etc. For the batch processing where running tallies are needed, there is something practical for use in the rule based systems - conclude the subtotal per each item being counted (for example, remaining annual quota through each invoice). This approach allows the declarative rules which "defined" the method calculate the score by a Bill, so that the following invoices can use the score of previous bills. Unfortunately, the description abstract approach always sounds more confused, so here is an example of rule of pseudocode that can communicate the key elements of the approach...

    Assume:
    Bills have numbers (or dates/hours) which can be used to conclude an absolute order for all bills (we will use Bill in ordering them in this example)
    Remaining annual quota of the person is the initial amount of copay remaining before the current batch of invoices is treated
    Each invoice must include a co-payment of $50 (for simplicity, although this could be concluded by rules and vary based on the services provided, etc.)
    Assume all bills are more than the share (again to simplify this example, this could be dealt with in the rules of both conditions)
    The main objectives of the basis of rules are to determine the share of each invoice and the balance sheet of the share of the person (i.e. copay they may still have to pay this year) after treats a batch of invoices.

    Pseudo rules to get the general concept:

    Set the order in which the bills need to be addressed...
    -The Bill (prior Bill) is a member of previous invoices of the invoice if the s prior invoice ID< the="" invoice's="">
    -The Bill (later Bill) is a member of the subsequent invoices of the invoice if the invoice later s ID > ID of the invoice
    -The Bill (Bill immediately preceding) is a member of if immediately before invoice
    the immediately previous invoice is a member, if the prior Bill of Bill AND
    the number of previous invoices of the invoice with ID > ID of the invoice immediately before = 0

    To conclude the first remaining share of each invoice... put them in a table of rules, so they can conclude the same attribute but use different logical formulas
    -Initial remaining Copay of the invoice = remaining share of the person if the number of the invoice is immediately previous bills is 0 (i.e. the first Bill in the batch)
    -Initial remaining Copay of the invoice = share of remaining final invoice of the immediately previous invoice (i.e. each ' initial rest copay "is the same that the invoice immediately before the 'final remaining copay)

    A table is used to define how much share for each invoice - two possible scenarios...
    -Share of the invoice = $50 if the original invoice remaining share > = $50
    -Share of the Bill remaining share = original invoice if the original invoice remaining quota<>

    A rule to determine the final remaining share of each invoice (i.e. after subtracting the share upward through this invoice of the annual overall amount of the person)
    -Copay remaining final invoice = remaining share original of the invoice - share of the Bill

    A rule to determine the person remains final share (i.e. After all invoices in this batch have been processed)
    -remaining share final person = final remaining share of the Bill if later the invoice s County bills = 0 (i.e. the final copay remaining of the 'last' Bill in the batch)

    Note that some attributes and relationships above are not absolutely necessary (i.e., it is not necessary to postpone the two remaining original co-pay and determine a final remaining share by invoice, but it retains the logic of each a little more simple rule).

    Hope that helps...

  • Dynamic WHERE Clause with multiple ORs

    I need to build a dynamic SQL statement such as the clause WHERE looks / works as follows:

    WHERE x LIKE '%1% ' OR LIKE '%2% ' x OR x LIKE '%3%...

    I can do the above, no problem, but I wonder if there is a better way?

    Thank you

    Mark

    Hi, Mark,.

    You should not need dynamic SQL for that.

    For example, if you are still interested in substrings of characters suingle, and you get entry as a unique string called str (e.g. '123' it which means you want to find the rows where x contains '1', '2' or 3'), so you could say:

    ...

    WHERE (x REGEXP_LIKE

    , '[' || str || ']'

    )

    I hope that answers your question.
    If not, post a small example data (CREATE TABLE and INSERT statements), a few entries and also post the desired results of each input given the same data.
    Explain, using specific examples, how you get these results from these data.
    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: https://forums.oracle.com/message/9362002#9362002

  • Use Dynamic Actions with pl/sql, calling a javascript alert function

    Hello

    I use Apex 4.0.1.00.03 with IE7.

    The problem I have is:

    I am converting an Oracle Forms application that has a lot of logic in it. In the application forms, it is a pl/sql function, based on a If/else condition call a popup alert box, which displays a warning message. He called pl/sql functions that return raising to the IF statement.

    Example of pl/sql code:

    If check_records() > 0 Then
    message to the alert box
    ElsIf TypeA_record then
    message to the alert box
    On the other
    message to the alert box
    End If;

    I need to replicate this functionality to the Apex 4. I tried to create dynamic Action on a page element, using a pl/sql function, however, when I call the popup javascript, this code not popup an alert box. I need the pl/sql to be run when the element of the page changes, not when the page is sent.

    The code I used to test the pl/sql code, which does not work in dynamic Actions > pl/sql is:

    Begin
    HTP.p ("< script type =" text/javascript"> '");
    HTP.p ("alert ("today runs javascript code!");"
    );
    HTP.p ("< /script >");
    End;

    I need to create a pl/sql function that can do alert areas based on an IF condition.

    Could someone point me in the right direction? Using dynamic shares the best way forward? I need to trigger on a page element, change the value.

    Works fine now.
    In the javascript code, I changed:

    get.addParam ('x 01', $v ('P105_PREP_TYPE'));

    by

    get.addParam ('x 01', $v ('P1_PREP_TYPE'));

    P1_PREP_TYPE is the correct name of the element.
    Now when I choose the OTHER, 1 message.

    Concerning

  • Y at - it re Hello Forefox ability to make multiple calls at the same time as the Conference call? Talk to the whole family together?

    Great love to the people behind this wonderful addition! I also want to be able to call my family threw away and we all in the conversation together. It seems right now it's just a one called. Will there be the ability to have several people on a call at the same time?

    Hi, when firefox Hello usable only for a conversation between two people.

    multi-party videoconferencing is on the roadmap to long term, but it will take a lot of Engineering (Hello firefox is based on the webrtc standard which is a peer-to-peer protocol between two machines-multipart calls can be a rather difficult thing to understand on this basis).

  • resetting the markers for multiple calls to invokeApplication BBMaps Invoke.APP_TYPE_MAPS...

    Hi, how can I reset before BB Maps markers

    Invoke.invokeApplication (Invoke.

    Call the APP_TYPE_MAPS, args)?

    Problem is that when I call BBmap using invokeApplication from code, using new or same, places it seems that old markers are not removed from the card and I want to show that NEW locations.

    Thank you in advance!

    Add "" at the beginning of your string containing your locations.

    Perhaps you have to name your document previous location, I my not quite sure

    Here is a link:

    http://docs.BlackBerry.com/en/developers/deliverables/1181/GPS%20and%20BlackBerry%20Maps%20Developme...

  • TMS 14.3 - auto connect problem - multiple call attempts

    Hi people,

    I have a client with an environment with TMS 14.3, conductor XC 2.2, VCS 7.2.2 TP Server 3.1 and CUCM 8.6.2. They have several items on VCS and several endpoints of CTS/TX registered to CUCM Cisco and Polycom endpoints. There is a trunk SIP between CUCM and VCS. Conductor is integrated with VCS by using the B2BUA deployment model. TP server is behind the driver used as multipoint resource only for conferences scheduled through TMS.

    We are having problems when planning a Conference at TMS using type "Auto-connect" and setting driver to dial a number to the selected participants. For some end points when the meeting starts, conductor made several calls try to participants, even after participants answering the call. For example, conductor connects to an endpoint 3000 CTS, CTS answers the call and connect to the meeting, but a few seconds later, conductor's call another attempt at the endpoint, then endpoint answers the second call and put the first call on hold.

    This problem occurs for the following parameters:

    • Endpoints of Polycom HDX series
    • CUCM items of endpoint CTS/TX
    • Outside dial participants (those selected on the tab 'External' to the planning page)

    The problem does not occur for any endpoint TC registered in VCS.

    As a troubleshooting step, the client was trying to configure TMS to try to connect to the participants once (using the "Attempts to connect for scheduled calls" setting value 1), but the issue still occur.

    Tomorrow, I'll be on the customer's site to check if this strange behavior has been generated by TMS or by the chef himself. I really think that it is some sort of bug. I don't know that their environment has been configured properly according to the Cisco documentation, because I was the person who made the project.

    I'd appreciate any suggestions really.   =)

    Thanks in advance.

    Paulo Souza

    My answer was helpful? Please note the useful answers and do not forget to mark questions resolved as "responded."

    Hi Paulo,

    a few days back we had seen this problem and I filed the bug "CSCui90143."

    Currently, we anticipate that this problem occurs because the MSD is not able to understand the message of feedback from the conductor.

    I hope that clarifies. I don't have to if you want to be able to access the bug or not.

    Rgds

    Alok

  • Dynamic Source NAT for multiple POOLS

    I'm dynamically creating Source NAT with a few pools and Access-list to be translated according to the access list. However, when configure some ACL do not anything. And the ACLs don't "corresponds to" No. I know it would be the right way to apply the ACL at interface with 'ip access-group in and out', but in this case would be impossible to apply an ACL with ip access-group command.

    FurthermoreI tested to the creation of a roadmap named TEST with all the ACL; but impossible to create all the «ip nat inside source road-map...» "with the same name of the road-map. Also check the cisco example: http://www.cisco.com/c/en/us/support/docs/ip/network-address-translation... ...

    Set the configurations.

    I need your help

    Thanks in advance!

    I know that common sense would be to apply the ACL on interface with "ip access-group input/output" However in this case would be impossible to apply an ACL with group-access ip control.

    This would not be the right way. An acl applied to the interface is only for filtering of the traffic through the router.

    Try to remove the keyword "log" of your ACL and retest.

    Jon

  • Avoid multiple calls to the same table in SQL

    Hi team,

    can anyone help me on a technical level with the SQL below.

    SELECT MOR. ACE BLEI_CK BLEI_CK FC_CMC_BLBL_BILL_SUMM INNER JOIN ST_ALL_IFP_MEDCR_SUPPL_STG STG MOR ON MOR BLEI_CK = STG. BIL_ENTY_CK AND MOR. BLBL_PAID_STS <>'3' AND MOR. BLBL_DUE_DT = (SELECT MIN (BLBL_DUE_DT) FROM FC_CMC_BLBL_BILL_SUMM WHERE BLEI_CK =. MOR BLEI_CK AND BLBL_PAID_STS <>' 3') INNER JOIN FC_CMC_BLDF_BL_DEFINE BLDF on MOR. BLEI_CK = BLDF. BLEI_CK AND to_date (January 17, 2012 20:32:25 "," MM/DD/YYYY hh24:mi:ss') BETWEEN BLDF. BLDF_EFF_DT AND BLDF. BLDF_TERM_DT WHERE MOR. BLBL_DLNQ_DT + (BLDF. (BLDF_GRACE_PER-2) < to_date (January 17, 2012 20:32:25 "," MM/DD/YYYY hh24:mi:ss') GROUP OF MOR. BLEI_CK ORDER BY BLEI_CK

    Here, the FC_CMC_BLBL_BILL_SUMM table is called two times in the same query. How to avoid this problem by using any means or Analytics

    Thank you

    something like this:

    WITH Boop AS (SELECT BLEI_CK

    BLBL_DUE_DT

    BLBL_DLNQ_DT

    ROW_NUMBER() over (ORDER BY BLBl_DUE_DT DESC BLEI_CK PARTITION) AS date_rank

    OF FC_CMC_BLBL_BILL_SUMM

    WHERE BLBL_PAID_STS <> '3')

    SELECT MOR BLEI_CK AS BLEI_CK.

    MOR

    INNER JOIN ST_ALL_IFP_MEDCR_SUPPL_STG ON (MOR. BLEI_CK = STG STG BIL_ENTY_CK)

    INNER JOIN FC_CMC_BLDF_BL_DEFINE BLDF ON (MOR. BLEI_CK = BLDF. BLEI_CK)

    WHERE MOR. DATE_RANK = 1

    AND MOR. BLBL_DLNQ_DT + (BLDF. BLDF_GRACE_PER-2)< to_date('01/17/2012="" 20:32:25','mm/dd/yyyy="">

    AND to_date (January 17, 2012 20:32:25 "," MM/DD/YYYY hh24:mi:ss') BETWEEN BLDF. BLDF_EFF_DT AND BLDF. BLDF_TERM_DT

    GROUP OF MOR BLEI_CK.

    ORDER BY BOOP. BLEI_CK

    /

    HTH

  • Multiple calls to the same mapid

    I have a scenario where there are six dialog boxes that have a help button and should so a CSH topic. My first thought was that I just got a help topic for each dialog box, but then I discovered that each of the six dialog boxes are more or less identical and so can be easily handled by a single help topic. So from where I sit, my options seem to be:

    • Several topic ID is a unique mapid (and thus the topic).
    • ID of a topic and mapid and let the developer do all the hard work ;-)

      Before going to one of these lines, I was wondering how others have dealt with similar scecnarios. What is 'best practice' and pitfalls of each approach. I produce a CHM file. Thanks in advance.

    Colum,

    I have a lot of card numbers generated automatically by our development tool and all are mapped to a single topic. Since, in our society, I do .hh files so .ali, I can give you a time frame at both ends.

    The developer doesn't have to be the one to determine whether multiple dialogs can be described in the same section. My experience with the developers, it's that they think each dialog box is intuitively obvious. The developer will likely have their development tool automatically assign card numbers and each dialog box will be different.

    It is not possible for the .hh file contains a unique mapID for several numbers on the card - the developer cannot set a mapID to two different numbers map - so that you will have to do it at the level of the .ali files. You can easily run multiple mapIDs to a single topic, but I don't know how RoboHelp manages this because I do all of the help sensitive to context in WordPad (which is not as difficult as it may seem). I know that the EditMapIDs dialog box in my old (v.8) version of HR is terrible but I expect much improved over the past fifty years...

    John

  • Cannot call a dynamic report link action after dynamic refresh

    I have a shopping car, that I'm trying.  (apex 4.2 database 11 g 2)

    In the basket, I have a link change which performs the dynamic action to open the modal page plugin.   I also have a button on the region to do a region of dynamic action refresh if you modify the cart in modal region.  After the updating of the region, I can no longer click on the link Edit (nothing happens)

    the link is defined as class = "lines" onclick = "return false".

    and lines is a dynamic action of jquery to call the page target in the link for the modal skills builders page.

    I checked the JS console and I saw no errors... any suggestions?

    Thank you

    Scott

    Hello

    When the page is loaded, Jquery listen event trigger on document.ready

    But in your case, when you refreshed your region, the values on the screen are from this point while it was loaded before.

    Go to your dynamic action

    Change extended the event live or dynamic.

    Scope of the event: DYNAMIC or LIVE

  • problems in C++ dll call

    Hi, I compiled a dll in C++ to write data in a shared data segment, and it works well in Labview. Then I try to call the Dll in C++, it can be built successfully, but will break in the end. I have this problem since almost a whole day and could not find the solution.

    Here are the source files for my Dll and the program calling dynamically.

    DLL:

    Calling program.

    Problem solved.  The work for Labview and C++ dll must be like that. The shared data segment must also be declared as funtion and with 'extern 'C' ' coming. In addition, Labview can read only pointers from dll.

  • Is there a way to store the State of the vi loaded dynamically without resorting to tricks Subvi?

    I have a VI to open a UDP connection, data recovery, and then close the connection:

    Set the State to 1 opens a UDP connection.

    Definition of State 2 retrieves a UDP packet. Most of the boxes above is for the manipulation of data.

    Placed at 3 farm the UDP connection.

    Now, calling this vi as a sub - VI works fine:

    But calling the vi dynamically only:

    The second call inside the while loop will raise an error. Apparently, bibliographic are not valid from one call to the other when you call a vi loaded dynamically. What I need to know is, is there a convenient way to get around this?

    Hello

    The call dynamically a VI within a while loop can be pretty bad in terms of performance and I'm not sure it's a good idea.

    But if you really want to do this, using the function "Call by reference node" would be more appropriate in your case (you can find some examples easily).

    Best,

    J.

  • calling external code (instead of dll lib)

    Hallo,

    is it possible to call external functions that reside on a static library (.lib) and not a dynamic (.dll).

    The "call library function node" feature seems to allow only the dll and lib steps.

    Any suggestion?

    Thank you

    No it's not! It is because there is not a single lib format, but in fact each compiler uses its own format of lib. Namely COFF for MS C compiler and various flavors of OMF for Borland C, Symantex C, etc. and ELF for GCC unless you are using a version of target Windows such as MingW who TRIES to follow in the COFF format. So even if NEITHER would consider allowing to bind to libs via the library node call they would be in trouble on what format of compiler to support.

    But it is quite easy to create a DLL from a LIB using the same compiler that was used to create the LIB.

  • DAQmxWriteAnalogF64 clean up dynamically allocated data

    I want to use a dynamically allocated memory in a call to DAQmxWriteAnalogF64.

    float64 * data = malloc (dataPoints);

    ...

    ...

    The call works as expected, but I'm not able to free the memory without error. Even though the task is stopped and cleared, I can't clean up the allocated memory.

    DAQmxStopTaks (taskHandle);

    DAQmxClearTask (taskHandle);

    If (data)

    {

    Free (Data);  / / error

    }

    Hi Chris_c ++.

    Can you show your code to fill the buffer data and passing to DAQmxWriteAnalogF64? If you write past the end of the buffer, allocator memory of run-time library C can hang or put an end to the application with a runtime error when you call free(). My guess is that you really need to allocate dataPoints * sizeof (float64) bytes, not dataPoints bytes.

    Brad

Maybe you are looking for