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

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 can I add axis to an XY-graph programmatically (in LV 6i)?

    I am currently using LabVIEW 6i to make a flexible graph window, which can be called and controlled from another VI. It's easy to send commands to the graph window over a queue interface (enabling things like adding and removing plots, changing the names, etc.)
    However, I would also like to add/remove/assign axis like this (i.e. when the program is running). It seems to me that there isn't an attribute or method available on the XY-graph that will allow this.
    My best solution so far is to have a maximum number of axis present, and then hide/show them when axis are removed/created. However, this triggers a bug in LV (AFAIK) when the axis are shown/hidden out of order (they will be shown
    on top of each other). Now this can be solved by setting the positions/sizes of all axis every time, but that seems like a lot of work...
    Is there a way to add/remove axis to an XY-graph programmatically (in LabVIEW 6i)?

    I have not found a way to programmatically create/remove scales in LabVIEW.
    In regards to the error, I would suggest updating to LabVIEW 6.0.2. I wrote a simple VI that tested this funcitonality and did not have any problems. The link to the 6.0.2 update is:
    http://digital.ni.com/softlib.nsf/websearch/F983BDA17B8F401B862569EC005A11C2
    Chris_Mitchell
    Product Development Engineer
    Certified LabVIEW Architect

  • How to set the size of an Excel-file,Java created in tabbed forma

    Hi all,
    I'm creating an Excel-file by writing data to an outputStream in tabbed format.
    My problem is : How can I set the width of the columns of that Excel-file, not the default-size?
    If anyone can help, that would be very nice.
    Thanks a lot,
    Regards,
    Tim

    You can write a generic xls file containing a Macro to open and set the column widths of text or csv files. Your java program can then call this generic file to open your text files.

  • 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);

  • How to set an image in an excel worksheet

    hi,
    I have used for Apache POI is poi-bin-3.0-alpha1-20050704. It's one problem is within the createPicture method. createPicture method cannot take parameter loadPicture. I have given this function.
    patriarch.createPicture(anchor, loadPicture
    ( "src/resources/logos/logoKarmokar4.png", wb ));
    Can anybody help me? After compiling my program shows following error:
    "imexcel.java": Error #: 300 : method loadPicture(java.lang.String, org.apache.poi.hssf.usermodel.HSSFWorkbook) not found in class imexce.imexcel at line 36, column 34
    So in this situation waht will i do? Please help me.
    I f u have any solution then please help me.
    Bye
    Bina

    You have to review a little bit more the POI API...
    The createPicture methods needs and HSSFClientAnchor object and an int as parameters. The int parameter is the index of the image loaded into the workbook.
    HSSFPatriarch.createPicture ( HSSFClientAnchor, int )
    What the loadPicture method does is to load the bytes of the image into the Workbook and returns the index of the image inside the workbook. I have done a methotd that does that, it can be usefull for you.
    public static int cargaImagen (HSSFWorkbook wb, String img, int formato ) throws IOException {
            try {
                 // img is the path to the image file
                File archivo = new File ( img );
                FileInputStream fis = new FileInputStream ( archivo );
                // I'm workin' with small images...  that's why i don't think i need a big buffer
                byte [] bytes = new byte [ (int) archivo.length() ] ;
                if ( fis.read ( bytes ) == -1 ){
                    System.out.println( "Archivo vacio: " + img );
                    return -1 ;
    // Add loaded image to the workbook and specify the format of the image.   you have to see HSSFWorkbook.PICTURE_TYPE_*          
                return wb.addPicture( bytes, formato );                       
            } catch (FileNotFoundException e) {
                System.out.println( e.getMessage() );
                return -1;
        }

  • How do set up multiple devices with multiple graphs in labview

    Hello,
    I am new at LabView, and we are trying to setup a test rig to measure voltage, pressure and flow rates. We are currently using a NI-6009USB box and Labview version 8.2.  Our problem lies in setting up the actual measurements on separate graphs. How do i go about setting up the daq-assistant to measure mulitple devices, and graph them on their own graphs?  We also need to know how to program in when measuring flow, how to convert it from square wave form to a calibrated curve?
    Any help would be greatly appreciated!
    Nate

    When you configure the DAQ Assistant, you will be first asked to select the measurement type. Assuming that you have voltage sensors because you have the 6009, you select Analog Input>Voltage. You then get a list of devices. Since you only have one, it should be listed as Dev1. Expand that and then pick the channels you have connected to the sensors. Just like it says at the bottom of the of the channel window, you can select multiple channels with  <CTL> or <SHIFT> click. After you've done that, the next window is where you select your sample rate, number of samples, etc. You can also select a custom scale for each channel. This is where you would enter any formula you have from the sensor vendor in order to convert a voltage reading to scaled units.
    The output of the DAQ Assistant is a dynamic data type. You can wire this to a single graph to display all readings together or use the Split Signals function to break out individual channels for separate graphs.
    Message Edited by Dennis Knutson on 02-22-2007 03:33 PM
    Attachments:
    Split Signals.PNG ‏4 KB

  • How to set the ChartLength in a multiplot graph

    I have a multiplot chart and I need to set the total number of visible points in the graph. The CNiGraph::ChartLength() sets the total number of points for each plot, not for the whole graph. How can I do that ?

    There is no way to do this automatically with CNiGraph. You should be able to do it manually, but it will require some work. The best way I can think to do this would be to create an array of CNiReal64Matrix instances. Each instance in the array corresponds to one of the plots that you have now. When a new data point is available, add it to the appropriate CNiReal64Matrix instance (instead of calling ChartXY). Then, call CNiPlot:lotXY and pass it the CNiReal64Matrix instance that contains the data. You could keep a running count of the total number of points that are in all of the CNiReal64Matrix instances in the array. When you reach the total number of annotations that you have, you will have to shift the data in one of the matrices. Unfortunately, there is not an easy way to do this with CNiMatrix alone. When it is time to shift the data, the easiest way I see to do it would be to call CNiMatrixT<>::CopyRow to extract CNiReal64Vector instances for each row in the matrix, call CNiVectorT<>:ubSet to shift the data, and call CNiMatrixT<>::AssignRow to put the data back into the matrix, and then plot.
    Will this approach work for you?

  • How to reverse x axis in stacked bar graph generated by Keynote?

    My question is demonstrated in the figure 1 below. How to reverse the x axis so that the relatively small black area appear on the right(as figure 2 shows.)
    fig. 1.
    fig. 2.

    In the chart data editor, click and drag one of the the rows to change the ordering:

  • How to set Password protection in excel using java

    Dear all,
    I have no idea to write a java program that how to set password protection in excel. Please give me some solution using java tools. Thank a lot!
    Regards,
    kzyo

    Dear Bamkin ,
    I used your code and paste it in my program. The error is as the follow:
    Code:
         stmnt = c.createStatement();
                   String query = "select StudentNumber, Email, New_Email_Address from [Sheet1$] where Len(New_Email_Address) > 0";
                   System.out.println(query);
                   rs = stmnt.executeQuery(query);
                   stmnt.executeUpdate("SET PASSWORD=PASSWORD('Test')");
    Error:
    (Remark: Invalid SQL statement)
    java.sql.SQLException: [Microsoft][ODBC Excel Driver] �����I SQL ���q���G�a����'DELETE'�A'INSERT'�A'PROCEDURE'�A'SELECT' �� 'UPDATE' �B
         at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958)
         at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115)
         at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(JdbcOdbc.java:3111)
         at sun.jdbc.odbc.JdbcOdbcStatement.execute(JdbcOdbcStatement.java:338)
         at sun.jdbc.odbc.JdbcOdbcStatement.executeUpdate(JdbcOdbcStatement.java:288)
         at hk.gov.edb.util.ExcelHandle.updateNewEmail(ExcelHandle.java:414)
         at hk.gov.edb.core.AppMain.doUpdate(AppMain.java:369)
         at hk.gov.edb.core.AppMain$7.construct(AppMain.java:584)
         at hk.gov.edb.util.SwingWorker$2.run(SwingWorker.java:127)
         at java.lang.Thread.run(Thread.java:595)

  • How to set the default Excel cell format when opening XML to XLS using an existing stylesheet​?

    Hi,
    I have an XML file, which I'm opening with the Excel application. The stylesheet I use is horizontal.xsl.
    The problem arised when the XML has data in the format "1/4" or "1/16", which is translated in the Excel as date (like "01/04/2007").
    I think I have to set the default cell type to "Text" instead of "General". Does anyone know how it can be done?

    Is this the same question as idoZo, if so jigg has already answered it. If not then you should post your own query not hijack someone elses giving a clear and concise question, "how to set it??" doesn't help you or other in the forum to provide you with a solution.
    Is this relevant to TestStand? If it is then help by providing which version you are using and what software you are using with it. If not then post your question in the correct board.
    Regards
    Ray Farmer

  • How to set task type of a task in MS Project using excel vba code.

    Hello Gurus,
    I am generating MS Project files(.mpp) files form excel data. An excel macro in the excel file will read the excel data and will generate the .mpp file. It is working fine. now i want to set the task type of all the tasks to "Fixed work" from excel
    vba code.
    How to use the property PjTaskFixedType in setting the task type??
    refer below links
    http://msdn.microsoft.com/en-us/library/office/ff861713.aspx
    http://msdn.microsoft.com/en-us/library/office/ff864157.aspx
    Can someone help me in setting task type property from excel vba.
    I have attached my sample code used to generate the mpp file. It is not the complete code but you will get an idea from it.
    Set pjApp = CreateObject("MSProject.Application")
    pjApp.FileNew
    Set newproj = pjApp.ActiveProject
    newproj.Tasks.Add (task_name)
    newproj.Tasks(mpp_row_number).Start = task_start_date
    newproj.Tasks(mpp_row_number).Finish = task_end_date
    newproj.Tasks(mpp_row_number).ResourceNames = resource_name
    pjApp.FileSaveAs mpp_file_save_path & mpp_file_name & ".mpp"
    pjApp.FileClose
    pjApp.Quit
    Any help is appreciated.

    Hi Syamku,
    A simple example that sets the task type:
    ActiveProject.Tasks(2).Type = pjFixedDuration
    ActiveProject.Tasks(3).Type = pjFixedUnits
    ActiveProject.Tasks(4).Type = pjFixedWork
    http://msdn.microsoft.com/en-us/library/office/ff860469(v=office.15).aspx
    Hope this helps

  • How to set Border in the Excel using UTL_FILE ?

    Hi all,
    Any one aware of
    How to set Border in the Excel using UTL_FILE ?
    Am doing excel creation from a stored procedure.
    Thanks
    Dora

    Hello Dora,
    if you need more than simple csv: at Re: How to save a query result and export it to, say excell? you can find links to different solutions. At least the package behind the second link supports defining your own formats (and has a tutorial how to do it).
    Regards
    Marcus

  • How to set border of excel cell through ole ?

    How to set border either of left / right / top / bottom of excel cell through ole ?

    Click on the outside the line above header and select all the columns and rows and set the border horz and vert this will solve your problem. if you select current data alone then it will select the current data alone borders. if you runa diff criteria then for the new values borders wont be there. so better always try selecting the column top i.e above the column header and set the border.

  • Setting the title font and axis labels in a graph created with the Report Generation Toolkit

    I'm using the LabVIEW Report Generation Toolkit for Microsoft Office to generate Excel worksheets containing plots. Unfortunately, the default font size used in the plots is huge (see attached worksheet). I was able to use Excel Set Graph Font.vi to reduce the size of the axis labels, but there does not appear to be a function to do this to the title and legend. In addition, there does not appear to be a function to set the axis text labels. Before I write my own, has NI released additional functions to perform these tasks?
    Thanks for your help,
    Zach Lerner
    Software Engineer
    OnWafer Technologies, Inc.
    Attachments:
    Test1_-_embedded_graph's_title_and_legend_font_is_huge.xls ‏14 KB

    Hello Zeidan
    The graph title and legend font sizes can be changed by accessing a low level VI (Excel_Insert_Chart.vi) that is part of the excelsub.llb that is located at (C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\addons\_office). This VI is called dynamically from within the Excel Insert Graph.vi and it uses VI server technology to access the Excel exposed properties. Attached to this post is an image of the block diagram of this VI after I have modified it to set the font sizes of the title and legend to 15. The circles in the image represent what I had to add to accomplish this.
    Best Regards,
    Ayman Kabire
    Attachments:
    Excel_Insert_Chart.JPG ‏99 KB

Maybe you are looking for