Modify x-axis display of an excel graph

Hi,
I'm want to use the excel report structure in LabVIEW.  I want to format the graph so that only the start and finish values appear on the graph in excel.  There doesn't appear to be a VI to do this. I also checked LabVIEW 8.5\examples\office\MSGraph Examples.llb but could not find this feature.
Does anyone know if there is anyway that I can do this using LabVIEW?
Thanks Sean

So I guess the short answer is that LabVIEW does not have a VI to do this.
I tried the following macro:
Sub fun2()
    ActiveChart.Axes(xlCategory).Select
    With ActiveChart.Axes(xlCategory)
        .TickLabelSpacing = 1000
        .TickMarkSpacing = 500
    End With
End Sub
I works fine with a graph created in excel but doesn't work with the one created by the LabVIEW VI's. 
Unfortunately I am not an expert at VB macro's or indeed why LabVIEW is formatting in a strange fashion.  
Are the LabVIEW VI's useless?  Is it better to create ones own macro to create an excel graph?  I've wasted a lot of time so far but if anyone has any ideas I'd be delighted to hear them.  
Plan B is to create a template with the graphs already formatted and insert the numbers.  I don't want to do this the template is very big and time consuming to open  but in the absence of a better solution.....

Similar Messages

  • Modify x-axis display of an excel graph (proper board)

    Hi,
    I'm want to use the excel
    report structure in LabVIEW.  I want to format the graph so that only
    the start and finish values appear on the graph in excel.  There
    doesn't appear to be a VI to do this. I also checked LabVIEW
    8.5\examples\office\MSGraph Examples.llb but could not find this
    feature.  The feature in excel is called number of categories between tick mark labels.
    Does anyone know if there is anyway that I can do this using LabVIEW?
    Thanks Sean

    Hey SeanJ,
    I could not find the exact feature you were interested in, but I did find a potential workaround. I first opened the "Line Graph (Excel)" example VI which ships with labVIEW. To find it, open the LabVIEW example finder and navigate to the following location... Communicating with External Applications >> ActiveX >> Excel.
    I then added the "Excel Set Graph Scale" vi. Here is a screen capture of the modified block diagram.
    Now, we can head into the "Excel Set Graph Scale" to make a minor modification. You may want to take a copy of this VI, so you can return to the original in the future. Open the block diagram of "Excel Set Graph Scale", and then open the block diagram of the nested "Excel_Set_Graph_Scale" subvi. Then you need to open the block diagram of yet another subVI... "Excel_Set_Sale.vi" From here, modify the block diagram so it resembles the following screen cap.
    This allows you to set the major units, so that only the start and finish values are displayed.
    Here is a graph created with the original code.
     and here is a graph created with the modified code.
    I hope this has been useful. Best wishes,
    Rich R
    Applications Engineer
    National Instruments UK & Ireland

  • Excel graphs into InDesign

    I want to insert my results into InDesign and they are currently displayed as an Excel graph. Direct copy and paste doesn't allow me to resize the graph. Not sure what to do?
    Thanks!

    Why can't you resize it? I've done this before myself and had no problem...

  • How to add a scroll bar within a view window ?I want to display x and y axis outside the scoll window and keep those axis static and move the graph within scroll area

    how to add a scroll bar within a view window ?I want to display x and y axis outside the scoll window and keep those axis static and move the graph within scroll area
    ananya

    Hey Ananya,
    I believe what you want to do is possible, but it will not be
    easy.  If you want to add a scroll bar that will scroll the graph
    back and forth but keep the axis set, you would want to add a
    horizontal or vertical scrollbar.  Then you would create an event
    handler for the scroll event.  You would have to manually plot
    different data within this scroll event.  Unfortunately, there is
    not really a built in way to do this with the Measurement Studio plot
    control.
    Thanks,
    Pat P.
    Software Engineer
    National Instruments

  • ADF11g: dvt, line graph x-axis (o1 axis) display issue

    Hi,
    In our application we are generating line graphs for a set of data.
    This graph is plotted in between 2 sets of numeric values. (one plotted on x-axis and other on y-axis).
    For better accuracy of plotted graph we are using these numeric values upto 7 decimal places. (for example 8.1234567)
    Now when graph is plotted, then on x-axis (that is o1- axis in case of Line Graph) the tick labels are showing upto 7 decimal places.
    Is there any way so that I could control the display of these tick labels to 1 decimal place instead of 7 decimal places?
    More Info:
    ++The tick labels for x and y axis are generated at runtime by some calculation logic.++
    ++If we set the tick labels for x axis to 1 decimal place instead of 7 decimal places when they are generated , then this will lead to build in accurate graphs.++
    ++So we can't control the decimal format of tick labels when they are generated. We need to control it when they are displayed.++
    Please help...
    Thanks and Regards
    Manav Ratra

    Hi Frank,
    this is not working :( . It holds good for the case where one has to display markers (tick labels) on the lines of line graph and not the tick labels on the axis.
    Moreover here i find out tag as *<dvt:x1Format>*
    where as line graphs does not support x1axis they have o1axis .
    In my case I need to control display of tick labels on the o1axis.
    Regards
    Manav Ratra

  • How to insert the value axis in a EXCEL graph

    Hello,
    how can I do to insert the value axis (name) and graph tilte in a EXCEL graph using report generation in LabVIEW??
    I'm using excel specific functions, but I don't find it anywhere.
    THANKS.

    Hi,
    the function Excel Set Graph Font.vi has an input parameter called Title that corresponds to the name of the axis selected through Axis Type parameter.
    And the funtion Excel Insert Graph.vi has an input parameter called Graph Title.
    You can see an example called Column Graph (Excel).vi in Find Examples>Toolkits and Modules>Report Generation.

  • WAD Graph-  Value Axis display value with commas

    Hi Gurus,
    In the WAD graph Value Axis displaying the value from 0 to 40000 like below
    40000.
    30000.
    20000.
    10000.
            0.
    But we want to display with comma for every 3 digits(1000). like
    40,000.
    30,000.
    20,000.
    10,000.
              0.
    Please do needful.
    Regards,
    Kiran A
    Edited by: Kiran A on Oct 21, 2009 6:00 PM

    Hi Kiran A,
    you can do it as follows:
    Edit Chart->Refine->Value axis->Line->Format-> here you have to put: 0,
    That is all
    Regards
    Erwin

  • Excel graph images not displaying

    We are having trouble with the Excel Gadget suite in that everything is working apart from the displaying of Excel graphs within the portlets, in that we get the red cross displayed instead. Having read some earlier postings on this they indicated the problem might be due to the ISAPI filter on the server hosting the Excel Gadget Suite.
    Having looked at this there are 2 ISAPI filters on that box, the Excel Downloader and one called Exchfilt with the Excel one being second in the list. So
    Is the Exchfilt another filter used by the portal, possibly for Exchange gadgets, or can I safely delete it?Does the sequence make any difference or shuld I make Excel the top of the list?Are there any other debugging techniques others have used to get to the bottom of this type of problem?Thanks in advance,
    Ross

    Hi,
    This forum is to discuss problems of MS Office development in the Windows OS such as VBA, VSTO, Apps for Office .etc. But I think your question is related to the end-user feature of MS Office:Mac. So I suggest you posting your issue in Office for
    Mac support for more efficient responses.
    Thanks.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Excel Graph Axis Title

    Hi all,
    Is there a way of naming the axes titles of an excel plot created using the Report Generation Toolkit? There does not seem to be such an option in the excel specific functions of the toolkit... Could it be done through activeX?? I tried to follow the suggestions in the link below but no luck...
    http://forums.ni.com/t5/LabVIEW/labview-excel-2007​-Axis-title/m-p/1226794/highlight/true#M521825 
    Thanks a lot for your time..
    Harry
    Solved!
    Go to Solution.

    Hi,
    I have attached a VI incl. many useful active-x commands for plotting graphs to excel. It is a large VI but it includes what you are looking for.. Scroll to the right and locate the 8th active-x box called chartwizard. This is what you are looking for. I have added constants indicating were the name of each axis goes in the wizard box. If you are not familiar with the rest of the active x commands just follow the sequence and you'l' be able to plot an excel graph fully customised through labview.
    Hope it is of help
    Harry
    Attachments:
    Excel_ActiveX_O2.vi ‏51 KB

  • How to set 2 Y-Axis on a Excel Graph

    I am trying to make an excel XY plot with 2 y-axes, I am using report generation VI's for this program. Can any body tell me what VI I have to use and what property I need to set to have 2 y-axes on the excel graph.
    thank you.

    I apologize for the link above not working. Please see the attached file, which the above link would direct you to.
    Attachments:
    Using_Macros_in_Excel_with_the_Report_Generation_Toolkit.zip ‏57 KB

  • Excel Graph Legend Formatting - Report Generation Tool

    Hi all,
    I'm currently using the Report Generation Tool for Labview '11 and cannot seem to figure out how to edit the font properties for a graph's legend. Attached is a screenshot of an example output.
    The Excel Graph Font.vi's Help file says that it should be able to modify the legend, yet I can't seem to figure out how to configure it to do so. If anyone can walk me through the steps or tell me what I am missing, I'd greatly appreciate it.
    Solved!
    Go to Solution.
    Attachments:
    excelLegend.png ‏33 KB

    ChaoyD wrote:
    Hello again,
    It seems my team has decided to change direction and use Word instead of Excel. As such, I've been attempting to convert the VI ben64 provided, but I'm stuck on the ActiveX references... I've attached what I've done so far, but could someone help me (or instruct me) on making this VI work with Word?
    Thanks.
    The Word object model is probably the most complicated of the Office suite and you are loosing the calculation ability of Excel.
     Attached is a vi to format the chart legend in a Word document.
    Ben64
    Attachments:
    Word Format Graph Legend.vi ‏26 KB

  • Specific Excel graph question for Indesign

    Hello,
    I have a question about how to use an image generated on Excel for mac for Adobe Indesign CC. I have browsed the forums here and googled but I'm not finding solutions for my specific question (so please bear with me, thanks). I have a report for work that requires a lot of bar graphs. The graphs are all done on Excel for mac 2011. I have tried two different ways of importing it into InDesign (also for mac) - 1) saving the graph as a PDF and then placing into InDesign, and 2) copying and pasting the Excel graph into Illustrator and then saving it as an ai file. In both cases, the ai file looks a bit better but the fonts seem a bit jarbled/compacted once I place it into InDesign. The font I use is Times New Roman. Also, since my report is laid out in a 2-column format, I need a chart to fit a space that is approximately 3 inches by 3.5 inches. Whenever I import the image, it’s significantly larger so I place it to fit the 3x3.5 inch space proportionally. When that happens, the fonts don't look quite right on the screen. I need to ensure that the chart looks sufficient once it’s printed on paper. I only recently began learning InDesign (self-taught) so your advise is appreciated.

    First, the preview may be at a lower quality, so see how it looks with View > Display Performance > High Quality Display set. Second, ID always displays some sort of preview on screen, but uses the actual image data for output, so export a page to PDF and print it to judge the quality.

  • Modified x-axis values?

    Measurement is made using a sampling frequency of 100 Hz. And now, when I read the file in LabVIEW, the x-axis values are hundred times greater than the actual time. How do I get the modified x-axis values hundred times smaller.

    It would definitely help to see some example code and data.
    My gut feeling is that you're wiring an array of Y values to a waveform graph, e.g. 10, 5, 11, 12, 5, 3. The waveform graph, given an array of values, will plot the data against an x axis of sample number, so your data will appear at an interval of 1.
    If you have a sampling period (dt) value, you can use Build Waveform with your Y array and the dt component, and then feed this waveform to the waveform graph. Alternatively, you could build an array of time values of the same length as your dataset, bundle into a cluster and send to an XY graph. Examples are below:
    CLD

  • Interval in y axis displays numbers off with respect to x axis

    I am working on chart SQL 2008 R2. In my x-axis, I have three payers and in y axis I have Amount paid by each payer. If I define interval in y axis then x axis graph is not showing correct values. If I remove the interval in Y axis then my x-axis graph is
    correct but y axis numbers are wrong(see graph1). 
    Please see Graph2 where I have correct interval. Payer 1 has paid 29,000,000 and payer2 has paid 3,843,537 and payer3 has paid 270,000,000. I have set the interval min - auto. max - max ( of data value) and interval - 10,000,000 on y axis.
    x-axis is category. Please help me with this. Is there any property I need to set. Thanks for your help.
    Graph1

    Hi Rachel_P,
    According to the pictures, the Y-Axis shows incorrect values when you don’t specify the interval value. While when you specify the interval value, the columns in the chart doesn’t show correctly. Based on my research, I think this issue can be caused by
    incorrect data type of the Amount field. When we add a string type field to the Values pane, it uses [Count(Amount)] as the values. Then the Y-Axis displays the number of amount values for each payer.
    To fix this issue, we can add a calculated field with integer type amount values in the dataset, then display the new field in the Y-Axis. For more details, please see the following steps:
    Right-click the DataSet of the chart to add a calculated field as below:
    Field Name: Num                   Field Source: =CInt(Fields!Amount.Value)
    Insert Num field to replace the Amount field in the Values pane.
    The following screenshot is for your reference:
    If there are any misunderstanding, please elaborate the issue for further investigation.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Excel graphs in powerpoint into imovie

    What is the best way to put excel graphs into imovie? I need to put 2 graphs together on one sheet, so I have aranged them in powerpoint, and saved the powerpoint as a JPEG, and as a powerpoint movie but when I import these into imovie, the quality is really bad, and the text is blury when its desplayed on a larger screen. Any ideas, on how to put a powerpoint into an imovie? Thanks!

    iMovies goal is "projection" on TV - in PAL countries that has a screen resolution of 768x576 (.. and that is max, in real life it is less...)
    second, a computer has no interlacing - that is a good trick for moving images on TV, but that "blurrs" any detailed content...
    sooo....
    you charts will be minimized & blurred. in case you used any serif-typo, the tiny lines will vanish/flirr.. that isn't iM fault, but due to TV standards....
    I would:
    use Excel to export directly into some pict format (tiff isn't bad, because no compression); I don't see any need to make an inbetween step in some slideshow app ... (???)
    and I would "tune" in Excel the formats: not too much content, san-serif typo, no bright colors (as pure red), no 1pix lines etc....
    best practise:
    re-create new, "video compatible" charts in some pic maker (e.g. Photoshop) by using the correct settings from the beginning - you instantly see what you get...
    don't forget: judge pic quality of iM projects only TV screen!
    besides:
    dpi is an internal-file-info just need for PRINTS... a 10x10pix picture is displayed as 10x10 pix on every computer's screen... independed of 72dpi, 120dpi, or 2400dpi... bigger dpi's make file size larger, but not better for monitor use....

Maybe you are looking for

  • Use VBA and Excel to open Dreamweaver HTML (CS5), find and replace text, save and close

    I wish to use VBA and Excel to programmatically open numbered Dreamweaver HTML (CS5) and find and replace text in the code view of these files, save and close them. I have  5000 associations between Find: x0001 and Replace: y0001 in an Excel sheet. I

  • Problem with Mac OS X install archive.

    I'm having a problem unpacking the file macosx_920_dev_rel.tar.gz. I get the error message: gunzip: macosx_920_dev_rel.tar.gz: invalid compressed data--format violated The MD5 finger print for the downloaded file is: MD5 (macosx_920_dev_rel.tar.gz) =

  • Whats a good converter? im having trouble installing videos

    id like to take my dvds and put them onto my ipod. i tried handbrake and it wouldnt install.. then i downloaded videora and it seems like you have to download the video to convert it. does anyone know another program to do what i want? thanks

  • CS6 multi-camera monitoring playback is slow/stops entirely

    Hey all, I've been searching forums for a workaround to this and I've come up empty - either the conversation gets bogged down in video card/hardware discussions or moves away from the issue entirely. I am working on a 2012 Mac Pro tower with 24GB of

  • Blog for tablet layout

    How do I add a blog for a tablet layout. I have it for the desktop, but since the template for the tablet is different than desktop, how do I add a blog for the tablet layout without creating a second blog?