Having trouble sizing multiple graphs using a For Loop in Excel.

I am creating multiple graphs in Excel using LabVIEW but I can only set the size for the first graph.  The others are ignored.  I am using the Excel Insert Graph Vi.  I can change the position of al 4 graphs and i can change the size of the first graph created but not the others.  Simply create and save a blank Excel workbook and use it when it prompts for the file.  Here is my my code.  Will someone please let me know what is going on.  Thanks.
Attachments:
Excel Graph Test.vi ‏88 KB

If anyone is still following this thread, I have discovered a solution to the problem of resizing multiple graphs in Excel with the Report Generation Toolkit.  The problem seems to occur because subsequent graphs that are added to the report are configured to "Lock Aspect Ratio", which means you cannot assign a width and height to the graph that would violate its initial width/height proportions.  I was able to get around this behavior by defining the object's position and dimensions after creating the object, as opposed to defining them at the same time the object was created.  This problem will be fixed in a future release of the Report Generation Toolkit.  For now, you can fix the problem yourself by modifying vi.lib\addons\_office\excel.llb\Excel Insert Graph.vi.  Here is a screenshot of the affected area of code as it is currently implemented:
And here is a screenshot of what the code looks like after my modifications that fix the problem:
By assigning the dimensions after turning off the "Lock Aspect Ratio" feature, we see that all the subsequent graphs are sized correctly.
Please let me know if you have any questions on this fix.
-D
Message Edited by Darren on 07-06-2006 04:48 PM
Darren Nattinger, CLA
LabVIEW Artisan and Nugget Penman
Attachments:
Add_Chart_AFTER.jpg ‏91 KB
Add_Chart_BEFORE.jpg ‏53 KB

Similar Messages

  • Create multiple VIs using a for loop

    Hi,
    I'm still pretty new to LabVIEW, so this question might be easy for you guys here..
    I'll simplify what I'm trying to do.
    I've got two numeric controllers that act as the rows and columns of a matrix.
    I'd like to take those numbers from these two controllers and use them to create a matrix of a certain picture.
    Example:
    The rows controller is given 3, and the columns controller is given 4.
    Using these numbers I would like the end result to show a certain image (let's say, a cube) multiplied on a 3 by 4 matrix.
    Let's say the picture is an X, then the end result should be:
    XXXX
    XXXX
    XXXX 
    I think I should be using a double for loop (one inside the other obviously), and I should also create the "position" property in order to display each picture of the cube in it's right place.
    The problem is that I don't know how to CREATE the pictures over and over again, while being able to control each one's position property.
    Any help would be GREATLY appreciated!
    Solved!
    Go to Solution.

    1) By "multiple VIs" I meant that I think that I need to create express VIs on the fly while running the for loop. I might be totally wrong here.
    2) Yes, by "numeric controllers" I meant numeric controls in the front panel.
    3) The matrix I'm referring too isn't an object nor a VI in LabVIEW but a virtual matrix that is the end result. I used the term "matrix" because the end result is actually a matrix (of rows and columns) of pictures..
    I'll try to elaborate and even simplify it more:
    Let's say I want to display one picture. That's easy, no problem there.
    Now let's say that I'd like to display n pictures on a one dimensional array. Just one row.
    What I think I need to do is to read from the numeric control in the front panel the number (n) of pictures, and then create them in a for loop, while using the "position" property to set the distance between each picture (using coordinates).
    My original question was just like the above, but for a two dimensional matrix/array. So I guess we can even simplify it even more, by saying it's only one dimensional.
    My way of action here might be totally wrong, and there might be an easier way or another way to go about this...
    Thanks for the quick answer!!  

  • Having trouble with multiple user accounts

    I am still getting used to Aperture and am having trouble with multiple user accounts on my Mac.
    My wife and I have separate accounts on our Mac, and both have Administrator rights. We keep our Aperture library in the "Shared" folder, and I have made sure that both she and I have read/write capabilities on the Aperture library.
    However, she has difficulty creating new projects, saving data, and viewing thumbnails in Aperture. Whenever she creates a project, it does not save into Aperture, and cannot be viewed by any user. In addition, changes she makes to photos do not save. She also cannot view thumbnails of any photos (although she can see the photos in the viewer).
    Are there any changes I need to make to the user accounts so she can have all these capabilities?
    Many Thanks.

    Rather than having the Aperture library reside in the shared folder, keep it within a folder residing at the top level of your mac, eg.
    I actually keep mine on one of my RAID disks.
    Tony

  • I am having trouble, my icloud is using an old Apple ID, and i can no longer access that email account, or know the password to that, how do i switch it?

    I am having trouble, my icloud is using an old Apple ID, and i can no longer access that email account, or know the password to that, how do i switch it to my new Apple ID?

    Having the email address is not necessary. It is just the username for the device. All you need is that Apple ID and password. Now, if you forgotten the password, then you have more work to do. Since that email is no longer active, you would need to send the reset to your rescue email, if you remember that. Or you will need to contact Apple Security for help. Apple ID: Contacting Apple for help with Apple ID account security

  • Having trouble with internet connections using my Apple G5. Updates turn out to be incompatible with my system. What should I do short of trashing the wonderful computer and spending cash I don't have on a new iMac?

    Having trouble with internet connections using my Apple G5 OSX 10.4.11. Attempts to upgrade FireFox or Safari results in being incompatible with with this system. Tried to locate earlier versions to replace upgraded incompatible software only to find that problems have worsened with crashing results. What should I do short of trashing this wonderful G5 and purchasing a new iMac which I really can't afford?
    Chuck's Dilema

    Hi Chuck,
    TenFourFox is the most up to date browser for our PPCs, they even have G4 & G5 optimized versions...
    http://www.floodgap.com/software/tenfourfox/
    I'd avoid vesrion 24 though, as it no longer supports plug-ins like Flash.
    SeaMonkey seems pretty fast also, with many options...
    http://www.seamonkey-project.org/
    http://www.seamonkey-project.org/releases/
    Might also look into iCab & OmniWeb versions.
    Also...
    The last really supported Flash for PPC was 10.1.102.64, but if it's for like Facebook or such, people have been fooling FB to think they have a leter version installed.
    Texas Mac Man's Flash hack/post...
    https://discussions.apple.com/thread/3599648?tstart=0
    Flash player 11.1 hack on PowerPC - https://discussions.apple.com/message/16990862
    Might be later ones around also... saw 11.3 I think.
    (If you are running a PPC Mac with Flash Player 10.1.102.64 and are having problems with watching videos on FaceBook or other sites, contributor Texas Mac Man suggests the following solution which fools the site into thinking that you are running the latest version:)
    Download this http://www.steelbin.com/FPforFBPPC.zip to your desktop, unzip it, and replace the current Flash Player plug-in which is in your main/Library/Internet Plug-Ins folder, (not the user Library). Save the old one just in case this one doesn't work.
    See in each Browser which version of Flash it thinks it has...
    http://kb2.adobe.com/cps/155/tn_15507.html

  • My ipad is connected to my wifi, however when i try to sign my ipad into facetime is says that it is having trouble connecting. I use my wifi to get on the internet on my iPad so i have no idea what the problem is. Help Me

    My ipad is connected to my wifi, however when i try to sign my ipad into facetime is says that it is having trouble connecting. I use my wifi to get on the internet on my iPad so i have no idea what the problem is. Help Me

    - Did it successfully connect to the network before?
    - Do other devices successfully connect to the network now?
    - Does you iPod successfully connect to other networks?
    - Have you reset your iPod?
    Press and hold the On/Off Sleep/Wake button and the Home
    button at the same time for at least ten seconds, until the Apple logo appears.
    - Reset network connections: Settings>General>Reset>Reset Network Settings
    - Powered off and then back on your router
    - The troubleshooting here:
    iPhone and iPod touch: Troubleshooting Wi-Fi networks and connections
    -When you restored you iPod did you restore to factory defaults/new iPod?  If not try that.
    - If you look at the network properties on the iPod what IP address is assigned when you think you are connected but actually have no internet connection.  If it starts with 169 then the iPod never connected to the router, the 169 address are self assigned.

  • Is anyone else having trouble syncing an iphone using bluetooth?

    Is anyone else having trouble syncing an iphone using bluetooth? I get a message that says pared , but not connected.

    Everyone!
    You can't syncing your iPhone via blutooth. BT is only for hands-free and tethering. You can sync via cable or wi-fi.only.

  • Having trouble verifying my rescue email address for my daughters iPad update. Each time I put in my apple id and password it is rejected

    I Am having trouble verifying my rescue email address for my daughters iPad software update. Every time I put in my apple id and password it is rejected. I know it's right because I used it to sign in here v

    If you do not have a Rescue email (secondary email), you need to contact apple support, they will guide you through the process of resetting your security questions.
    https://ssl.apple.com/emea/support/itunes/contact.html

  • I'm having trouble finding the HEALTH magazine app for my iPad.  The mag insists that it has a free app.  Help!!

    I'm having trouble finding the HEALTH magazine app for my iPad.  The mag insists that it has a free app.  Help!!

    What country are you in ? Is this the app : Health magazine ?

  • [SOLVED] Having trouble making QT apps use GTK theme

    Hello everyone, I'm having trouble making QT apps use my GTK theme in openbox.
    Some apps seem to work just fine but others don't.
    ^Such as above, as you can see VLC is working, as is qtconfig, but k9copy and k3b are not.
    I've did the suggestions that are listed in the wiki. (http://tinyurl.com/ybhb7yr)
    And even rebooted after I did them, still no go.
    My .gtkrc-2.0 file simply contains:
    gtk-theme-name="Clearlooks_blackblue"
    gtk-icon-theme-name="Tango"
    Does anyone have any ideas why it's not working with k9copy and k3b/how to fix it?
    Thanks.
    Last edited by tgblb (2010-03-22 02:39:31)

    anonymous_user wrote:k9copy and k3b are KDE apps not Qt.
    Yes, but don't they use QT?
    And if not, what do they use? lol. And is there anyway to make them use my GTK theme?

  • Having trouble blocking specific websites using terminal mode.

    Having trouble blocking specific websites using terminal mode.  Using 10.6.3, Safari.  I have tried nano sudo and nano ipfw suggestions found online, nothing seems to work.  Any suggestions?  Thanks.

    Sorry...never mind.  This one worked.
    https://discussions.apple.com/message/10974058#10974058

  • Is there any point in having an ORDER BY clause within a FOR LOOPs counter?

    DB Version:10.2.0.1.0
    I need to loop through empno's using a FOR loop. But is there any point in having an Order by clause within SQL as shown below. This only degrades the performance because of the unnecessary sorting by the ORDER BY clause. Right?
    begin
    FOR i IN (select empno from emp ORDER BY sal ASC) LOOP 
        curr_stat_id := i.empno +p_gennum;
    .

    First question you should ask to your self is
    "Do i need a FOR LOOP. Cant i do it in a straight SQL"
    If the answer is NO (Which is not in several cases) then the next question is.
    "What is my requirement"
    Having an order by in the Select is totally pertained to your requirement. If your requirement
    says you should loop through the employee based on there salary for lowest to highest then yes you
    need an order by.
    So more than performance point of view its requirement point of you. But if you are more concern about
    performance you will first ask to your self
    "Do i need a FOR LOOP. Cant i do it in a straight SQL"
    Thanks,
    Karthick.

  • Using a For Loop Index for Array Element Number?

    Hi.  Thanks in advance for the help.  I can't seem to find what I want to do here using the search function... probably because I don't know how to frame the question appropriately.  Ignore the title to this post cause it's probably wrong vocabulary for what I want to do.
    Here's the situation:
    I have a 2D array where the first column is the X data and each subsequent column is Y data (call it Y1...Yn).  The n-value varies from run to run (some runs have 4 columns of data, some have 20), but that is easily gathered when reading the data file.  I need to perform a number of operations on each set of data, the least of which is smoothing the data and graphing it, so I'm limiting my discussion to these 2 operations.
    What I want is a for loop structure where the indexing of the loop tracks the Y1...Yn columns, grabs each column for the iteration, performs the relevant analysis, and spits out the result, but in a stackable manner.  Thus the title; I want to use the for loop's index to mark the array element for building a new array.
    See the image attached.  A 2D array of 9 columns (X, Y1...Y8) is analyzed such that each data set, (X, Y1), (X, Y2)...(X, Y8) is bundled, graphed, run through a B-spline Fit, of which is also graphed.  I need to replace this with something that looks like the for loop structure shown.  
    I just don't know how to get those two data bundles [(X, Yi) and it's smoothed pair] out of the for loop in a stacked set from every iteration of the for loop.
    Again the title, I think I want to build a new array where i use the index of the for loop to control the entries of the new array.  But I can't see how to do that.
    Any help would be appreciated.
    Attachments:
    NeedForLoopForThis.PNG ‏30 KB

    Hello H.R. Dunham, and welcome to the forum!
    It seems that you may be looking for Auto-Indexing, a basic feature of loops in LabVIEW.  You'll need to transpose your array before wiring it into the for loop, as elements are auto-indexed by row before column, but at that point you should be able to operate on each column and output an array of n cluster elements corresponding to your input columns.  Auto-indexing tunnels look like brackets to indicate each element will be indexed automatically- this should be the default when wiring an array into a for loop or when wiring anything out of a for loop.
    As for how to build your pairs, I suggest removing the X column and creating a "starter" cluster containing your X data and placeholder Y data before entering your "Y" processing loop.  Use the bundle by name function in the for loop to insert your processed column data into the cluster and auto-index the cluster output. Flow would be something like this:
    1) Gather data
    2) Split X and Y using standard array operations
    3) Create "template" cluster with shared X data
    4) Pass template cluster and Y-column array into an auto-indexed for loop.
    5) Insert processed Y data into cluster inside loop.
    6) Auto-index cluster data out of loop.
    This tutorial is probably also a good place to get started:
    Getting Started with NI LabVIEW Module 3: Loops
    http://www.ni.com/white-paper/7528/en/
    Hope that helps!
    Regards,
    Tom L.

  • Using a For loop to call one array element at a time

    I have been working on a VI that reads a GPS unit, parses the data, outputs what I need, compares the actual GPS location to the desired location, determines a desired heading and moves on from there.  My question pertains to the number of desired locations I can input right now.  I need to be able to input a predtermined number of locations (not just the one that I can input right now).  I was told that it is possible to use a For Loop with an array and have the first set of Lat and Long values run through the VI and when everything is complete that the next set of values will be chosen.  Does this mean that I need to put the entire VI inside a For Loop and have the array update as soon as the VI has completed its first mission?  I understand the concept of how this work from other programming languages but I'm not sure how to implement the solution in LabVIEW.  Any help would be appreciated.
    Adam

    adamoutlaw wrote:
    Here is a portion of the VI.  I need two separate arrays, one for Latitude and one for Longitude, of the same size.
    I don't see any arrays in your code. Do you want to generate arrays form individual data points or do you want to process arrays, one element at a time? Both can take advantage of autoindexing. Here's a simple picture.
    Your VI contains a weird mix of DBL and EXT precision. Most likely all you need is DBL. Keep your representations consistent!
    Message Edited by altenbach on 08-02-2007 07:14 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    Indexing.png ‏4 KB

  • Transposing data in an array using a For Loop

    I am trying to transpose some data in an array using a  for loop starting from the size of the array then decrement down to 0. Can someone please help if you have an example?
    Solved!
    Go to Solution.

    I feel as if reverse 1D array may help
    Edit: misunderstood what your second post meant.
    CLA, LabVIEW Versions 2010-2013

Maybe you are looking for