How can I programatically change a reference to an item in a cluster?

Hello!
I'm trying to programatically change the text background color of the elements in a large cluster.
I'm using LabVIEW 2010 SP1.  Attached is a test vi that I'm expermimenting with.  The test cluster has 6 elements and the final cluster will have 140.
All elements will be the same data type.
Based on the rate of change of the element value, I have to change the background color.
Instead of creating a reference for each element in the cluster (as in my test vi), I'm looking for a way of changing the reference programatically.  Is there a way?
I'm also considering building an array of references as a brute force alternative but I would like to see if there is something more elegant / efficient first!
Am I making sense?
thanks,
mike
Solved!
Go to Solution.
Attachments:
cluster_color_change.vi ‏11 KB

Mike,
You can get references to the elements inside the cluster from the cluster reference using property node: All Objects[].  This is an array of references to the controls inside the cluster.
Another way which might have advantages is to put a color box indicator behind each numeric.  Color the numeric backgrounds Transparent.  Then write the color to the color box.  I did a quick modification to your VI to show this possibility.  I did not adjust the size of the color box to match the numeric to emphasize what I did.
Lynn
Another note: If any of your users are color blind some of the combinations (black on red) might not be very visible.
Attachments:
cluster_color_change.2.vi ‏9 KB

Similar Messages

  • How can I programaticly change settings on a FP-PG-522

    How can I programaticly change settings on a FP-PG-522 using Measurement
    Studio
    for Visual Basic and an FP-1000 module?
    Is there a Measurement Studio for VisualBasic DAQ control to do this?

    I am either in the wrong location or have a different layout than you.
    Apple button > system preferences > keyboard and mouse > mouse tab > then all I have are the options to change the tracking speed, scrolling speed, double-click speed, and which button is required to zoom with the scroll wheel. The only drop-down menu I have on this screen is to select which button + scroll wheel allows me to zoom.
    I am using version 10.5.6. Am I in the incorrect section of this forum?
    Message was edited by: Coop772

  • How can I programatically change the Plot Style of a 3D surface?

    I believe this can be done using a property node...however I am unable to find the property. At one point in my program, the plot style automatically switches to Points, and I want it to be Surface again later. I have a 3D surface reference wired to a property node, giving me the CWGraph3D properties. If the properties followed the menu style you get from right clicking on the 3d surface, I should be able to then select the property plots, and change the plot style. However, even though I can get a reference to the plot, the only property I can access is the count. I would appreciate it if someone could show me where I am going wrong, since Im confident this can be changed programatically.
    Thank you!
    Jeff
    Using Labview 7 Express

    Hi Jeff,
    here's what I did (found somewhere in the examples that come with LabView):
    Message Edited by GerdW on 03-14-2007 04:28 PM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome
    Attachments:
    3dplot.png ‏9 KB

  • How can I programatically change the slave acquisition mode of my pci-1409?

    In my LabVIEW application I need to be able to programmatically change the slave acquisition mode from standard to external HV lock. I couldn't find this property listed in the property node.

    Nan,
    When you change this property in MAX, you are actually modifying the camera file for the session (*.icd file). These file can be modified just like a text file. You could programtically modify parse and modify the "SlaveAcqMode (STANDARD)" line in the camera file to reflect the mode you want to use. Below is a KB that explains how to parse and modify an *.iid file, you can use the same method on the icd file.
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/ccc5bb5990aa416786256c23006e687c?OpenDocument
    Best Regards,
    Chris Drymalla

  • How do I programaticly change the header BG color on a multiline listbox

    How do I programaticly change the header BG color on a multiline listbox

    Hi,
    If you mean the multicolumn listbox then you have to create the its property node on the diagram (right click on the item and select "Create->property node" from pop-up menu). Then you have to select two properties:
    "Active Cell"
    "Cell Background color".
    You can do it by expanding prperty node to 2 rows and right clicking on each row. Then select "Properties" from pop-up menu and the appropriate property.
    Then you have to set-up "active cell" to the appropriate coordinates of the column header. (row=-1; column=N or column=-2 if you want to change the colors of all headers).
    Now you have to connect the appropriate colorbox or numeric variable to "Cell Background color" property node and run the program.
    I've attached the example.
    Good luck/
    Ole
    g Chutko.
    Attachments:
    Color.vi ‏15 KB

  • Since 2012 I have Photoshop Elements always worked without any problem, however now the language is suddenly German how can this be changed, removed the program and re-installed, not working. Program is downloaded and updated via the apple app store?

    Since 2012 I have Photoshop Elements always worked without any problem, however now the language is suddenly German how can this be changed, removed the program and re-installed, not working. Program is downloaded and updated via the apple app store?

    I've done some research on the SQLite database. Whenever Aperture hangs up (like during auto-stack or opening the filter hud) there are thousands of SQLite queries happening. These SQLite queries cause massive file I/O because the database is stored on the disk as 1kb pages. However, the OS is caching the database file; mine's only 12MB. I'm trying to track down some performance numbers for SQLite on osx but having trouble.
    It's starting to look like most of the speed problems are in the libraries that Aperture uses instead of the actual Aperture code. Of course, that doesn't completely let the developers off the hook since they choose to use them in the first place.
    Oh, and if anyone is curious, the database is completely open to queries using the command line sqlite3 tool. Here's the language reference http://www.sqlite.org/lang.html
    Hmm, just found this. Looks like someone else has been playing around in the db http://www.majid.info/mylos/stories/2005/12/01/apertureInternals.html
    Dual 1.8 G5   Mac OS X (10.4.3)   1GB RAM, Sony Artisan Monitor, Sony HC-1 HD Camera

  • How can I programmatically change a label?

    Hi everyone,
    I have a 2-D array that I wish to populate with different sorts of data.  Depending upon the data, the names of the rows and columns may change.  Arrays have to have identical labels and I suppose I could simply populate a string indicator, but frankly, that looks like trash.
    How can I programmatically change a label of a column or a row in a 2-D array?  Should I consider using a table?  I want it to look nice.
    Thanks,
    Jason

    Hi
    I do not think you are able to change the label programatically.
    But you might consider to use Captions instead of labels. You can hide labels and make captions visible programatically, and you can change the text of the caption and size (see enclosed vi).
    take care
    Pawel
    Attachments:
    caption.vi ‏20 KB

  • How can I programatically identify PDF files with embedded images?

    Our company has 27,266,949 .PDF files that we're planning to compress in order to save server space.
    We don't want to compress any of the .PDF files that have embedded images as to not alter the image's state.
    How can we programatically create a list to exclude from the compression process?

    Ah, see told you we were new to this and no, my taxs already have enough digits to the balance.
    Ok, so based on that, we should be able to use the preflighting tool to identify the PDF’s with images, factor them out, and then continue with lossless compression on the remaining balance.
    That will give us the compression we need to save space, but also allow us to stand in the court of law (if the scenario was to ever occur) and proclaim that none of our medical images have ever been altered by compression.
    Sound like a reasonable plan?

  • How can I add/change art work to albums where the art work isn't available at iTunes?

    How can I add/change art work to albums where the art work isn't available at iTunes?

    Go to google and search for the artwork.  When you find it, save it to your computer.  Right click the album and select get info.  Drag the image you saved to the empty box for album art.

  • I have a problem with mail autofilling info email addresses. Emails sent to me the from looks like this: Holiday in the United States email address . I have no idea what this Holiday in the United States is...How can I fix/change to my name?

    I have an irritating problem with mail autofilling info in email addresses. Emails sent to me the from looks like this: Holiday in the United States <my email address>. I have no idea what this Holiday in the United States is or how it got to be there...How can I fix/change to my name?
    I fixed the To: autofilling incorrectly by deleting my email address from the Previous Recipients List, but is there a way to stop that from coming up on emails that I receive?

    Have you checked your Mac address book? If your email is saved somewhere in your address book with the name "Holidays in the United States" it might be adding the name automatically in Mac Mail.
    Alternatively, try this:
    Delete an Email Address from Auto-Complete in Mac OS X Mail
    To remove an email address from the auto-complete list in Mac OS X Mail:
    Start typing the recipient's address or name in a new message.
    Select the desired address from the auto-complete list as if you'd compose an email to them.
    Click the small down arrow in the recipient.
    Select Remove from Previous Recipients List from the menu.
    You can also search for the unwanted address directly in the previous recipients list:
    Select Window | Previous Recipients from the menu in Mac OS X Mail.
    Highlight the address you want to remove.You can highlight multiple addresses by holding down the Command key.
    Click Remove from List.
    Source: About.com

  • How do I programatically change the text in a listbox that is contained in a cluster?

    How do I programatically change the text in a listbox that is contained in a cluster?

    In the front panel, right click on the listbox object and select create>attribute node.
    In the diagram click on the attribute node and select "Item Names".
    Connect the desired array of string to the attribute node.
    BigBen

  • How can I manually change the height of the "Type ...

    Hi all
    Just got automatically installed the latest 6.22 version of skype few minutes ago and I got a few questions. 
    First and foremost, how can I MANUALLY change the height of the textbox, where I type the messages. I would like to make it larger, like in the previous versions of skype. I don't want to move my mouse cursor through the entire monitor to reach this tiny textbox.
    And second, why you guys are trying constanly to ruin something that is working perfectly ? Going to revert to the previous version until you fix all these nuisances.
    Regards

    There is no way to do this, it is designed to be strictly landscape with keyboard, portrait without - not the best thought-out phone on the market, mainly geared towards compulsive texters and e-mailers.
    There's no way to know whetherNokia will change this with any future updates, perhaps you should make the recommendation to them directly using the 'contact us' link.

  • How can I set a cross reference to a Picture

    Hello,
    I have a question regarding the new function: How can I set a cross reference (dont know the exact english name since I use the German version; in German: Querverweis) in Indesign CS4 to a picture? So far, I could only do it with a kind of workaround by putting an invisible text frame above or below the picture and referencing to that one.
    Any suggestions?
    Tschens

    Or put it inside a text frame as an inline graphic. You've basically figured it out.
    Peter

  • How can I see changes in table with insertrow();postchanges()without commit

    Hi friends;
    I use jdeveloper 10.1.3.1 with jheadstart 10.1.3.1.
    I create two view object.In the first page I create table with one view object.
    In the second page I create table (with tableselectmany) with other view.
    I select many rows in second page and in the managed bean,
    I insert selectted rows atributes to first pages tables attributes.
    I use this code.
    public String commandbuttonaction(){
    CoreTable table = this.getTable1();
    Set rowSet = table.getSelectionState().getKeySet();
    Iterator rowSetIter = rowSet.iterator();
    BindingContainer bindings = getBindings();
    DCIteratorBinding pr_dcib = (DCIteratorBinding)
    bindings.get("DeptIterator");
    int i=206;
    while (rowSetIter.hasNext()){
    Key key = (Key) rowSetIter.next();
    pr_dcib.setCurrentRowWithKey(key.toStringFormat(true));
    RowImpl prRow = (RowImpl) pr_dcib.getCurrentRow();
    String AM="model.AppModule";
    String CF="AppModuleLocal";
    ApplicationModule empSvc = Configuration.createRootApplicationModule(AM, CF);
    ViewObject emps = empSvc.findViewObject("EmpsView1");
    Row newEmp = emps.createRow();
    newEmp.setAttribute("Manager",new Number(1));
    newEmp.setAttribute("Department",new Number(1));
    newEmp.setAttribute("Depno",new Number(3));
    emps.insertRow(newEmp);
    try {
    newEmp.validate();
    catch (Exception ex) {
    System.out.println("validate catch");
    try {
    empSvc.getTransaction().postChanges();
    catch (Exception ex) {
    System.out.println("post catch");
    Configuration.releaseRootApplicationModule(empSvc,true);
    i=i+1;
    In this code I only postchanges() in first view and dont want to commit.
    But I cant see changes row in the page .If I press save I see transaction completed succesfully message.
    But in database not insertted any rows.
    If I write commit() after postchanges() code I see rows in the table .But I dont want to commit.Only post
    my changes and if necessary I press save button in page.
    How can I see changes in the page without commit???Thanks for all....

    You should NEVER use statements like this in managed beans:
    ApplicationModule empSvc = Configuration.createRootApplicationModule(AM, CF);
    This will create a separate application module instance, not shared by the the web pages. That's why you do not see the changes.
    Instead, you can use the following code:
    ApplicationModule am = (ApplicationModule)JsfUtils.getExpressionValue("#{data.MyAppModuleDataControl.dataProvider}");
    where MyAppModuleDataControl shoud be replaced with the name of your am data control.
    Steven Davelaar,
    JHeadstart Team.

  • While installing a program (MediaCenter.exe) to handle audiobooks from the library, I erroneously associated the download site with Windows Media Player instead of the actual application (NetLibrary Media Center). How can I reverse/change this?

    While installing a program (MediaCenter.exe) to handle audiobooks from the library, I erroneously associated the download site with Windows Media Player instead of the actual application (NetLibrary Media Center). How can I reverse/change this? Reinstalling the application does not clear the error, so I'm assuming the association is somewhere in Firefox.

    Never mind -- I just found it under Tools/Options.../Applications, where I changed the incorrect association of "nlmcp" from Windows Media Player to the correct one, NetLibrary Media Center. Done!

Maybe you are looking for

  • How to pop-up a text box for a grid item on a user defined table?

    Hello, I have a user defined table with a grid & one of the columns is for comments. What I'm trying to do is to pop up a text box when double clicking in the column field. This would be the same as the Item Details column in the Sales Order ittems g

  • ISE Profiler Feed Service Update

    Hey, I have tried couple of times so far to update the ISE profiler feed service and it always says " it has been successfully update" after 2 seconds; however, last update feed show 2013-05. (see attached) I'm running ISE 1.2 with all patches instal

  • Include xsql problem with mulitbyte characters

    I have an xml file containing chinese and korean UTF-8 that has a xsl applied to it then output NO PROBLEM. Now I want to apply another xsl before passing on to the final xsl so I used include-xsql in the main xsql file. Works fine as long as the sou

  • Update hardware and software Qosmio G30-198 for hight performance

    Good morning, I have a Qosmio G30-198. I Have to use Autodesk Civil 3D program in the laptop. It is a CAD program that requires a lot of ram and a high speed data transmission with the HDD's. For this, it is absolutely necessary to update hardware an

  • Second Gen Shuffle - In Restore Loop !

    Upgraded to newest version of Itunes software. Second Gen Shuffle connected.. Sofware says that the ipod cant be used and needs to be reformatted. then it tells me that it needs to be restored. I go thru all the steps, the Shuffle reboots and shows a