Passing dynamic legends of the program to the program

Hello

I'm currently building a relatively simple program to read the legends back dynamically. Program1 will get the values and subtitle names in a secondary program called Program2 using a method to invoke node. Program1 will then collating the legends and values by using a property node. Ideally, I'll be able to add a structure of the event for both programs, so that I can update the values and stories between various programs.

The problem that I am running is when I change the name of a legend of Program2, the name update does not get reflected back in the first program. I know that LabVIEW can dynamically change a label, but I was under the impression that it was possible with captions. I'm not sure what I'm doing wrong, but I can't get the program to work correctly. Thanks for any comments.

The two programs are attached below.

Hi beginner,

The attached VI shows one way to get the legends of the controls on the façade another VI - this is what you want to do?

See you soon!

Tags: NI Software

Similar Questions

  • How to pass Dynamic values in the LOV

    Dear all,
    Good evening

    I gave to 02:00

    1 is for of the Lov
    1 is for AM pagelayout

    I'll pass the client id for my lov

    This client code receives well the current page

    How to pass the client code to lov

    pls guide me

    Hello

    Copy the following code

    xxcrmCompPersPKVOImpl vo = getxxcrmCompPersPKVO1();
    vo.setWhereClauseParams (null);
    vo.setWhereClauseParam (0, ooportunityid);
    vo.executeQuery ();

    OAListOfValuesBean sb = (OAListOfValuesBean) webBean.findChildRecursive ("xxcrmPeriodicBillingContractLovRN");
    OAApplicationModule am2 = (OAApplicationModule) pageContext.getApplicationModule (sb).

    OAViewObject vo = (OAViewObject) am2.findViewObject ("xxcrmPeriodicBillingContractNoVO");
    vo.setWhereClauseParams (null);
    vo.setWhereClauseParam (0,1001);
    vo.setWhereClauseParam (1,1024);
    vo.executeQuery ();

    Thank you
    Gerard

  • Dynamically Open VI and him pass a parameter to the dynamically open VI

    I want to open a vi dynamically, at the same time I have to pass a parameter to the dynamically open VI. Is it possible to do?

    Thank you

    Chrystelle Roy

    Passionate about LabVIEW

    Check here https://zone.ni.com/reference/en-XX/help/371361M-01/lvconcepts/dynamic_loadcall_vis/

  • Pass fast values in the legend / '- ALL -' filter filter all records

    Hello

    I have 2 questions for a same graph, so I hope it's OK to add them in a post.

    First I created a graph and added three filters in the Select list that are working well, the query is less, problem is that when I change to "- ANY -" I get no data, it eliminated all records as no data is the value of "- ALL -" don't - does anyone know the code to work around this problem?

    My graphic request;


    --------------------------------------------------------------------------------

    Select the link null, data P_MONTH as MONTH, SUM (CALLS) as

    from the DATA. MAIN_DATA

    THE WAREHOUSE WHERE =: P1_WAREHOUSE

    AND ANS_UNANS =: P1_ANS_UNANS

    AND PRODUCT =: P1_PRODUCT

    P_MONTH GROUP


    --------------------------------------------------------------------------------

    As I have several queries like the one above for different options on the same chart, I would like that the legend to show what the user chose every time the options change IE;

    Something like the bold text in the query to display the values in the legend;


    --------------------------------------------------------------------------------

    Select the link null, P_MONTH as MONTH, SUM (CALLS) as "P1_WAREHOUSE". "P1_ANS_UNANS" | 'P1_PRODUCT '.

    from the DATA. MAIN_DATA

    THE WAREHOUSE WHERE =: P1_WAREHOUSE

    AND ANS_UNANS =: P1_ANS_UNANS

    AND PRODUCT =: P1_PRODUCT

    P_MONTH GROUP


    --------------------------------------------------------------------------------

    Any ideas / suggests?

    Hello

    OK - the page looks ok now.

    You had a WHOLE and one entry in the list of categories. I think that ALL were on the list of values at some point definition and Apex had updated it's reference to the LOV was then still which he. I refreshed the LOV page delete this entry, set the return value zero 0 (as all values are numeric - you're dealing with values of salary - you must use 0), added a calculation to the page to set the value of the list to 0 if it is NULL, and erased the SUM() and GROUP BY in the series of the chart (which is not necessary).

    Andy

  • Dynamic effects of HTML like Drop Down the legend and the body does not

    I use TC 2.0, soon to be upgrading to TSC 3.0.  When I try to create Drop Down Caption and Drop Down body elements in FrameMaker and Robohelp update, it does not work.

    I have the text as:

    Drop down menu test legend

    Which I note and go to the Adobe RoboHelp-> DHTML Effects-> menu Drop Down Caption and apply the style of paragraph DropDownCaption to.  I then text like:

    Test menu drop-down body

    Which I pointed out and go to the Adobe RoboHelp-> DHTML Effects-> menu Drop Down body and apply the style of paragraph DropDownBody to.

    I update my Robohelp project (related to my project of FrameMaker) and get a 'clickable' of Test Drop Down legend which I click and Interline additional just pop-up. My Test drop down of the body  text is still there, doing nothing.

    You mind, I can do this in RoboHelp directly without any problems, but then I have the problem of update of the project of FrameMaker and that it get rid of all my work of RoboHelp project. Is it possible to get this working in FrameMaker?

    Please check if there is an empty paragraph between paragraph style Drop Down the legend and the paragraph with the style of Drop Down Body in the FrameMaker document. For RoboHelp, to recognize the link between the two, Drop Down body paragraph must immediately follow the Drop Down Caption paragraph. Avoid any empty paragraph between the two.

    MILIN

  • How to remove a parcel and resize the legend of the plot in LV 8.6 as in this link to an example 7.0 LV

    This VI (ftp://ftp.ni.com/pub/devzone/epd/201150.vi) works exactly as I want to apply for a 8.6 at-, but the property node used in the example is no longer supported.

    I can add/remove sites and resize the legend of the plot with 8.6 using the 'LegNumRows' property, but this property does not behave in the same way.

    It seems like it should be simple, but I must be missing something.

    Thank you to confirm that this property does not work in the same way as in the example when it is used with a XY graph clusters and no dynamic data.

    I left the property node in the structure of the case (just as it was in the original example) while not to jam too when you went to compare two examples - my application does not for the reasons you stated.

    I will implement a legend Manager to ensure the follow-up of the plots in the legend.

    Thanks for the validation test!

  • Legend for the xControl DURATION change

    Normal 0 false false false MicrosoftInternetExplorer4 / * Style Definitions * / table. MsoNormalTable {mso-style-name: "Table Normal" "; mso-knew-rowband-size: 0; mso-knew-colband-size: 0; mso-style - noshow:yes; mso-style-parent:" ";" mso-padding-alt: 0 to 5.4pt 0 to 5.4pt; mso-para-margin: 0; mso-para-margin-bottom: .0001pt; mso-pagination: widow-orphan; do-size: 10.0pt; do-family: "Times New Roman"; mso-ansi-language: #0400; mso-fareast-language: #0400; mso-bidi-language: #0400 ;} "}

    Is it possible to dynamically change the legends running durning xControls? I learn how to use xControls and I am having trouble changing the legends outside the xControl. I want the VI using the xControl to be able to dynamically change the legend of individual controls and indicators in the xControl. I tried to create an array of refNum for my data and bind the refnum controls and indicators of the xControl façade to that, but it was not miserable. Is it possible to create a method that will allow me to change the caption of individual controls in the xControl during execution?

    If I were you, I create a separate property for each part of GUI that you want to be able to rename it.

    Tone

  • get rid of the shadow of the legend in the tab control

    Hello

    I use LV7.0 on W2K and have encountered a difficulty.  Often when I need a text face before being modified programmatically, I'll put a control or the off indicator on the side (out of sight) and serve its legend of the label.  It keeps me from having to find a way to get a reference to a real label... which has always been a pain.  I just use a property node to edit the text in the legend.  My problem is, for the application, that I am currently in train, I need to use a tab control.  If I set the label (caption) in the tab control, it flies over, showing a shadow under it.  It doesn't know if the control is in the tab control only when the control is not in the tab control.  Is there a way to make this stop behavior?

    Thank you.

    Rick

    He's going to do. It was the way it was made to show you that it is not within the tab control. You should note however that when you start your program that the shadow will disappear. The shadow is there when you are programming.

  • Independent migration of LWAPP and dynamic interfaces on the controller 4404

    We are currently migrating from a stand-alone environment. Access points currently take wireless clients and put

    their right in separate VLANs that SSID that they associate with. Each SSID is another customer

    So we are essentially acting as a service provider. We try not to get involved with the functions of layer 3.

    Each range of IP of SSID is ordered by a customer or a third party. So far, we didn't specify an address from DHCP server, the client is getting on one VLAN and it is up to the customer to assign their own intellectual property details.

    Now that we're migrating to LWAPP I found the following-

    -J' need to specify an IP address for each dynamic IP address for each WLAN

    -J' need to specify a DHCP server for each dynamic IP address for each WLAN

    Because I have no control of the PPE, I put in the details of false dynamic Interface but the correct address of the DHCP server.

    It seems to work.

    My questions are as follows:-

    1 / is there a way I can simply place clients in a VIRTUAL LAN using LWAPP equipment so we didn't

    get involved with Layer 3 configuration?

    2 / I noticed when I got a DHCP address on a test laptop client, the DHCP server is 1.1.1.1. The only thing in the network that I know is the virtual IP address of the controller that is used for groups of mobility. Is this normal?

    3/on the controller is the query DHCP has passed from the management or the dynamic interface?

    3 / What is the IP address of the dynamic interface actually used for? At the beginning I forge the DHCP server use it as a source, but my setup works with a bogus address.

    Welcome to the world of LWAPP! It's a pretty confusing to get, so I hope I can answer some of your questions.

    Before directly answering your questions, I want to give you a little if a glimpse as to how traffic flows in LWAPP environment. All traffic LWAPP is placed in a tunnel to the controller (this is why LWAPP APs is no longer need to switch trunk links). Traffic is désencapsulé and sent to the appropriate interface switching environment (management or dynamic). The source address for traffic is changed to match the control interface for traffic must return to the controller in order to get the customer. For example, IP addresses are required on the controller.

    1. think of the controller as a layer 3 switch that masks the identity of its customers. By sourcing all traffic from itself, it ensures that all traffic comes back to him, how it forwards traffic to the client via the LWAPP tunnel. False addresses you entered are actually being used on the network, then you will want to register those with the people in charge. If someone uses this address, it will eventually drop your wireless network.

    2. it is normal. The virtual IP address is also used for DHCP service. Because the controller blocks all emissions, it must the DHCP proxy for each client, where the virtual IP address as well as the need to specify the address of the DHCP server.

    3. I don't know what interface it gets passed on. Maybe someone else can answer.

    4. see above for a description of what it is.

    One last thing. What, exactly, are these fake addresses to which you refer? They are real addresses which comes with? They correspond to the VLAN that you places on? You give them suitable default gateways?

    Don't forget that by configuring these, they are real addresses on your network that you should be able to ping. And yet once, if the address is duplicated on the network, it has the potential to get to the bottom of your wireless network.

    Let me know if this can help, and if you have any other questions!

    Jeff

  • Dbms_parallel_execute.run_task of execution and pass several Params to the target procedure

    Hello

    I look for my hand on the dbms_parallel_execute package in Oracle 11 g Release 2 and needed help to find a way to pass additional parameters

    the target procedure when it is called from dbms_parallel_execute.run_task.

    Please see this link for an explanation of the use of the package:

    https://asktom.Oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:4248554900346593542

    Usage example:

    declare
      l_var NUMBER := 0;
    begin
      --Sample execution from above link
      dbms_parallel_execute.run_task
      ( task_name      => ‘PROCESS BIG TABLE’,
       sql_stmt       => 'begin serial( :start_id, :end_id ); end;',
       language_flag  => DBMS_SQL.NATIVE,
       parallel_level => 4 );
    
      --Desired execution
      dbms_parallel_execute.run_task
      ( task_name      => ‘PROCESS BIG TABLE’,
       sql_stmt       => 'begin serial( :start_id, :end_id, "HOW TO PASS l_var VARIABLE HERE" ); end;',
       language_flag  => DBMS_SQL.NATIVE,
       parallel_level => 4 ); 
    end;
    /
    

    Now, for the procedure of series, apart from the parameters start_id and end_id, we have additional params such as l_var.

    Can someone help me please to solve this problem?. Any help on this approach would be highly appreciated.

    Thank you

    Hardcode the parameters in the dynamic statement as literals. After all, these globals are set of constants for the task parallel, correct?

    Just make sure that you are coding explicit data type conversions. For example

    pqStatement := 'begin DoSerial( startRow => :start_id, endRow => :end_id, day=> to_date('''||||''',''yyyy-mm-dd'') ); end;';
    

    Of course, also explicitly caste global parameter to a string when concat'ing in the dynamic instruction of the PQ.

  • Problem with dynamic setting where the clause OFA

    Hi all

    I have a view object with the following query:

    SELECT rownum LINENUM,

    B.line_id LINE_ID,

    B.INVENTORY_ITEM_ID INVITMID,

    B.QUANTITY_DELIVERED PICKQTY

    MTL_TXN_REQUEST_HEADERS a,.

    MTL_TXN_REQUEST_LINES B

    WHERE A.HEADER_ID = B.HEADER_ID

    AND A.MOVE_ORDER_TYPE = 2

    AND "on" =: 1

    AND B.TO_SUBINVENTORY_CODE = NVL(:4,B.TO_SUBINVENTORY_CODE)

    AND A.request_number = NVL(:5,A.REQUEST_NUMBER)

    UNION ALL

    SELECT rownum LINENUM,

    a.wip_entity_id LINE_ID,

    a.INVENTORY_ITEM_ID INVITMID,

    a.QUANTITY_ISSUED PICKQTY

    WIP_REQUIREMENT_OPERATIONS has

    eam_work_orders_v b

    WHERE a.wip_entity_id = b.wip_entity_id

    AND "on" =: 2

    AND a.ATTRIBUTE2 = NVL(:4,a.ATTRIBUTE2)

    and b.wip_entity_name = NVL(:6,b.wip_entity_name)

    I need to dynamically pass a condition to my where clause that I can manage it by setting two binding settings in the query of vo and can pass it on but the problem is the connection variable contains a string like 1311,13112,14445 that I need to spend for a domain like B.line_id in the first query and b.wip_entity_id in the second query , so when I'm passing the string as a value it works fine, but it gives for value separetd by comma prob.

    so I tried passing dynamic where clause, but there is every time that the execution of the first clause only how can I dynamically pass both queries.

    vo.setWhereClause ("LINE_ID in" + wherclause);

    Please help me

    Thnaks

    Deb

    Hello

    Actually I'm passing the parameter to the basic page popup, so in page popup page and the base, I was using the VO even to run then, probably due to that he was running again for all data, so for the basic page I created a new VO and tried to pass the parameter like when clause for questioning now it runs very well Thank you for all your help

  • Dynamic filename in the file adapter

    Hello

    I have an obligation to convey the dynamic file name in the file adapter.
    Is it possible to pass a variable for the file name attribute in the file adapter.
    I'm looking for some options outside %yyMMddHHmmss%,%SEQ%...etc

    Please suggest if someone of you has information on how to put the values of a variable to the file name attribute in the file adapter

    concerning
    Maxim

    Hi Philippe,.

    Yes it is.
    Set the name of the file in a variable, say "fileName".
    Now in your call activity (for the specific fileadapter)-> property tab-> find a property call jca.file.FileName-> in the assign variable "Filename" in the value field.
    That's all... (assuming you are using 11g)

    Arik

    Published by: Arik on June 27, 2012 15:12

  • Export of legend to the screenshot

    Hello

    I am trying to create a screenshot to my graphic option. Including the legend. It seems pretty good so far:

    Public Sub ScreenShot()
    {
    Limits of Rect = LayoutInformation.GetLayoutSlot (SensorPanelGraph);
    var bitmap = new RenderTargetBitmap ((int) limits.) Width, (int) limits. Height, 96, 96, PixelFormats.Pbgra32);

    Rect bounds2 = LayoutInformation.GetLayoutSlot (mainWindow.SPSMI8Legend);

    DrawingVisual dv = new DrawingVisual();

    using (DrawingContext dc = dv. RenderOpen())
    {

    VisualBrush vb = new VisualBrush (SensorPanelGraph);

    VisualBrush vb2 = new VisualBrush (mainWindow.SPSMI8Legend);

    Origo point = new focus();
    Point LegendOrigo = new focus();
    Point LegendSecondPoint = new focus();

    LegendOrigo.X = origo. X + limits. Width - bounds2. Width - 5;
    LegendOrigo.Y = origo. Y + 10;

    LegendSecondPoint.X = LegendOrigo.X + bounds2. Width;
    LegendSecondPoint.Y = LegendOrigo.Y + bounds2. Height;

    DC. DrawRectangle (vb, null, new Rect (origo, bounds. Size));

    vB2. Transform = new ScaleTransform (0.75, 0.75, LegendOrigo.X + bounds2.) Width / 2, LegendOrigo.Y + bounds2. Height/2);
    DC. DrawRectangle (vb2, null, new Rect (LegendOrigo, LegendSecondPoint));

    }

    bitmap image. Render (DV);

    path access String = Environment.GetFolderPath (Environment.SpecialFolder.MyPictures) + @ "\Graph.png";
    using (FileStream outStream = new FileStream (path, FileMode.Create))
    {

    PngBitmapEncoder enc = new PngBitmapEncoder();

    ENC. Frames.Add (BitmapFrame.Create (bitmap));

    ENC. Save (outStream);

    }
    }

    I know that the code is not beautiful, I'm still only experimentig autour however. My main problem is the following.

    The legend has not much room on the GUI, so it sets itself automatically scroll horizontally and vertically on the window if I fill it too. Unfortunately, the VisualBrush object takes a copy pixel by pixel of the UI object, and the exported image, I see only part of the legend that was visible at the time of the screenshot and scrollbars on each side.

    Question: Is it possible to copy all of the legend, as if it had grown to its full size?

    All WPF drawing mechanisms use the size of the layout of the control. To view the complete legend, you will either need to expand the legend in the user interface, or you do not have to use the technique of the question rendering bitmap WPF create item off-screen (of Alex + ra) to do off the screen.

    To develop the legend, it is possible to measure and organize using the desired size of the legend (although this will change on the screen):

    Rect desiredBounds = new Rect( new Point( ), legend.DesiredSize );

        legend.InvalidateMeasure( );

        legend.Measure( desiredBounds.Size );

        legend.Arrange( desiredBounds );

        legend.UpdateLayout( );

    To update off the screen, you'll either need to remove the legend of its parent and measure then as above, or create a new legend with the same settings make.

    Another alternative would be to declare two legends in your UI, one of them now in a hidden canvas (allowing him to full size without the screen on). This would avoid the need to measure and arrange calls to update the page layout (although Visual legend would be silently updated even when you do not use the screenshot feature) manually.

  • Pass a reference to the shared variable

    I use two shared variables in a loop where I write one and read each other.  I need to repeat this loop 5 times, but each loop uses a different pair of shared variables.  These variables are shared between a vi on the computer and a cRio.

    It would be ideal to incorporate this loop into a Subvi where I can pass a reference to the two shared variables in and then read and write in threw these references.  Then I could just call this Subvi 5 times, instead of copying and pasting the loop 5 times.

    Is it possible that I can accomplish this?  I can't find an example that would achieve this.

    Thank you

    If I understand correctly, you can use the mode programmatic access to shared Variables and it would work.

    http://zone.NI.com/reference/en-XX/help/371361H-01/lvconcepts/sv_usingdynvarapi/

    http://zone.NI.com/reference/en-XX/help/371361G-01/lvconcepts/usingdynvarapi/

  • Legends of the table, only showing on stripchart

    1. I selected 4 captions on my stripchart, but don't see that "Trace 1." No other legends are visible. How to get visible?

    2. how to change the text of each legend? I tried the following before and after the declaration of PlotStripChart, but do not see the texts of #X, only a simple legend "Track 1" INK.

    SetPlotAttribute (g_hmainPanel, SS_PANEL_STRIPCHART, 0, ATTR_PLOT_LG_TEXT, 'INK #1');
    SetPlotAttribute (g_hmainPanel, SS_PANEL_STRIPCHART, 1, ATTR_PLOT_LG_TEXT, "INK #2');
    SetPlotAttribute (g_hmainPanel, SS_PANEL_STRIPCHART, 2, ATTR_PLOT_LG_TEXT, "#3 INK");
    SetPlotAttribute (g_hmainPanel, SS_PANEL_STRIPCHART, 3, ATTR_PLOT_LG_TEXT, "#4 INK");

    I get all traces of four showing on the stripchart.

    Any ideas?

    Thank you

    John

    Hi QuerulousJohn

    In order to get the various list items in your legend, you can select the .uir, double-click on your graph of band to change its attributes. Select the Traces, and then if you notice that you can select the number of traces as well as looking at you. For each of the four making it appear on your legend, you need to toggle "Track on the legend" in the lower left corner for every one you want to view.

    To set the text for each item in your legend you can actually use SetTraceAttributeEx (panelHandle, PANEL_CHART, 1, ATTR_TRACE_LG_TEXT, 'text');

    When the Panel, the ID of the control chart parameters /, which trace you reference, the attribute and value.

    If all goes well should get things for you, definitely give if this isn't the solution to your problem.

    Have a great day!

Maybe you are looking for

  • EarPods Remote button link?

    Is it possible to pop the button of the remote control on the EarPods in place, if I take it off? I want to clean the inside, but I don't want to destroy it if I can't put it back. If I remove it, is it possible to pop/lock (attach) the remote contro

  • I remember BOTH my apple ID and password

    I upgraded my iphone to ios9 and now he asks my apple ID and password to activate my iphone and I do not either.  I tried every password I have and I can't get into my phone.  Help, please!

  • Satellite U840W-10 t starts when you open the lid

    Hello world. I recently bought a U840w-10 t. I can solve a problem.When I stopped completely win8, I enabled in the BIOS and in the configuration of toshiba software the option this computer do not START with the opening of the SCREEN. But even with

  • How to copy photos published without them back to the original or drop res?

    How to export or copy the jpegs edited from Photo disk hard mt and keep the high resolution edited the image to be scaled down? If I export the original, it cancels all the editing, I spent hours to do.

  • 192.168.1.1 is removed from the list of DNS servers

    I have a Linksys E3000 and I see the gateway (192.168.1.1) in my DNS server address. 1. why this figure here in the DNS? 2. how to remove from my DNS servers or stop the router insert it into my list of DNS servers?