Changing colors depending on output variable

Hi there,
I am pretty new to LabVIEW, using it for my dissertation at university. I looked for similar questions on this and other forums but can't seem to find an answer.
What I'm trying to do is change the color of a graphic depending on the value of another variable. I'm calculating the temperatures inside a gas turbine, and would like to represent the temperature changes graphically for better understanding. So I have output values for different temperatures, which change with mass flow rate of fuel into the engine. How can I make a graphic change it's colors depending on the value of temperature?
Thanks a lot,
Fabian

Do you mean something like this ? Run the VI and change the value of Thermometer.
Attachments:
Change BG of chart.vi ‏16 KB

Similar Messages

  • Make box that changes color depending on button pressed

    I need to be able to press 1 of 6 buttons that change
    graphics to a page on a single-frame site I'm building. This is the
    first time I've built a single frame site (calling swf's) and it
    seems easy but having the green button fade whatever color exists
    down while fading green up and isn't as easy as I thought. In order
    for it to be "smart" and know what color is there so it can fade it
    (probably even easier way than being color specific - but I
    obviously don't know it).
    Just getting into the AS2 part of flash and trying to meet
    deadlines while learning is hard to do, so thanks for the help!

    Hello:
    Say you have a page that has 2 regions R1 and R2. Each region has a button that when clicked submits the page. The buttons are named B1 and B2. Further, F1 and F2 are the first fields in region R1 and R2. There also is a hidden item named H1 on the page (region does not matter). So, you define a pl/sql page process with a process point of 'After Submit...' with the following codeif :request in ('B1') then
       :H1 := 'F1';
    end if;
    if :request in ('B2') then
       :H1 := 'F2';
    end if;The APEX built-in variable named 'REQUEST' is automatically assigned a value of the button that caused the page to submit.
    Varad

  • Display measurment data and change color depending on value

    Hi folks.  I have a 1D array of double precision measurments.  There are 20 elements in the array.  I need to display them on the front panel as well as change the backround color of each element programatically if it is out of range.  There must be an easy way to do this?
    Thanks in advance!

    Like the man says, you can't change the background color of just one element in an array. HOWEVER, there are a variety of other display options that could work, like listboxes.
    Mike...

  • Can you change the color of the output in the console?

    When you run your program using NetBeans the color of the output in the console window is black. Is there any way to change the color of the output to say blue?

    Hi AJL,
    There is no way to color rows of the table control in a SUDialog. You could consider using the ActiveX container control and using the Microsoft ActiveX table control, which might have that functionality. Note though, that then you need to either ensure that control is always on all your client machines or make provisions for it to be installed/registered.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • How do I get a field to automatically select a value and change color based on another automatic field?

    Here is the situation:
    I have a row on a form called Finding Risk Rating. In this row are four fields: Probability, Severity, Risk Rating, Color.
    Probability is a drop down menu with the following values: 1, 2, 3, 4, 5
    Severity is a drop down menu with the following values: A, B, C, D, E
    Risk Rating is a field that I have a custom calculation script:
    var riskRating = this.getField("Probability").value+this.getField("Severity").value;
    event.value = riskRating;
    So, when I pick Probability = 1 and Severity = D, Risk Rating will automatically change to 1D, etc. This works fine on the surface as far as I can tell.
    The part where I am stuck, is the fourth field Color.
    Ideally, I want Color to be automatically populated depending on the value of Risk Rating. For example, for 1E I would want it to say "YELLOW" and the field to change color to yellow. For 1A it would be "GREEN" with the color green, etc.
    I tried doing an if else for all cases, but it never refreshes to the correct value. I then checked using app.alert to see what fields riskRating and colorRank are (see code below), and I noticed that riskRating never changes, even though the value in Risk Rating changes. Is there a way to order script(s) so that if I execute one, the other will follow? I'm new to scripting for forms and haven't done any programming in 10+ years, so feel free to rip my code in favor or something more efficient, or direct me to a good resource I can learn from.
    Here's the basis of what I have for scripting on Color. It's brief because I wanted to test it out before writing every 'if else' statement.
    var colorRank;
    var riskRating = this.getField("Risk Rating").value;
    if (riskRating = "1E") colorRank = "YELLOW";
    else if (riskRating = "1A") colorRank = "GREEN";
    else if (riskRating = "5A") colorRank = "RED";
    event.value = colorRank;
    app.alert("colorRank = " + colorRank + ", riskRating = " + riskRating);
    Any help is appreciated. Thanks!

    One problem is if more than one combo box item has the same number associated with it, you cannot simply set the export value to the corresponding number since they need to be unique (or the user interface behaves weird). One thing you can do is set up an object to associate a list item with a value, and look up the value in code when a list item is selected.
    For more information, see: http://acrobatusers.com/tutorials/2007/js_list_combo_livecycle

  • Placed rasters shift colors in PDF output

    Hi all,
    New to the forum but been working with CS tools for many years now. I'm sure this problem is fairly straightforward but it has me completely stumped.
    This problem has surfaced recently; I've noticed it before but the situations were never as severe. It appears that when I place a raster on a page, the colors of the other objects on the page change. This happens only on the page where the graphic is placed, and only with raster images; vector graphics and text etc. are fine. File types also do not change the result; the issue happens with BMP, PSD, JPG, with or without transparency.
    The document is strictly for viewing as a presentation on-screen, via PDF. I am maticulous in making sure all the objects are in RGB color space and sRGB is used wherever possible.
    In the image below, the graphic on the left slide is a raster with transparency from PS, and on the right slide a vector graphic (PDF from Visio). The blue background is a rectangle on the master filled with a spot color (0, 44, 119 / Pantone 288C), and the text is on the page in a frame from the master. The text and blue background appear correctly on the right slide, and seem somewhat flatter on the left slide. This is only apparent in PDF form, on-screen in ID they both look correct.
    Anyone have any advice? Thanks in advance for your help.

    Hey all. thanks for the replies; I am closer but further from a solution. I have experimented with your suggestions and this is what I found:
    I re-assigned sRGB to the document and checked that Transparency Blend Space was Document RGB, no change.
    Exporting to PDF/X-4 does resolve the issue IF the Blue stays as a spot color.
    Exporting to PDF/X-4 with the Blue as a process color results in all pages appearing "faded", including those that are text-only, except those with shapes (simple rectanges/lines) or .ai vector graphics, with shadows.
    Exporting to PDF/X-1a results in all pages appearing "faded" regradless of content.
    Although PDF/X-4 and spot colors results in proper appearance, I am actually producing an Interactive PDF (transitions, embedded flash objects), and once you select "Interactive", the dialog for export options is totally different than the "Print" dialog, and there are no color options at all, so what I need is to resolve the issue pre-export, somewhere in my other settings. Swapping Spot Vs. Process colors (as Rob indicated) had no effect when exporting to Interactive.
    I did notice that the option in PDF/X-4 that caused the change was on the "Output" tab, having "Output Intent Profile Name" set to standard (Document CMYK - U.S. Web Coated). If I enable that setting on any export profile and use spot colors, everything is correct (except the lack of interactive elements)
    I also tried switching Color Management Policies ("Convert to Working Space" Vs. "Preserve Embedded Profiles") in Color Settings, no change.
    Any other ideas? Thanks for the input!

  • PL/SQL array bind output variable

    I've been trying to learn how to pass an array to an pl/sql script. Getting the data into the db seems to be working fine, but I would like to know if there was a problem inserting the data. More specifically, I would like to know THE SPECIFIC ROW that caused the problem.
    pl/sql code:
    create or replace procedure pp (
              v_out      out number,
              v_listtype in repair_codes.listtype%type,
    v_repaircode in repair_codes.repaircode%type
    is
    begin
    insert into repair_codes (listtype, repaircode) values (v_listtype,v_repaircode);
         v_out:=1;
    commit;
         --just setting up test variable for now     
    end;
    vb.code:
    Dim cmd As New OracleCommand("pp", dbConn)
    cmd.CommandType = CommandType.StoredProcedure
    cmd.ArrayBindCount = 3
    Dim al(2) As String
    Dim ar(2) As String
    al(0) = "JOE1"
    al(1) = "JOE2"
    al(2) = "JOE3"
    ar(0) = "TEST1"
    ar(1) = "TEST2"
    ar(2) = "TEST3456789"
    Dim out As New OracleParameter("v_out", OracleDbType.Varchar2, 20)
    out.Direction = ParameterDirection.Output
    cmd.Parameters.Add(out)
    Dim listtype As New OracleParameter("v_listtype", OracleDbType.Varchar2)
    listtype.Value = al
    cmd.Parameters.Add(listtype)
    Dim repaircode As New OracleParameter("v_repaircode", OracleDbType.Varchar2)
    repaircode.Value = ar
    cmd.Parameters.Add(repaircode)
    dbConn.Open()
    Try
    cmd.ExecuteNonQuery()
    Catch ex As OracleException ' catches only Oracle errors
    ex = ex
    Select Case ex.Number
    Case 1
    MessageBox.Show("Error attempting to insert duplicate data.")
    Case 12545
    MessageBox.Show("The database is unavailable.")
    Case Else
    MessageBox.Show("Database error: " & ex.Message.ToString())
    Dim wha = ex.Errors(0).ArrayBindIndex 'always '0'
    End Select
    Finally
    dbConn.Close()
    End Try
    error:
    OracleParameter.ArrayBindSize is invalid
    Code above will work if I remove everything about the 'output' variable
    To test I would like to put in data for a column that is too large, have all other rows inserted, but return the row that had bad data. Thanks for any thoughts on this-

    I have a similar issue, i.e. the pl/sql table type as out parameter is causing probleml in one API related to Oracle Applications. I have singled this problem out by creating wrappers and testing them against BPEL process. Now as soon as I put an out parameter with pl/sql table in my wrapper, I start getting errors. Why the invoke even care about what is in output while calling the API? How can I get rid of it. I am not able to pin point where exactly you made the changes. Could you please share some more info or possibly share the BAD and GOOD code.
    We will probably get away with this by creating just a wrapper that would have NO out parameter as PL/SQL table as I don't think we need it anyway.
    Still want to know what is the issue here as we would like to avoid any custom wrapper creation?
    Shobhit
    Message was edited by:
    Shobhit.Kapila

  • URL Change Color on Mouseover?

    I have a flyer created in InDesign 5.5 that includes a URL identified as a hyperlink in InDesign. I exported the document as an interactive PDF and, as expected, when I mouseover the URL the I-bar changes to a hand and a box comes up with the URL in it. Is there a way, either originally in InDesign or subsequently in Acrobat, to make it so that the URL also changes color on mouseover?

    Depends on how its set up. If it's just a link object then no, since such objects do not contain any text of their own and can't be used to change the underlying content of the document.
    The only way this can be done is by using a form field and a MouseEnter and MouseExit script that will alter the font color of that field (and of course a MouseUp script that will launch the link).

  • Change color on a control

    Hello Everybody,
    I'm new to this and my question is like this:
    I want to change the background color on a control between two colors depending
    if a value is greater then a set value. In this case the backround should change from white to red
    on a RPM meter when the RPM is greater then the RPM limit.
    I found out how to set the color using the property for the control but I can't figure out how to change
    between the two colors using a comperisson function.
    Thanks in advance!
    Regards
    Roger

    Here's a screenshot of the code, you should be able to implement it.
    Ton
    Message Edited by TonP on 03-14-2008 11:31 AM
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!
    Attachments:
    ChangeColor.png ‏5 KB

  • Issue with Condition dependent PO output

    Hi,
    We're implementing Extended classic version for SRM 5.0.
    As part of the output determination, we need to determine 2 print outputs for Purchase orders. We have 2 purchase organizations and both of them need to have 2 different smartforms for the print. So, we're designing 2 different smartforms. In order to assign the smartforms as per the purchasing org, I've used "Condition dependent output" in IMG settings. But whenever I try to print, it picks up the standard form from the IMG node "Define actions for Document Output" where the standard form is maintained. We did not maintain the custom form in this node because we have 2 forms for print.
    I would like the program to pick up the custom form maintained in " Condition dependent document output".
    I understand that we could use the BADI alternatively. But any help in resolving this problem through the configuration is highly appreciated.
    Regards,
    Lakshmi

    Hi,
    Pls implement the badi "BADI BBP_OUTPUT_CHANGE_SF".
    For sample code/pointers,see the foll links;
    Re: How to change default smartform triggered while printing for shopping cart
    Re: How to change default smartform triggered while printing for shopping cart
    Re: Smartform display
    Re: Add a Printer ?  -> LP01
    Re: Condition Dependent Document Output
    Re: Add a Printer ?  -> LP01
    sending Smart form to Printer  in SRM
    Re: SRM PO's to be printed out with the PO
    BR,
    Disha.

  • Changing colors of individual bars in a XY Graph

    I am using an XY Graph (bar style) to display 50 voltages. I have limit settings (low alarm,low warning, high warning, high alarm)that I would like to impose on each of the 50 bars in the XY graph. My problem is that any way I try it the limits are only imposed on the first bar on the graph and all the following bars change colors along with the first bar no matter what value they have. Is it possible to control the properties of individual bars inside an XY Graph ??

    > I am using an XY Graph (bar style) to display 50 voltages. I have
    > limit settings (low alarm,low warning, high warning, high alarm)that I
    > would like to impose on each of the 50 bars in the XY graph. My
    > problem is that any way I try it the limits are only imposed on the
    > first bar on the graph and all the following bars change colors along
    > with the first bar no matter what value they have. Is it possible to
    > control the properties of individual bars inside an XY Graph ??
    >
    The short answer is no. All of the elements in a plot use the same
    colors to draw. To get the display you want, you need four plots.
    Write a subVI that takes in your array and returns the four that you
    need. It will index the elements and generates a value in four othe
    r
    arrays such that three of them are NaN and the fourth contains your
    value depending on the alarm status keeping the same X value with all
    four plots. As an example, if the value is lower than the low alarm
    limit, the value will be placed in the low array and NaNs in the other
    three arrays.
    Now wire the four arrays to the graph as a multiplot, you will either
    use a build array or a Build Clustered array depending on the XY type.
    The plots will overlay, with only one point being non-NaN for each X
    location. It will use the color for plot 0, 1, 2, or 3 depending on
    which array the value was in.
    Greg McKaskle

  • Changing colors

    How can I change color of the text and background of components like Output Text, Buttons etc?

    Thank you guys.
    However I have a few questions:
    1.How do I know what visual attributes each component has? Where can I intutively know that, e.g. a button has a color, background-color and all the other visual attributes? - basically where is the documentation for all this?
    2. How come I cannot edit these colors thru a "Graphical" color editor? ( This is what I need in the first place - not editing text in the stylesheet etc..
    3. If the colors are refered to by names, where is the list of well known color names( constants?).
    4. How do I set colors which have very specific r-g-b values ? Obviously this cannot be specified by a named constant.
    5. How do I set the color to transparent? ( i.e. how do I control the alpha component of the color? )
    This is also not possible using the only instance of graphical color editor I found ( to set the Background color of the Page ).
    The fact that color goes into the style property as a text string invalidates Visual design time experience by making an obvious property non obvious ( How would I know the color goes in Style?) and making changing it non intuitive - I have to remember color names and constants instead of seeing and selecting.
    I hope UI design team take a look at this in terms of design priciples and not just provide a workaround.

  • Formula node output variable

    I have a formula node with an output variable. When i run my program the first time the output is correct. But when i run it after that, only the previous output value is displayed, the variable is not refreshing. It seems as if the value is copied into the memory and is not being updated. Is there a property for the output variable that must be changed?

    The formula node should update the output each time it is run. There is no property node for the ouputs.
    Ensure that (1) your inputs are actually changing as you expect - use a probe to confirm and (2) that the indicator you are looking at is wired to the output correctly.
    Post an example of the problem you're seeing if you still have a problem
    Tim

  • Change Color of Line Object

    aLine.border.edge.color.value
    ="207,29,3";
    This doesnt work.. any suggestions?

    One last thing.
    On Initialize of the Parent Subform a Table belongs in I change the Header Fill color based on a variable.  Other instances of this Table gets added with a button click.. everything works find interms of the add.
    When I change the color though the new tables added do not take the new color of the initialize event.
    Is there a way I can do it on the add event?
    this.parent.instanceManager.addInstance(1);
    this.parent.instanceIndex< ??? >.execInitialize();

  • Change color of clothing in Photoshop?

    Hello,
    There's a nifty filter in After Effects called Change Color, with which you can select the color of a shirt in a photo, for example, adjust the threshold of the color to change, and quickly change the color of clothing, in very realistic way, in one step. I don't see a similar tool in Photoshop. Does anyone know if there is one? Thank you!

    If you're looking for penultimate quality, I imagine you'd want to try to select/mask the garment in question with a high quality selection/mask, then do something like a Hue/Saturation adjustment (layer).
    Russell Brown's video shows how to use selection and the Refine Edges function, which I'm sure would work with a colored shirt or whatever quite well...
    http://tv.adobe.com/watch/the-russell-brown-show/masking-basics-in-photoshop-cs5/
    Short of going all the way per the above video, the Hue/Saturation function itself allows you to affect color ranges.  Sometimes this can be enough in itself.  Depends on the level of realism in the detail you want to achieve.
    -Noel

Maybe you are looking for