How to add a secondary axis on a excel graph with labwindowsCVI?

Hello,
I am currently working on LabWindowsCVI and I treat my data in excel files. I use ExcelReport and Excel2000 instruments to build my data tables and my graph. To trace, I use this function:
ExcelRpt_ChartWizard (chartsheetHandle, ExcelWorksheetHandle, "A1: C619" ExRConst_XYScatterSmoothNoMarkers 0, ExRConst_Columns, 1, 1, 1, "Consumption mobile plateform", "TIME (sec)", "Current / Voltage (in V & A in)" , NULL);
In this configuration, column A is X axis and B & C (Y axis) my respective data voltage & current.
My graph are traced correctly, but I find a problem, 2 curves are on the main axis and I want to trace one on the main axis and the other on the secondary axis. I can't to display a secondary axis.
Does this action is it possible with a LabwindowsCVI function and if so, can you tell me that function?
Thank you in advance,
Nicolas
Solved!
Go to Solution.

Hi! nlepouliquen,
First of all, I believe you have two curves successfully plotted on the chart as you mentioned.  Excel asigns these two curves as data series 1 and 2 internally.  Assume you want to change series 2 to be plotted against the sencond Y-axis.  You can use the following two functions, defined in excel2000.c, to do it.
// select series 2 data
Excel_ChartSeriesCollection (chartsheetHandle, NULL, CA_VariantInt(2), &seriesTwoHandle);   
// create the second Y-axis and plot series 2 data against it
Excel_SetProperty (seriesTwoHandle, NULL, Excel_SeriesAxisGroup, CAVT_LONG, ExcelConst_xlSecondary);

Similar Messages

  • 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.

  • 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

  • How to add two X Axis in the Column chart?Need Help

    Hi,
    I have a requirement to add two X axis in the SSRS column chart.Can someone please help how to add two X axis. I tried the secondary axis for horizontal axis but current x axis is shifting to other side, second X axis is not coming.
    Regards
    Jon

    Hi Jon,
    According to your description, you want to add secondary X axis for one series in a column chart, right?
    The secondary axis is useful when comparing two value sets with two distinct data ranges that share a common category. In Reporting Services, it’s not supported to create two X axis for one series. We can create secondary X axis when there are two series
    in a column chart. As we tested in our local environment, we can add secondary X axis for specific series. Please refer to the screenshots below:
    So I would like to know what’s your exact needs about creating two X axis for one series. If possible please share some detail information about your data and expected looking of the chart.
    Reference: Plot Data on a Secondary Axis (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu

  • How to add (multiple) cursors programmatically in an XY graph?

     how to add (multiple) cursors programmatically in an XY graph?
    I am building an XY graph. then I would like to add cursors at certain locations (positioned on x axis) I determine through a program.
    How can I add cursors programatically?
    Thank you.

    Initialize a cluster array (CrsrList type) with as many cursors as you think you would ever need.   Setup your cursors dynamically, then delete the unused cursors (array elements) and then update your CursorList property.
    Message Edited by vt92 on 03-20-2009 04:04 PM
    "There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
    Attachments:
    cursors.PNG ‏5 KB

  • ? how to add page numbers in pages 5.2, starting with 2.  Pages '09 had an option to not show folio on page one.  Also any how to do left and right folios for a Tabloid?  Many trhanks

    ? how to add page numbers in pages 5.2, starting with page 2.  Pages '09 had an option to not show folio on page one.  Also any idea how to do left and right folios for a Tabloid?  Many thanks  . . .

    Hello jacquemac,
    Your first question:
    There might be a better way of achieving what you wish to do, but following these steps could help you out.
    You might want to blend in Thumbnails and Invisibles either with (cmd+shift+i and cmd+alt+p) or over the View section in the Menubar.
    1. go for Documents (right end of the Toolbar) -> Section
    2. place your cursor at the very top of your second page and click "Create new Section->Starting with this page" in the side bar on your right.
    (what you are actually doing next is setting the pagenumbers for each section you created. You can see your sections in the Thumbnail view.)
    3. click on your first page (the first and only page of your first section) and mark the checkbox "Hide on first page of section"
    4. click on your second page (the first page of your second section) and  "Insert page number" -> start at 1
    Your second question:
    Im not quite sure i understand what exactly you want to do here. One page, two columns, each column with another page number? As far as i know this is not possible.
    greetings jl

  • How to add an attachment to an e-mail. With out it showing  up and the end of a e-mail.

    How to add an attachment to a e-mail. With out it showing up at the end of the e-mail.

    https://discussions.apple.com/message/17397882#17397882
    How can I prevent mail attachments embedding when sending mail
    Note there are 14 pages of replies

  • How to download data from abap-ouput to excel sheet with logo

    how to download data from abap-ouput to excel sheet with standard logo
    Edited by: Harish Kasyap on Nov 18, 2008 8:19 AM
    Edited by: Harish Kasyap on Nov 18, 2008 8:20 AM

    For saving the report you can goto System -> List -> Save -> Local File -> Location where you want to save in your presentation server.
    You can also give a option in your selection screen to save the file to Presentation server using FM GUI_DOWNLOAD.
    Hope it helps.
    Thanks,
    Jayant.

  • How to add a secondary emergency contact in ESS My View

    Hi,
    We received a request from our Business to add a secondary emergency contact in the ESS under My View -> My Personal information -> Emergency contact. I know that SAP provides subtype 7 for infotype 0021 to store the Emergency contact information and the service PZ18 for adding the same in ESS Portal Iview. But this allows us to store only once emergency contact information. Changing time constraint in order to add multiple emergency contacts is not a soultion because the client did not agree for that. We are planning to create a new subtype (90) for the infotype 0021 in R/3 to store the secondary emergency contact info. But how do I link that subtype to the ESS IView? The standard IView is only picking up subtype 7 and not the custom one (90). Do we need to create a custom IView for this? Or do we need to modify any BAPI/BADI for this? Any idea/suggestion is highly appreciated.
    Thanks,
    Best Regards,
    Mausumi Ray

    >>Also, in that case they won't be able to differentiate beween primary and secondary emergency contacts..
    1. You can enahnce the infotype in PM01.. ie add a custom field that can be maintained as '1' for Primary & '2' for secondary..
    Youcan restrict the users from going beyond 2 via the Infotype user exit ZXPADU02 or BAdI HRPAD00INFTY..
    >>For the ESS part.. I don;t think you need to touch the ITS.. at least not if you are on 47.. You can copy the service PZ18 into a custom version & modify the HTML templates as needed.. You will also have to copy the function group associated with PZ18 & make changes to the underlying function modules to read & store the new field..
    ~Suresh

  • How to Add RSM secondary server to IP IVR-UCCE

    How to add secondary RSM server in the cluster
    In the RSM.aef script i can see there is a option for adding active IP but secondary IP ?, do i need to modify the script to add the second one, does anyother changes required

    Hi,
    this might be a silly question, but what is RSM in this context?
    G.

  • How to add tick marks to all sides of graph

    Hi,
    I'm trying to format a graph in numbers and would like to know how to add tick marks to all axies on the graph, ie. top, bottom, left & right.
    I can get tick marks on the bottom and left axis, but can't seem to find a way to add them to the others.\
    Thanks,
    Oscar

    Hi Oscar,
    Numbers 2.3, but this will work in Numbers 3.0.1 with different Inspector choices.
    When in doubt, cheat! This will give a second Y axis. It is a 2-Axis Chart (the bottom one in this screen shot of Chart Types):
    Column C (Value 2) has dummy values copied from Column B (Value 1).
    Now hide the Column graph by selecting it and changing the fill to None. (Inspector > Graphic > Fill > None).
    Set gridlines, tick marks, hide Legend as you wish.
    To add a second X axis at the top, Chart Inspector won't do that. Insert Shapes and Text Boxes?
    Regards,
    Ian.

  • How to add Customer Specific Product ID PRID_VENDOR to product with report

    CRM5.0
    Hi,
    I am trying to find out, how to add the customer specific product ID (product->relationships->customers) to a product with a report or a function module.
    It is stored in table COMM_IL_PRDCPN, data element COMT_PRID_VENDOR.
    Is there a class/method, function module, or some example coding, how I can do that?
    Thanks an regards,
    Thomas

    Hi,
    I don't think in Std it is possible to create CMIR in VD51 for cust.grp..
    u can try LSMW to create CMIR for sold-tos..
    Reg,
    JJ

  • How to add a Picklist/Drop down in a page with values (Without Personaliz)

    hi,
    i am very very new to OAF ....please help me out on the below requirement....
    Please suggest me how to add a pick list/drop down field to a page, with some values. (without personalization)
    And the second one is when ever i'll chose a value from the drop down the page will reload and display a message on the page.(messages are different for the different values)
    Thanks
    Prakash

    Prakash
    As mentioned by Anil you can use the above link for new poplist generation through extension. As far as reloading the page in that case you need to make use of PPR for that item.Do refer dev guide for more details
    You can use below code for creating poplist in processRequest of your extended controller
    OAMessageChoiceBean mcb = (OAMessageChoiceBean) createWebBean(pageContext, MESSAGE_CHOICE_BEAN);
    mcb.setPickListViewUsageName("TestVO");
    mcb.setListValueAttribute("LookupCode");
    mcb.setListDisplayAttribute("Meaning" );
    mcb.setID("test");
    mcib.setFireActionForSubmit ("event1",null,null,false, false);//This is event that cause reload of pageYou can handle the event in pfr method
      if("event1".equals(pageContext.getParameter("event")))
    }Thanks
    AJ

  • How to add multiple plots programtic​ally to XY graph.

    Hello,
         I am new to Labview.My code is reading Voltage value from no. of Power supply & storing in 1D-array of string. No. of power supply will depend upon user selection. Now I want to plot all these Voltage's value to XY graph,in which X is time stamp at which  value is read & Y  is Voltage value.
            Please suggest me a solution to add multiple plots programtically according to the no of power supply, so user can have a one XY Graph with multiple plots of  Voltage's value of each Power supply.

    Better hide from the front panel. In my projects user used to had 6 plot at the maximum. Before plotting I used to ask how many parameter you want to plot. All the time I used to plot 6 plots only but visible according to parameter selection done by user.
    Here is what I used to do
    Kudos are always welcome if you got solution to some extent.
    I need my difficulties because they are necessary to enjoy my success.
    --Ranjeet
    Attachments:
    Plot.jpg ‏215 KB

  • How to add scroll bar to a labview wave graph?

    I want to know if there is a to add scroll bar to a labview wave graph.

    Look here:
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=5065000000080000001E400000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0

Maybe you are looking for