09-19-2006 09:59 AM
Problem Description :
Trying to create an excel chart derived from an excel spreadsheet. Having trouble understanding the parameters to format in the Chart Wizard function to get the desired results. There are no error messages, just chart is not what expected.
Goal:
Chart with temperature on the left, y-axis. 3 lines on the graph for min meas temp, avg meas temp, max meas temp.
Bottom x-axis should contain year/month values.
Chart Wizard command:
status = ExcelRpt_ChartWizard (chart_temperature_handle, chart_data_worksheet_handle, D1:G3, ExRConst_GalleryLine, ExRConst_Rows, 0, 0, 0, 1, "Temperature Stats", "Year/Month", "Temp F", NULL)
NI Software : LabWindows/CVI version 8.0.1
NI Hardware : None device
Driver Version :
OS : Windows XP
Customer Information :
Mary Claflin
Technology Kitchen Corporation
US
maryclaflin@technologykitchen.com
Ph: (512) 965-4722
09-20-2006 06:05 PM
11-02-2006 04:04 PM
01-29-2009 05:15 AM
Hi,
I'm currently doing something similar, is this issue changed?
I have one collumm for the YY values and another collumm for the XX values and I can't place them correctly.
I'm using LabWindowsCVI 9.0.
Have you any hints on how to do it with MS Excel Object Library?
I apreciate any help.
Regards,
Daniel Coelho
01-30-2009 10:57 AM
Daniel,
I'm not quite sure I understand your problem. First of all what do you mean by XX and YY. Is that different than X and Y? Second, what do you mean by "I can't place them correctly."? What is happening when you try to place them? How are you trying to do it currently?
Here's a link to a white paper that goes over generating Excel reports with LabWindows/CVI. This may be very helpful in getting started.
http://zone.ni.com/devzone/cda/tut/p/id/5835
Regards,
Steven Zittrower
Applications Engineer
National Instruments
02-04-2009 01:43 PM
I'm sorry, I mean X and Y 😉
The thing was that I wasn't able to create a chart with simply two colums, one with values and another with date/time string.
The graphic apeared funny because the date/time string was interpreted as another series of values, and I wanted the date/time on the horizontal axis (x).
I managed to do it by putting the horizontal values on the first colum (x) and the actual values (y) on the second colum and them I used the LabWindows function ChartWizard with one of the parameters using 'colums' instead of 'lines'...
Now it works as I wanted, the date/time string apears as the values for the horizontal axis (X) instead of another series of values.
Sorry if it was a bit messy.
Anyway, it is working now.
Thank you for your time.
Regards,
Daniel Coelho
03-27-2014 01:47 PM
Hi Daniel,
When you said " managed to do it by putting the horizontal values on the first colum (x) and the actual values (y) on the second colum and them I used the LabWindows function ChartWizard with one of the parameters using 'colums' instead of 'lines'..."
Which parameter were you refering to?
Regards,
Wilfred
03-28-2014 01:46 PM
Since Daniel's post is from 5 years ago, I'm not sure if we can expect a response from him. Are you also trying to put a date/time string on the X-axis of an Excel Chart using the ChartWizard? Are you getting the same behavior he described, where the date/time string becomes a "series of values"?
03-31-2014 03:33 AM
I'm sorry for the delay.
I missed this email...
Looking 5 years in the past I found this:
Status = ExcelRpt_ChartWizard (ChartHandle, WorksheetHandle, chrCell, ExRConst_GalleryLine, 0, 2, 1, 0, 0, "", "Date and Time", "ºC", NULL);
I meant that the Chart Galery parameter was ExRConst_GalleryLine instead of ExRConst_GalleryColumn.
My log file had two text columns with these values:
"4.917","2007-12-27 10:48"
"4.817","2007-12-27 10:49"
"4.717","2007-12-27 10:50"
Using these values and the ChartWizard I got the chart I wanted.
Hope it helps.
Regards.
Daniel
03-31-2014 08:01 AM
Thanks for the reply, Daniel! Hopefully this can help out WilfredCho.