How to create a front panel display that lights up with different colours depending on its input signal?

I am doing a project where I have this array which has different voltage outputs for each grid. How do I create a front panel object that lights up with different colours depending on the voltage input or is there already such a pre-built function?
In addition, I wish to display these in an array on screen. Is there any pre-built function for this?

Repulse wrote:
I am doing a project where I have this array which has different voltage outputs for each grid. How do I create a front panel object that lights up with different colours depending on the voltage input or is there already such a pre-built function?
The simplest way would be an intensity graph. It gives you a 2D grid where each grid point is colored according to the value of a 2D array. The Z axis color ramp determines the color.
My second choice would be an array of colorboxes. (They could even be made to look like LEDs (see image, if course you can leave them square too), All you need is a scaling function thap maps voltages into a color ramp lookup table with an 8bit index)
(Using booleans and color property nodes is relatively clumsy. Booleans are meant for two states because the value is boolean. Since array elements can only differ in value, and not in properties, it will not even work. Color boxes have a color data type which is much more appropriate for this case)
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • An idea of how to create a front panel

    Hi all,
    Want to create a front panel using LV 8.  The panel using a vertical splliter bar to divide the panel into 2 sub panels, the left will be small , the right will be somewhat bigger than the left and as the main infomation display area. when click the splitter bar , the left panel can auto hide or collapse , if  click it again , the left panel  can open again . Please give a suggestion of achieving this . Thanks.
    David 

    Hi David,
    Yes, you can customize the positions of splitters, and as a result, control the size of the panes on your front panel.  Here are some of the different properties you can change on a splitter bar:
    Position on panel (i.e. horizontal pixel location of vertical splitter or vertical pixel location of horizontal splitter)
    Foreground and background color
    Whether or not it is "locked" (i.e. can't be repositioned by the user while the VI is running)
    The sizing attributes of the attached pane(s) when the splitter is re-positioned
    There are also several properties of the Pane class that relate to the panes on either side of a splitter.  Let me know if you'd like more information about those (although I suppose you could look for yourself at the LabVIEW 8.0 Evaluation version).
    Good luck,
    -D
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • How to create two front panels

    Hi in my application i am using two Monitors .. 
    so i like to use one monitor for Vision display and control operation (Front panel )
    And another For Motion Control Front panel .. is it possible to do this .. 
    (In this case How to split my Front panel of my Vi ..)

    Hi
    If we use Border Layout, the Panels which are added to the main panel are not displaying properly.
    Solution is to use BoxLayout with AXIS parameter. Statement looks like this:
    mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout(PAGE_AXIS));
    Thank You for giving Reply,

  • How can I create multiple front panels for a single block diagram?

    Hello,
       I have developed a VI with multiple controls and indicators that needs to run on computers with screen resolutions ranging from 800x600 to 1680x1050. The problem I'm having is that the front panel does not properly scale for this range of resolutions by checking the options in the "VI properties" option. Is there a way to create multiple front panels of various sizes for my block diagram and programmatically select the appropriate front panel based on the screen resolution?
    Solved!
    Go to Solution.

    See the attached Zip file.
    I have two different front panels.  Open either one and run it.  They both call MainCode.vi which takes the references passed to it and register for events.  From there, it does all the work of the code you would have put in your front panel .vi.
    This way each front panel can be laid out however you want for each screen resolution.
    Attachments:
    MainCode.zip ‏22 KB

  • Leaving the front panel displayed on a subpanel after stopping

    I have a tab control.
    Each tab control has a subpanel.
    Each subpanel has a static vi reference attached to it for launching.
    I would like the image of the front panel displayed in the subpanel after the program has finished running so that any information that was displayed is still present.
    Is there a way to retain all the settings between run's?
    -Regards
    eximo
    UofL Bioengineering M.S.
    Neuronetrix
    "I had rather be right than be president" -Henry Clay
    Attachments:
    NeuroNetriX TestSet.vi ‏12 KB

    When you say settings, do you mean controls? If so, you can right click on them and select Data Operations >> Make Current Value Default. That will keep the settings initialized how ever you set them up.
    I believe you can use use the Get Front Panel Image VI Method node, similar to the way to run the VI. You can create one by right clicking on the VI reference wire and selecting Method for VI Class >> Front Panel >> Get Image. 
    I've attached a code snippet of the node. If you want you can just drag the file into your block diagram and it should turn into code. 
    Applications Engineer
    National Instruments
    CLD Certified

  • How can i open front panel of a vi and run it

    Hi
    I have a vi that i call multiple times from another vi, however i want it to open the front panel on some calls and not on others.  What is the best way to do this?
    I have come up with a way and was wondering if this method was okay or is there another method that might work better escepcially since i am eventually going to create an application out of it and hope that no problems pop up then
    Unititled 1 calls Untitled 2 where with one call it opens and runs Untitled 2 while with the other call it simply runs untitled 2.vi
    What I did was i changed untitled 2.vi window appearance to dialog but i deselected the show front panel when called, so by simply calling the subvi form untitled 1 it works.  Unititled 2 runs but does not open
    Now with another call i want to open and run untitled 2.vi so by looking the attached vi you can see what i have done
    Again if there is a better method that would make my vi's more efficient i would greatly appreciate it.
    Reza Sed
    Attachments:
    Untitled 1.vi ‏24 KB
    Untitled 2.vi ‏10 KB

    What you did, in theory, is the correct way to do it.  However, you should move the front panel open and close into Untitled2.vi and have a boolean input as to whether to show the front panel or not.  This way, your calling code is cleaner, and you don't have to reproduce the code everytime you want to call the subVI and show the panel.
    If you were to use Untitled2 in another project, then you woud have to go back and look how to implement the showing of the front panel in your other code.  If later, you were to decide you want that VI to be maximized, then you make one change in the VI, and not in every place you ever call it showing the front panel.

  • Creating new front panel elements

    Hi,
    is there a way to create my own front panel elements that inherit from existing ones and enhance their functionality. I'm thinking of things like a graph together with a numeric control that takes an array and displays the element defined by the numeric control. And I'd like to be able to define a new frontpanel element that implements this and then just having to pass an array to it for it to work and don't have to implement the selection logic everytime I use it.
    In short: Can I define new frontpanel elements that inherit from existing ones?
    Sorry, if this is a basic question.
    Tobias

    Yes an Xcontrol will et you develop those yourself but...
    Your description sounds like an Chart with the
    Properties >>> Visable Items >>> Numeric values
    checked.
    Ben 
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How to resize the front panel to fit different resolutions

    I m using LabVIEW 8.2 on Windows XP SP2
    I've tried both “maintain proportions of window for different monitor resolutions” and “scale all objects on front panel as the window resizes” selected but just messed up everything when i switched to another different resolution. It's annoying since I'm using 22 inch monitor to do the coding but the user supposed to run it on laptop or wince.
    Any solutions to it?
    Thx in advance.

    Thank you all. Following is the reply from NI support.  I think the best way is to edit vi in low resolution.
    One of the easiest ways to tackle varying screen resolutions is to design
    the front panel to the lowest resolution that you expect it to run on. It
    should then look acceptable on any screen larger than that.
    However, you can get a bit more tricky by programmatically determining the
    computer's screen resolution and then dynamically changing the size of your
    front panel objects. Use an Application Property Node and select
    Display>>All Monitors to return the current screen size. Then, according to
    the screen size, you can size the control or indicator programmatically
    using the Size property node for your front panel objects.
    Ultimately, these issues have often been a result of font size issues.
    Specifically, this can be a problem when two machines have different
    desktop theme/font settings. If your objects are coming out in different
    sizes on different computers, you can setup up LabVIEW to use the same font
    on different systems by modifying the .INI file.
    The easiest way is to do this: use Tools->Options->Fonts from the LabVIEW
    GUI. You can then set the system fonts to anything you want. After you
    have done this on one machine, open your INI file (it is in the same
    directory as the LabVIEW executable) with any text editor and copy the
    corresponding entries to another file. Add these entries to the INI files
    on any machines you want to lock to font. You will probably run into
    issues if you are supporting different platforms (Windows and Mac or Mac
    and Linux, for example), since the fonts you want may not be available on
    both platforms. There are Windows fonts available for both Mac and Linux
    platforms, so this can be somewhat ameliorated.
    This is all I can think of, but that's not to say these are the only
    solutions. You might check the Discussion Forums, as many of our LabVIEW
    Champions have tackled similar issues and offer their expertise as well.
    Here's just a few threads that I'd like to refer you to:
    How to make the size of VI and controls unchanged irrespective of the
    resolution?
    http://forums.ni.com/ni/board/message?board.id=170&message.id=273613&requireLogin=False
    How to program the front panel size to fit different monitor resolution?
    http://forums.ni.com/ni/board/message?board.id=170&message.id=87160&requireLogin=False
    I hope this discussion helps you along the way in your application
    development. Please let me know if you have any further questions/comments
    and I would be happy to discuss them with you.
    Otherwise, it was a pleasure assisting you and thank you for choosing
    National Instruments.

  • How to add silver front panel theme for labview 2010

    how to add silver front panel theme for labview 2010

    Mahisnair wrote:
    yes i had tried this way but the vi built with silver theme doesnt look good in 2010 :-(
    wish if there was a way to include silver theme in 2010
    The only way I see to make it like that would be to recreate the theme in LabVIEW 2010 with external bitmap objects. Unfortunately it won't be as functional as the silver controls in various terms such scaling (bitmaps scale very badly) or transparency and click through functionality (a bitmap assigned to a control part will always catch all clicks and never allow a click to pass through anywhere to a lower layered part).
    The silver controls are using special internal graphic objects that were added in LabVIEW 2011, so recreating silver controls with the same functionality in earlier LabVIEW versions is impossible.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How to create a variance on data that exists iIn only one database column

    How to create a variance on data that exists iIn only one database column?
    I'm trying to create a calculation to show the difference between the budgets for two different years in a Discoverer crosstab query.
    I'm using the lag function to repeat the value of a column for the current year and the year before.

    Lag and lead seems to be the only choice and they work excellent. Checkout the new 10g Database features. There is new SQL modal clause which might give additional and powerful analytics but in this case lag and lead should be sufficient.
    regards
    http://www.infocaptor.com/workbook-dump.php

  • How to Create report in Material Master that outputs stock

    Hi,
         How to Create report in Material Master that outputs stock, grouped by Material Type and Plant. The output shows Material No, Storage location, Unit of Measure and Description in addition to group totals. Data was extracted from MARA, MARC, MARD, MAKT,MKPF,
         MSEG and T001W.and what are the fields to be used.

    hi,
    check the transaction MMBE or MC.9..
    for mmbe the program is RMMMBESTN.
    check the logic in the program.

  • How to create a event to display records depend on selection ofdropdownlist

    BSP
    how to create a event to display records depend on selection of dropdownlist box,
    Using BHTML,
    thank you,
    regards,
    jagrut bharatkumar shukla

    1) Copy this script to the code
    <script type="text/javascript">
    function displayVacationDates() {   
        for (var i=0; i < document.forms[0].Status.length; i++) {
            if (document.forms[0].Status[i].checked && document.forms[0].Status[i].value=='Vacation'){
              document.getElementById('startDateRow').style.visibility='visible';
              document.getElementById('endDateRow').style.visibility='visible';
             if (document.forms[0].Status[i].checked && !(document.forms[0].Status[i].value=='Vacation')){
             document.getElementById('startDateRow').style.visibility='hidden';
              document.getElementById('endDateRow').style.visibility='hidden';
    </script>
    2) Set initial style to 'hidden'
    <tr id="startDateRow" style="visibility:hidden">
    <td align="left"><blockquote>
      <p><span class="style16 style8"><strong>Start date:
      </strong></span></p>
    </blockquote>                 </td>
    <td align="left"><script>DateInput('VacStart', true, 'DD-MON-YYYY')</script></td>
    </tr>
    <tr id="endDateRow" style="visibility:hidden">
    <td align="left"><blockquote>
      <p><span class="style16 style8"><strong>End date:
      </strong></span></p>
    </blockquote>                      </td>
    <td align="left"><script>DateInput('VacEnd', true, 'DD-MON-YYYY')</script></td>
    </tr>
    3) Call the display script
    <input name="Status" type="radio" value="In the Field" onclick="displayVacationDates()">
    <input name="Status" type="radio" value="Vacation" onclick="displayVacationDates()">
    <input name="Status" type="radio" value="Sick day" onclick="displayVacationDates()">
    <input name="Status" type="radio" value="Admin Day" onclick="displayVacationDates()">
    <input name="Status" type="radio" value="DSR Ride Along" onclick="displayVacationDates()">
    <input name="Status" type="radio" value="ServiceCall" onclick="displayVacationDates()">

  • How to show the front panel when launching VI with Call by reference node??

    Hello!
    I just wonder how I make the front panel visible during execution when I launch the VI with CALL BY REFERENCE NODE.
    Se example.
    Could u also show me how to change different properties (window size ..) of the front panel??? (launched with CALL BY REFERENCE NODE)
    Thank you!
    Attachments:
    test.vi ‏18 KB

    In VI Properties>>Window Apperance>>Customize you can check "Show front panel when called". This will open the front panel on each call. It doesn't matter how the call was initiated.
    You can set a lot of Front panel properties during runtime. Place a Property Node in the block diagram. Change the class from App to VI. Under properties select Front Panel window>>Panel bounds to set the position and size of the front panel.
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • I urgently need to know how I can connect 8 thunderbolt display, I was thinking with the new mac pro will come out, but I wonder if it is possible to connect an iMac to 4GB of graphics card, but suffers from the imac. thanks

    I urgently need to know how I can connect 8 thunderbolt display, I was thinking with the new mac pro will come out, but I wonder if it is possible to connect an iMac to 4GB of graphics card, but suffers from the imac. thanks

    I tightened all HD screws and it didn't help. With the machine running and side of the case off, I physically stopped both the video card fan and the front case fan with my finger for a couple seconds and the noise continued. I also took all hard drives out one by one and rebooted each time. Again, the noise continued until I took out the Mac HD in Bay 1, rebooted, and I had a very quiet, silent machine. The issue is the hard drive in bay 1 that shipped with the computer, it's without a doubt causing the hum/woosh sound. I still need to know if I can safely swap the Mac HD from bay 1 to bay 4 without any issues to the operating system. I would like to try that to see if it dampens the noise but I also want to make sure this swap won't screw up my machine at all.

  • How to create a transaction code for a function group with screen 100 as st

    Hello ,
    I have requirement where I need to create a function group and create screen 100, 200, 300 and include the function in the screens.
    Customer asked me to create a transaction with the screen 100 as the starting screen.
    Can you please let me know how to create a transaction code for a function group with screen 100 as starting screen.
    [ It is not a module pool program ].
    Thanks
    Prashanth.
    Moderator message - Please ask a specific question and do not ask the forum to do your work for you - post locked
    Edited by: Rob Burbank on Jun 2, 2009 11:49 AM

    Go to transaction SE93, enter a transaction code that you want and click on "create". Enter a text and select the "Transaction with Parameters" button. In the Default Values section, enter START_REPORT in the transaction field. Check the "skip initial screen" box. In the Name of Screen field section enter the following lines:
    Name of screen field:                               Value
    D_SREPOVARI-REPORTTYPE                RW
    D_SREPOVARI-REPORT                        ZPCA
    Save and transport accordingly.

Maybe you are looking for