Struggling with how to appropriately scale this host/data display VI

Hello! I'm hoping someone can send me in the right direction on this. I've mocked up a front panel the way I intend it to look - a fill slide overlapping a waveform chart, to give the effect of a visible current value and a short history trace. The idea is to have many of these kinds of indicators on one display for an engine test stand- it allows the simple visualization of a lot of data all at once, and I am replacing an old data acquisition system with a similar display.
The meat of my question lies in how to take these indicators (which work pretty much the way I want) and duplicate the code thirty times without making a huge mess. I looked into subpanels but it seemed like that was also a complicated thing to do thirty times. Maybe it's just gonna be messy, but I hope there's some good/simple way to do this.
Making a custom control seemed like an option, but I couldn't figure out how to make the custom control contain both the waveform chart and the fill slide -- and then after that, how to make the colors alternate in the alarm state like I already have.
I'm asking before I spend a huge amount of time on it in case I need to start over!
If you think you might be able to help please have a look at the attached VI with six of these things already cloned and let me know your idea. I really appreciate it.
Matt
Solved!
Go to Solution.
Attachments:
Small Histogram Standalone.vi ‏55 KB

First of all, that's a pretty neat looking UI element you've come up with there!
To be honest, I think the most appropriate way to solve this would be to create an XControl for your UI element. It's quite an involved process if you haven't created one before but if you search for creating an XControl there's quite a lot of resources available.
If that seems a bit too involved/advanced, your idea of using Subpanels is probably the best solution - create a VI that shows the data and however many subpanels you need to display the data and load the VI into the subpanel. You'll obviously have to (an array of subpanel references works well for this) do the asynchronous calls and manage the VI references etc.
The key thing is that you will want to create your graph/slide combo only once and then repeat it where needed - either through an XControl or a reentrant VI loaded into a subpanel.
Certified LabVIEW Architect, Certified TestStand Developer
NI Days (and A&DF): 2010, 2011, 2013, 2014
NI Week: 2012, 2014
Knowledgeable in all things Giant Tetris and WebSockets

Similar Messages

  • ICloud storage space used up by old data from 1st gen iPad I traded in nearly 2 yrs ago for an iPad Mini. Can't backup any info for mini or new 6 plus. How can I access this old data to clear it out?

    My iCoud storage space is being used up by old data from a 1st  generation iPad I traded in nearly 2 yrs ago for an iPad Mini. The people at the sprint store where I made my trade were supposed to transfer everything over from my old iPad to the new Mini once they backed up the old device to iCloud. Well, long story short, none of the data ever got transferred to the new iPad, but it all got backed to iCloud, eating up all my storage space. Here I am almost 2 years later, and I've never been able to back-up my iPad mini. What's worse, My iPhone 4 wasn't backed up that whole time, and now I can't back-up my data from my new iPhone 6 Plus to iCloud either. Trying to find creative ways to store and save my information and data between all my devices is getting to be ridiculous. I don't want to upgrade my storage space though...just want to clear out a great deal of what is already being stored. How can I access this old data to clear it out?

    The only way to access data from an iCloud backup is to restore it to your device.  You could, for example, back up your iPad mini to your computer using iTunes (by connecting it, opening iTunes, then going to File>Devices>Back Up and choosing to back up apps and transfer purchases when prompted), then erase it and restore the old iPad backup (as explained here: iCloud: Restore or set up your iOS device from iCloud), save any recovered data you want to keep, then restore your iTunes backup back to your iPad mini (by connecting it to your computer, opening iTunes, then going to File>Devices>Restore from Backup).
    Once you're done with the old backup, delete it from your account to free up the space.

  • Canon Vixia HF R20 - How do I turn off the date display?

    How do I turn off the date display on my Canon Vixia HF R20? I do not want the date on my videos. I searched the manual and googled it and can't find an answer.

    Hello DaisyKary,
    When shooting with the VIXIA HF R20 you would be able to turn off most of the displays by pressing the [DISP. Batt. Info] button through a cycle.  It will change what is displayed on the camcorder's LCD panel.
    If this is an urgent technical support matter I would urge you to contact Canon technical support directly for further assistance.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • I am using OSX 10.9.5 and Outlook Web App for emails. When I download an attachment it replaces the space in the file name with   - how can I change this?

    I am using OSX 10.9.5 and Outlook Web App for emails. When I download an attachment it replaces the space in the file name with %20  - how can I change this?

    Click on the below link :
    https://get.adobe.com/flashplayer/otherversions/
    Step 1: select Mac OS  X 10.6-`0.`0
    Step 2 : Safari and FIrefox
    Then click on " Download Now"  button.

  • How can I get this code to display 20 lines

    I need to get this code I have written to display 20 lines at a time, then the 20 using the Enter key.
    How would I approach this?
    I thought of making a RandomAcessFile object, but that seems like overthinking the problem, and I'm not sure that I could get that to work anyway.
    import java.io.*;
    public class ReadIt
    public static void main(String[] args)
         throws IOException
              System.out.println ("Enter The Desired .java Filename.");
              System.out.println ("Do not add the .java extention.");
              String fname;
              EasyIn type = new EasyIn();
              fname = type.readString();
              String fndotjava = new String(fname + ".java");
              //System.out.println (fndotjava);
              File inFile = new File(fndotjava);
              InputStream istream;
              OutputStream ostream;
              istream = new FileInputStream(inFile);
              ostream = System.out;
              int c;
              try
                     while((c = istream.read()) != -1)
                           ostream.write(c);
              catch(IOException e)
                     System.out.println("Error: " + e.getMessage());      
              finally
                    istream.close();
                    ostream.close();                 
    }Thanks
    Brad

    Well, a RandomAccessFile together with a counter should work. However, you can also achieve this by buffering the input rather than writing it directly out
    java.util.Vector vect = new java.util.Vector();
    try{
         while((c = istream.read()) != -1){
             vect.append(c);
    catch(IOException e){
         System.out.println("Error: " + e.getMessage());      
    finally{
         istream.close();                 
    }     with the help of
    java.util.Vector.size() and
    java.util.Vector.elementAt(int index)
    you are able to display only 20 lines at a time, you just need the additional code for reading System.in
    public static void prompt(String s){
        System.out.print(s + " ");
        System.out.flush();
      public static String readData ( BufferedReader in)  {
        boolean verfuegbar = true;
        while ( verfuegbar){
          try{
            S = in.readLine();
            if ( S != null)verfuegbar = false ;
          catch (IOException e){System.out.print (e);}
        return S;
      }now it should work with
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    prompt("return for continuing");
    int twentscount = 0;
    int count = 0;
    do{
       while( count < 20 && twentscount+count < vect.size() ){
           outstream.write(vect.elementAt(twentscount + count).toString() );
           count++;
    prompt("return");
    readData(in);
    twentscount += 20;
    count = 0;
    while(twentscount + count < vect.size());sure, this is code from head, and you can make many changes (e.g. instead of using twentscount use the modulo (%) operator saving one variable (while count % 20 != 0 ).
    I'm also not sure if it will definitly run , since i haven't tested it (especialy for index borders).
    I hope this will give you enough hints for this possible solution.
    Adrian

  • When I pull up a document in Adobe Reader the apostrophe is replaced with ' How do you fix this?

    When I pull up a document in Adobe Reader from Oracle CRM the apostrophe is replaced with &#39; For example: ( PRICE 870-22&#39; ) It should be ( PRICE 870-22' ).  I can pull this up through HTML and it works fine.

    Ok, there are two main possibilities.
    1. It is an error in Oracle's PDF generator.
    2. The data is stored in this form in the database.
    My money is on the second choice, especially as you say "it is OK in HTML". &#39 is HTML coding for apostrophe. 
    Try doing a query of the data which doesn't involve HTML display, to check this out.

  • How DID I get this much data on my iPod Touch 1st gen?

    ITunes on my brand new MacBook Pro shows 3762 songs at 62.84 GB with 99.9999% of them being AAC encoded.
    My 1st gen 32GB iPod Touch holds ALL of that data, plus 210 apps -- and everything works/___sbsstatic___/migration-images/migration-img-not-avail.png Select any song at random and it will play. Select any app and it will run/___sbsstatic___/migration-images/migration-img-not-avail.png/___sbsstatic__ _/migration-images/migration-img-not-avail.png 62.84GB of songs on a 32GB Touch?? How did I do that? Plus, it STILL has 6.7GB available/___sbsstatic___/migration-images/migration-img-not-avail.png/___sbsst atic___/migration-images/migration-img-not-avail.png It's running iOS 3.1.3. I've added songs and apps over the years without any problems whatsoever.
    My wife has a 30GB iPod Video White (5th gen) -- it has 4342 songs, with 9.4GB still available/___sbsstatic___/migration-images/migration-img-not-avail.png I loaded everything I had in my iTunes, and she's been adding songs on her own. So hers ALSO has more GBs of songs on it than it was made to hold. And hers works fine as well.
    Now we get a brand new up-to-date 32GB iPod Touch 4th gen (Retina Display, FaceTime, etc). It's the latest and greatest (she got it through an employee incentive point plan at Boeing). I wasn't even thinking about how much data was in the 1st gen Touch -- my brain was just saying I've got all my songs and apps in my 1st gen, so I should be able to get all of it in the new 4th gen model. They're both 32GB, and the overhead (system, etc), is almost identical (okay, the 1st gen had 29+GB free and the 4th gen has 28+GB free). Still, pretty comparable.
    I tried to sync iTunes with the new 4th gen iPod Touch and it says only about 1500 songs (of the 3762 total) can be loaded. That's it. No more/___sbsstatic___/migration-images/migration-img-not-avail.png That would also mean NO apps at all.
    We tried to get this explained at a One-to-One meeting AND the Genius Bar at our local Apple Store, but NOBODY had an answer.
    How is it that my old 1st gen 32GB Touch can hold more than twice the GB of songs AND 210 apps at the same time, and work, while the new 4th gen Touch is doing "sorta" what's expected of it -- that is, running out of space with only 1500 songs
    One possibility is that both old iPod's began their lives under iTunes 9.x. But I've updated iTunes consistently as it has moved into v10 and both older models have had apps and music added using whatever the latest version of iTunes has been released.
    Could that be the reason? Has anybody heard of this before? Can anybody explain it? The guys at the store were stumped. So am I. They "apologized" and said they understood how we felt, but there wasn't any resolution to the question. Other than -- DON'T mess with the old models as long as they are working Yeah, but I'd like to see the NEW model behave the same Wouldn't we all?

    No, the option you mention is/was NOT checked. When I talked to two people at the Apple store (One-to-One) and the Genius Bar, they said that it was correctly set (that is, NOT checked), considering the files were ALREADY AAC encoded.
    As I posted, pretty much all of the songs are already encoded as AAC files. They have all been captured off CD's in that format, or purchased from iTunes in that format. They were transferred to the 1st gen Touch in that format, and the attempt was made to make the exact same transfer to the new 4th gen Touch in the exact same format -- with the result that barely half would transfer over to the new Touch.
    One would think that it might be set one way for the older model and one way for the newer, but that's not the case. As an FYI, I DID try checking that option after the first failure of getting everything to load, but it didn't make any difference.

  • How can I modify this code to display an image in an applet?

    Sorry, I'm almost positive this is absolutely incorrect, but here is what I have so far:
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.*;
    import java.io.*;
    import javax.imageio.*;
    import javax.swing.*;
    public class Blackberry extends JApplet implements ActionListener
         Image image;
        public void init()
            //image = getImage(getDocumentBase(), "bluespace.png");
            try { image = ImageIO.read(new File("bluespace.png")); }
              catch (IOException e) { }
        public void paint(Graphics g)
            g.drawImage(image, 0, 0, this);
    }There are no errors given when run as an applet in Eclipse, it just displays a blank window.

    Here's a small example of a JPanel that draws an image:
    import java.awt.Dimension;
    import java.awt.Graphics;
    import java.awt.Image;
    import javax.swing.JPanel;
    public class ShowImageJPanel extends JPanel
      private Image image;
      public ShowImageJPanel(Image image)
        this.image = image;
        Dimension size = new Dimension(
            image.getWidth(this),
            image.getHeight(this));
        setPreferredSize(size);
      @Override
      protected void paintComponent(Graphics g)
        super.paintComponent(g);
        if (image != null)
          g.drawImage(image, 0, 0, this);
    }and a JApplet that adds this JPanel into its contentPane:
    import java.awt.Image;
    import java.io.IOException;
    import javax.imageio.ImageIO;
    import javax.swing.JApplet;
    public class ShowImageApplet extends JApplet
      private static final String IMAGE_PATH = "images/SunSteinSmall.png";
      public void init()
        try
          javax.swing.SwingUtilities.invokeAndWait(new Runnable()
            public void run()
              createGUI();
        catch (Exception e)
          System.err.println("createGUI didn't successfully complete");
      private void createGUI()
        try
          Image image = ImageIO.read(getClass().getResourceAsStream(IMAGE_PATH));
          getContentPane().add(new ShowImageJPanel(image));
        catch (IOException e)
          e.printStackTrace();
    }Here I have a subpackage off of the applet's package called image, and it's filled with Duke images which you can download from here:
    [https://duke.dev.java.net/images/index.html]

  • I recently become an ACMT and in one of the documentaions they state that you get a certificate: "Display your personalized certificate and a logo that distinguishes you as an Apple Certified professional." How do I get this certificate to display?

    I became an ACMT not too long ago, but never received my certificate with my name on it. Is there a way that I can get that certificate still?

    These are user-to-user forums.
    Maybe you should start here:
    http://training.apple.com/certification/records

  • How do I design this in data warehouse?

    I am working on building a data warehouse for insurance quote data.
    Each quote will have an applicant and can have an optional co-applicant. Each applicant and co-applicant will have prior auto insurance history, prior home insurance history, current auto insurance information and current home insurance information.
    So do I create Applicant and Insurance dimensions here?

    Hi Ashan,
    Just so you know.
    I completely reworked our methodology of building data warehouses back in 2012. The new way of building data warehouses is quite different to the old way.  The way you listed.
    The methodology presentation is on this link.
    https://www.youtube.com/watch?v=Df4CgOtrFq8
    Video channels are here. http://www.instantbi.com/videos/
    Downloads are here: http://www.instantbi.com/company/downloads/
    I have been doing BI since 91 and what we have done now is industry leading. 
    I am an MSDN so we do our development on MSFT first and then deploy where ever our clients want us to deploy.
    Best Regards 
    Peter Nolan

  • I changed email address and had to delete my account and create a new one with the new email address. When I did this i lost all of the information in my calendar. How can I recover this vital information?

    My email address changed and I had to delete my account and create a new one with the new address. After I did this all of the data in my iPhone calendar is gone. How can I recover this vital data?

    It is my understanding that if you delete the account per the instructions below, you will be able recreate, but you will NOT have access to the prior BBM contacts.
    Read this for full information and suggestions to regain access to your BBID >> http://supportforums.blackberry.com/t5/BlackBerry-World/How-to-regain-access-to-your-BBID/td-p/25467...
    You have to remember either the BlackBerryID password, or the secret question answer. Without either, you're stuck.
    Your choices are:
    --Use another email account to create an entirely new BlackBerryID (with which you will lose access to any purchased apps using the "forgotten" first BlackBerryID, or
    --Find the initial email you were sent to confirm the initial BlackBerryID, and in it is a link to click to cancel and delete the account. Click on that, delete the account and then you can use that same email to create an entirely new account.
    Good luck.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • I dont know the admin password and i dont have a disc how do i bypass this

    i need to access admin privlages but i dont have the password and i didnt recive the disc it came with how do i bypass this so i can become a admin?

    It is best to get a disk. Ring an Apple store and they may be able to provide a replacement for your original disk.
    The other benefit of owning a disk is it can be used to repair your hard drive.
    Without a disk it is like driving a car without a spare. Most of the time you don't need it except for the time when you do, and then you are stranded.

  • How can i convert this data(00000000) into date format(yyyy-MM-dd)

    Hi,
    i am using this method to convert date format from string.
    public static string FormatDate(string inputDate, string inputFormat)
                System.DateTime date = DateTime.ParseExact(inputDate, inputFormat, null);
                string datepresent = DateTime.Now.Date.ToString("yyyy-MM-dd");
                return datepresent;
    its working properly,
    but when input data is like 00000000 i am getting error this is not valid.
    how can i convert this into date format any help..!

    Have you tried the above code:
    I can see it is working with both Date and DateTime destination nodes.
    Map:
    Functoid Parameters:
    Functoid Script:
    public static string FormatDate(string inputDate, string inputFormat)
    string datepresent;
    if (inputDate == "00000000")
    datepresent = "0000-00-00";
    else
    System.DateTime date = DateTime.ParseExact(inputDate, inputFormat, null);
    datepresent = date.ToString("yyyy-MM-dd");
    return datepresent;
    Input:
    <ns0:InputDateString xmlns:ns0="http://DateFormat.SourceSchema">
    <DateString>00000000</DateString>
    </ns0:InputDateString>
    Output:
    <ns0:OutputDate xmlns:ns0="http://DateFormat.DestinationSchema">
    <Date>0000-00-00</Date>
    </ns0:OutputDate>
    If this answers your question please mark as answer. If this post is helpful, please vote as helpful.

  • How can I have this widget effect in Eclipse platform?

    Well, my project now demands such a widget in user interface with the requirements as follows:
    This widget can display both text, icon, and even button. If the text on it is too long to display completely, omission marks should replace the redundant words. It is also selectable which is similar to a cell in the JTable, but it should support displaying icons as I said, and should only be scaled in size horizontally but never vertically.
    Fortunately, I find that a component in the dialog shown during build or update process meets my request. Does anybody who is familiar with SWT know
    how this is managed? That is, which widget(s) should I use? Or can Swing meet my demand? By the way, here is the capture image of eclipse dialog I concerned: http://freehost21.websamba.com/utarget/Eclipse_snap.jpg
    Many many thanks!

    Widgets. You'll need to probably create a subclass of JPanel, which will have a JLabel for the icons, and a JButton.
    You'll probably need to call setPreferredSize(..) on the button to obtain the text trailing effect when the text overflows the boundaries.
    Also, you could add a mouseListener to the panel to create the selection effect when it is clicked, or when any of its sub components are clicked. (recursion methods help to achieve this).
    Scaling in size, now that is tricky. To do this, you'll probably have to calculate the width of the panel manually, by summing up the heights of the components and maintaining a fixed width. No an easy task though.
    This is a nice component, so get writing. Here is a little help with the recursion
    public void setComponentEnabled(Component c, boolean b) {
       c.setEnabled(b);
       if(c instanceof Container) {
            Container co = (Container)c;
            for(int x = 0; x < co.getComponents().length; x++) {
                  setComponentEnabled( co.getComponents()[x], b);
    }Go on and have some fun. Check in if you have any more problems. Other are always willing to help if they can.
    ICE

  • The DOB stored in my iPad is incorrect, how can I rectify this

    The DOB stored in my iPad is wrong ,how can I fix this?

    Date of birth where? In your contacts app? Just edit your contact. Tap the Edit button and change it on your vCard in the contacts app.
    If that's not what you're talking about, you need to explain where you want to do this.

Maybe you are looking for