How do I easily configure a graph in a subvi to look exactly the same as my main VI, except for the size?

I'm looking to improve my code...
I have a small main vi (800x600) that contains a graph.  I created a subvi (modal dialog) that will size itself to the user's actual display, and that contains a graph configured to "Scale object with pane."  My main VI passes a reference to its graph into the subvi, and I can configure the subVI's graph to have the same x scale, y scale, cursors, value, etc. so that my subvi acts like a "full screen" view of the main VI's graph. I do this by using a big property node that reads about 10 properties using the incoming reference, and then writes them to a property node linked to the subVI's graph.  This works well, but I wonder if it's not the best way.  How can I copy all properties at once so that I can avoid making my list of properties to "copy" extremely long and/or incomplete?
(I don't want users to resize the main VI, because controls end up in undesirable locations)
Thanks,
Alan
Alan Blankman, Technical Product Marketing Manager and LabVIEW Developer
LeCroy Corporation
800-553-2769 x 4412
http://www.lecroy.com
[email protected]

Hi Alan,
Off hand the only way that I know of to accomplish what you are after is what you are trying to avoid. I have handled similar situations by making the graph in question into a VI that runs in a sub-Panel. The VI running in the sub-panel can be removed from the sub-panel and its FP shown if the user want to re-size it. The zip I posted here called Docking.zip shows how to manage the docking and un-docking. For your case I would make sure the graph was the only object on the FP and set teh FP to re-size objects with the screen.
Well.... I hope that gives you some ideas.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction

Similar Messages

  • Anyone has an idea how to connect and configure my Airport express to an internet range extender which is plugged into mains

    Anyone has an idea how to connect and configure my Airport express to an internet range extender which is plugged into mains?
    Message was edited by: m. emin

    You can connect it but with ethernet cable. You can not connect it by wifi to extend the range a second time.
    BTW AE is rather sensitive to connect by wifi to non-apple wifi routers.

  • I "Reset Firefox – easily fix most problems", but it doesn't look like the view on getting started: ie

    I "Reset Firefox – easily fix most problems", but it doesn't look like the view on getting started tutorial, ie: there's no "Firefox tab". I would really like to clean out all the old stuff, including add-ons and plug-ins that I've tinkered in, but don't know about or need any more, then start fresh with the latest Firefox. How can I do that?

    The Firefox button does not or did not showupon Windows XP by default.
    It is easy to display that just remove the option to display the menu bar toolbar. Note
    # The functions and available optons are much the same just organised differenttly
    # Menu tool bar may be displayed temporarily; even if the Firefox Button is present: by holding down the keyboard '''Alt''' key
    #To remove the menu toolbar use '''View -> Toolbars -> []Menu Toolbar'''<br /> see [[Display the Firefox button menu instead of the menu toolbar]]

  • How do I transfer data from old hard drive to new mac exactly the same as it was on my old one?

    Unfortunately my 2009 iMac has been written off due to a faulty motherboard. Thankfully the company we got the mac from are providing me with a brand new one at no cost as I am under warranty. My old hard drive had many important documents and applications on it and we have requested for the old hard drive back. What I would like to know is how to I go about transferring all the stuff of my old hard drive to my new iMac? I would like everything to be set out exactly the same as it was on my old mac so basically I would like it cloned identical on my new mac from my old hard drive.
    Thanks Nathan

    In general, most people will recommend Carbon Copy Cloner or SuperDuper! You can find either one easily enough with a web search.
    However, in your case, I imagine you are going to have a hard disk returned to you all by itself, and you will need to install it in an enclosure. Don't let that bother you as this is easy to do and the enclosures are not expensive ($40 or so).
    Once that is done, I would recommend you set up your brand new Mac by answering all the questions during initial setup as usual. Be sure to use your correct Apple ID - probably the same one you used to log into this support forum. When you reach the point in which it asks you if you would like to transfer your old documents and settings, connect the old hard disk and select it as the source. It will take some time as it copies all its contents to your new Mac. All your familiar items will be exactly as they were on the failed Mac.
    After that, you can use the old hard disk as a Time Machine backup. When you are satisfied everything on your new Mac is running as it should, go ahead and erase the old disk. Then, tell Time Machine to designate it as a backup, and the rest is automatic.

  • I know how to make firefox 12's tabs go to the bottom, but even so they still dont look exactly as they did in 3.6, how do I make them look exactly the same?

    Considering a few websites stopped working for me seeing as I was still using 3.6.X, I reluctantly decided to finally upgrade today, and it automatically upgraded to version 12. Needless to say, I wanted it to look exactly as it did in 3.6.26, and I spent a good portion of the day tinkering with various add-ons and the like to get things back the way they were. One thing is still bugging me though, the tabs, which I managed to get to the bottom of the screen, still dont look exactly as they did. There used to be a small dividing line between the tabs and the actual page, and the + on the new tab button was smaller (and I know this all seems rather picky, but it does bother me). And while I'm at it, is there any add-on that will give me the same back/forward, X, refresh, and home icons as 3.6.26? Any help is greatly appreciated. Thank you.

    Try this extension for the button:
    *Classic (Small) Toolbar Buttons: https://addons.mozilla.org/firefox/addon/cstbb/
    It should be possible to get the needed modifications.
    You can check out this MozillaZine forum thread and ask there for advice about how to tweak the user interface.
    *http://forums.mozillazine.org/viewtopic.php?f=7&t=2057009

  • How  to verify yum configuration  in OEL . is there any way  to rollback the package

    Hi ,
    How we can verify  the yum configurtion . is there any way to rollback the package using yum
    Also  let me know how to rollback packages that upgraded using up2date .

    Hi ,
    There is nothing  in  yum.repos.d directory  and  below are  entries in /etc/yum.conf file . can you  please  cnfirm wherther yum is configured or not
    yum.repos.d]# ls -ltrh
    total 0
    #cat /etc/yum.conf
    [main]
    cachedir=/var/cache/yum/$basearch/$releasever
    keepcache=0
    debuglevel=2
    logfile=/var/log/yum.log
    exactarch=1
    obsoletes=1
    gpgcheck=1
    plugins=1
    installonly_limit=3
    #  This is the default, if you make this bigger yum won't see if the metadata
    # is newer on the remote and so you'll "gain" the bandwidth of not having to
    # download the new metadata and "pay" for it by yum not having correct
    # information.
    #  It is esp. important, to have correct metadata, for distributions like
    # Fedora which don't keep old packages around. If you don't like this checking
    # interupting your command line usage, it's much better to have something
    # manually check the metadata once an hour (yum-updatesd will do this).
    # metadata_expire=90m
    # PUT YOUR REPOS HERE OR IN separate files named file.repo
    # in /etc/yum.repos.d

  • How do i find a purchased item by searching and not looking thru the whole list?

    I need to find an item that was purchased without having to look page by page?

    Try Here >  http://support.apple.com/kb/HT2519

  • How can I embed Variant To Data in a subVI and pass in the Type input?

    If I use Create Control on the Type input of Variant To Data, I get an undefined type error unless I insert a control of a specific type into the cluster control that was created. This seems to prevent passing a parameter into a subVI for this purpose.

    > I'm interested in extending the functionality
    > of Variant to Data, such as using it or not based
    > on an additional input. Clearly, LabVIEW will not
    > allow this with the current design.
    I do not see what you mean by "using it or not based on an additional input". What would the output of this function be, if it were "not used"? What exactly are you trying to do?
    Personally, I have long wanted a polymorphic data type. If a polymorphic control were connected to a VI's connector pane, it would be defined by the calling VI. Once a calling VI wired a data-type to a polymorphic input of a subVI the type would propogate into the subVI.
    > As to the existing documentation on the type data
    > returned by Flatten to String, I find it
    rather
    > incomplete.
    With the release of LabVIEW 7, NI has updated App Note 154 to include some more data types (and subtypes). If you haven't seen this, I suggest you take a look.
    > I have created many types that cannot be decoded
    > using the available documentation. This alone,
    > makes an analytical solution difficult.
    Do you mean compound data types like clusters and arrays? Almost all data types can be decoded just fine with the available documentation. The only types that are not very straight-forward are the waveform data type, refnums, and typedefs. If you give me an example, perhaps I can help.
    > Adding
    > LabVIEW version dependency really makes this
    > solution fragile.
    I don't agree. LabVIEW may add new types in new versions of LabVIEW, but fundamentally the typecodes and structure of flattened LabVIEW data types have not changed at all (even though NI does reserve the right to change this in future releases of LabVIEW). Do have specific examples of t
    his?
    Cheers,
    -Jim

  • How come when I save a image to Jpeg, I can't see the size of the file?

    This is the message I get (below). I used to be able to see it previously. I just went back from windows 8 to win 7 and had to reinstall photoshop, an now I have this issue. Someone can tell me what I need to do to be able to see it again?
    Thanks

    You should see the file size in that dialog box if your image is an 8-bit image.
    But in any case, Trevor has it right: use Save for Web.

  • How to calculate the size of DB given the transaction and the INVT

    Hi,
    I need to know the size of a database
    transactions/day-900
    Total Items=12,200
    We are preparing for a proposal .The above is the descriptions given by the client.
    How to estimate the size of database We need to design a hardware configuration
    Can anyone help me
    Maran.

    Any clue regarding the size of the row in the 900 transactions per day?
    Will there be a single table updated per transaction or multiple tables?
    Will the transaction be of type insert mostly?
    If it is going to be insert only, then probably you can estimate the database size based on size of row * 900 transactions per day... You need to consider if there will be other tables affected via triggers.
    Also, the size of the indexes defined on these tables will contribute to the database size.
    No idea as to what do you mean by 12,200 items.
    Message was edited by:
    satishkandi

  • How do i delete my first icloud account and set up a new one to be my main icloud account?, how do i delete my first icloud account and set up a new one to be my main icloud account?

    how do i delete my first icloud account and set up a new one to be my main icloud account for photostreaming and document synching?

    Welcome to the Apple community.
    Settings > iCloud, scroll down and delete account, create a new account and add it back.

  • How can I see the size of my music library in iTunes?

    How can I tell the size of my music library in iTunes?

    Select Music in iTunes (top left), select Songs (top right)
    then at the bottom status bar will show how many you songs you have and how long it will play (in days if it a big collections) and the size (in GB) taken.

  • How to call Graphic builder's Graph in 9i Reports

    Hi everybody,
    I have a graph in graphic builder.I want to print this graph on report.
    I need your help please.
    Asif

    Hello,
    In http://www.oracle.com/technology/products/reports/htdocs/faq/graph_faq_with_style.html#q102
    Can I still run my existing Oracle Reports Developer 6i reports containing Oracle Graphics charts in Oracle Reports?
    As noted in the Oracle Reports Statement of Direction, Oracle Graphics is no longer shipped with Oracle Reports. However, as part of the migration path, you can still run Oracle Graphics charts in Oracle Reports if you install the Oracle Graphics 6i engine in a separate Oracle Home. You should only maintain Oracle Graphics 6i as a temporary measure while you redesign your charts using the new Graph Wizard. For further details on how to configure Oracle to use Oracle Graphics 6i, please see the Graphics Migration section in the Oracle9i Application Server Migration from Oracle9iAS Release 1 (1.0.2.2.x) to Release 2 (9.0.2) manual.
    Regards

  • Configuring ADF Graph Component

    Hi all,
    Can you help me to find any document that explains how to configure a graph component in a ADF Swing application?
    I've seen a lot of documents about DVT Graph component but they do not apply to Swing.
    Is there any wizard that can be used in this case, as I see in ADF Faces Documentation?
    TIA,
    Luis

    Hi Luis,
    It is possibel to sue DVT Graph in a Java client application. For documentation, you would have to use DVT Javadoc to call java methods on oracle.dss.graph.Graph class.
    I can send you some sample apps off-line if you contact me: katarina obradovic at oracle.
    Hope this helps
    Katia

  • How can i wrote configuration file in Log4j

    iam new log4j .i have seen one small programme in log4j examples folder ..i e. shown below
    Sort.java
    =====
    package examples;
    import org.apache.log4j.PropertyConfigurator;
    import org.apache.log4j.Logger;
    import org.apache.log4j.Priority;
    Example code for log4j to viewed in conjunction with the {@link
    examples.SortAlgo SortAlgo} class.
    <p>This program expects a configuration file name as its first
    argument, and the size of the array to sort as the second and last
    argument. See its <b>source
    code</b> for more details.
    <p>Play around with different values in the configuration file and
    watch the changing behavior.
    <p>Example configuration files can be found in <a
    href="doc-files/sort1.properties">sort1.properties</a>, <a
    href="doc-files/sort2.properties">sort2.properties</a>, <a
    href="doc-files/sort3.properties">sort3.properties</a> and <a
    href="doc-files/sort4.properties">sort4.properties</a> are supplied with the
    package.
    <p>If you are also interested in logging performance, then have
    look at the {@link org.apache.log4j.performance.Logging} class.
    @author Ceki G&uuml;lc&uuml; */
    public class Sort {
    static Logger logger = Logger.getLogger(Sort.class.getName());
    public static void main(String[] args) {
         if(args.length != 2) {
              usage("Incorrect number of parameters.");
         int arraySize = -1;
    try {
              arraySize = Integer.valueOf(args[1]).intValue();
              if(arraySize <= 0)
                   usage("Negative array size.");
    catch(java.lang.NumberFormatException e) {
    usage("Could not number format ["+args[1]+"].");
    PropertyConfigurator.configure(args[0]);
    int[] intArray = new int[arraySize];
    logger.info("Populating an array of " + arraySize + " elements in" +" reverse order.");
    for(int i = arraySize -1 ; i >= 0; i--) {
              intArray[i] = arraySize - i - 1;
    SortAlgo sa1 = new SortAlgo(intArray);
    sa1.bubbleSort();
    sa1.dump();
    // We intentionally initilize sa2 with null.
    SortAlgo sa2 = new SortAlgo(null);
    logger.info("The next log statement should be an error message.");
    sa2.dump();
    logger.info("Exiting main method.");
    static void usage(String errMsg) {
         System.err.println(errMsg);
         System.err.println("\nUsage: java org.apache.examples.Sort " + "configFile ARRAY_SIZE\n"+
    "where configFile is a configuration file\n"+" ARRAY_SIZE is a positive integer.\n");
    System.exit(1);
    and
    SortAlgo.java
    ==========
    package examples;
    import org.apache.log4j.Category;
    import org.apache.log4j.NDC;
    Example code for log4j to viewed in conjunction with the {@link
    examples.Sort Sort} class.
    <p>SortAlgo uses the bubble sort algorithm to sort an integer
    array. See also its <b>source
    code</b>.
    @author Ceki G&uuml;lc&uuml; */
    public class SortAlgo {
    final static String className = SortAlgo.class.getName();
    final static Category CAT = Category.getInstance(className);
    final static Category OUTER = Category.getInstance(className + ".OUTER");
    final static Category INNER = Category.getInstance(className + ".INNER");
    final static Category DUMP = Category.getInstance(className + ".DUMP");
    final static Category SWAP = Category.getInstance(className + ".SWAP");
    int[] intArray;
    SortAlgo(int[] intArray) {
    this.intArray = intArray;
    void bubbleSort() {
    CAT.info( "Entered the sort method.");
    for(int i = intArray.length -1; i >= 0 ; i--) {
    NDC.push("i=" + i);
    OUTER.debug("in outer loop.");
    for(int j = 0; j < i; j++) {
         NDC.push("j=" + j);
         // It is poor practice to ship code with log staments in tight loops.
         // We do it anyway in this example.
         INNER.debug( "in inner loop.");
    if(intArray[j] > intArray[j+1])
         swap(j, j+1);
         NDC.pop();
    NDC.pop();
    void dump() {   
    if(! (this.intArray instanceof int[])) {
    DUMP.error("Tried to dump an uninitialized array.");
    return;
    DUMP.info("Dump of integer array:");
    for(int i = 0; i < this.intArray.length; i++) {
    DUMP.info("Element [" + i + "]=" + this.intArray);
    void swap(int l, int r) {
    // It is poor practice to ship code with log staments in tight
    // loops or code called potentially millions of times.
    SWAP.debug( "Swapping intArray["+l+"]=" + intArray[l] +
         " and intArray["+r+"]=" + intArray[r]);
    int temp = this.intArray[l];
    this.intArray[l] = this.intArray[r];
    this.intArray[r] = temp;
    This program expects a configuration file name as its first
    argument, and the size of the array to sort as the second and last
    argument. See its <b>source
    code</b> for more details.
    please help me how can write that configuration file
    thanks

    Hi bala,
    check that log4j manual I pointed to in yer previous thread.
    This is a pot-boiler config file... Copy it into some file say "props.conf" and use it.
    # Set root logger level to DEBUG and its only appender to A1.
    log4j.rootLogger=DEBUG, A1
    # A1 is set to be a ConsoleAppender.
    log4j.appender.A1=org.apache.log4j.ConsoleAppender
    # A1 uses PatternLayout.
    log4j.appender.A1.layout=org.apache.log4j.PatternLayout
    log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%nCheers,

Maybe you are looking for