User (Legacy) Posted December 18, 2003 Report Posted December 18, 2003 Hello from Agilent, 1. Test case is to use and display HISTOGRAM for a Real Time Graph. 2. The ChartFx Statistics component provide this functionality, but the as the enclosed example (with the component) exbhit,it is for analyzing an offline/static set of data. 3. To accomplish the task to display or to use the Histograph in real time, we need to be aware of a mechanism where we can supply real time data to the component, and the component in turn can provide analysis displayed 4. Please provide us with anyone (all of them will be a big help..........) of the mentioned: a. A demo code which can expose all the required mechanism to accomplish the mentioned b. A document to explain the required interfaces to the component c. Directions where we can find more advanced information Thanks Rakesh kumar for Agilent technology International /*************Example Given for Statistics Component *******************/ // Create the Statistics extension // If the extension is created at design-time you don't need to create it here Statistics statistics1 = new Statistics(); statistics1.Chart = chart1; //Populating the Chart with random data chart1.OpenData(SoftwareFX.ChartFX.COD.Values,1,100); int j; Random rnd = new Random(); double d1 = rnd.Next(100)+100; double d2 = rnd.Next(100); double d3 = rnd.Next(10); for (j = 0; j < 100; j++) { int nSpecial = rnd.Next(40); if (nSpecial == 1) chart1.Value[0,j] = 200 + rnd.Next(100); else if (nSpecial == 2) chart1.Value[0,j] = rnd.Next(100); else chart1.Value[0,j] = 100 + ((Math.Sin(((j*10+d2))/d1) + 1)*40)+rnd.Next(10)+d3; } chart1.CloseData(SoftwareFX.ChartFX.COD.Values); chart1.GalleryObj = statistics1.Gallery.Histogram; statistics1.Gallery.Histogram.LimitLeft = 6; statistics1.Gallery.Histogram.LimitRight = 14;
Software FX Posted December 18, 2003 Report Posted December 18, 2003 I have never combined Real-Time chart with the statistical extension. However, I don't see any reason why it wouldn't work. A histogram, in particular will count the number of values for each interval, so the number of bars (number of intervals) will remain constant and can be specified by you, so unlike a regular bar chart, passing data to it in real-time will not cause the chart to scroll but to recalculate the intervals every time. I don't have any samples or specific documentation about this combination, you can find documentation about real-time chart in the Chart FX's programmer's guide but you will have to combine that with the documentation for the statistical extension. This newsgroup is used to answer specific questions about the functionality of the product, I think what you are looking for is more of a one-to-one support. You can contact our support and pre-sales dept. either by e-mail or phone and they can help you achieve what you want and direct you in the right way. -- FP Software FX, Inc.
User (Legacy) Posted December 19, 2003 Author Report Posted December 19, 2003 Hello from Agilent, There are few query regarding Statistical Extension ( Histogram). 1. Do we have any control over Y-Axis or Can we Scale it in terms of Max , Min and step Value ? I am scaling my Y-axis, But it wouldn't reflect back to me . Is there any specific sequence , which we should follow to achieve this? 2. On X-Axis we have control in terms of Intervals , Can we put label there to show its actual value ? 3 As I already communicated that I am using this extension in with Real Time Graph, Its work fine . But the Problem is , Whenever i get new Data point , I have to initialize the Chart Component with all the Data Point. (Starting from first data point to Latest one). Its work fine with small set of data point ( less then 10,000) , Create problem in terms of time delay , when the Data Set goes to one lakh point. Is there any way , by which we can get the result without passing the whole data set again and again? Thanks Rakesh kumar for Agilent technology International "SoftwareFX Support" <support@softwarefx.com> wrote in message news:hJ4g60ZxDHA.3808@WEBSERVER1... > I have never combined Real-Time chart with the statistical extension. > However, I don't see any reason why it wouldn't work. > > A histogram, in particular will count the number of values for each > interval, so the number of bars (number of intervals) will remain constant > and can be specified by you, so unlike a regular bar chart, passing data to > it in real-time will not cause the chart to scroll but to recalculate the > intervals every time. > > I don't have any samples or specific documentation about this combination, > you can find documentation about real-time chart in the Chart FX's > programmer's guide but you will have to combine that with the documentation > for the statistical extension. > > This newsgroup is used to answer specific questions about the functionality > of the product, I think what you are looking for is more of a one-to-one > support. You can contact our support and pre-sales dept. either by e-mail or > phone and they can help you achieve what you want and direct you in the > right way. > > -- > FP > Software FX, Inc. > >
Software FX Posted December 19, 2003 Report Posted December 19, 2003 > 1. Do we have any control over Y-Axis or Can we Scale it in terms of Max > , Min and step Value ? Actually I realized that you don't. The Y-Axis is calculated based of the calculated data. However, we realized this is going to be a problem in some cases so we are going to reset the Y-Axis ONLY if AutoScale is set to true (default) but we will leave it untouched. Look for this change in the next SP. > 2. On X-Axis we have control in terms of Intervals , Can we put label > there to show its actual value ? The Min and Max of this axis will be taken from the Y-Axis Min and Max at the time of activation (your data range) or at the time new data is passed (at CloseData). So you can control these on this way. You can control any other properties in the X-Axis by obtaining it as an object. The X-Axis in an interval chart (Histogram, Frequency Polygon, Ogive) is the secondary X-Axis which can be obtained by doing: Axis axisX = Axis(AxisItem.X2) > 3 As I already communicated that I am using this extension in with Real > Time Graph, Its work fine . > But the Problem is , Whenever i get new Data point , I have to > initialize the Chart Component with all the Data Point. (Starting from first > data point to Latest one). > Its work fine with small set of data point ( less then 10,000) , > Create problem in terms of time delay , when the Data Set goes to one lakh > point. Why do you pass the data again ? why don't you simply add to the current data ? If you do: OpenData(COD.Values,<number of series>,>number of values> + 1); CloseData(COD.Values); You will keep all the data and will have a new point at the end of each series. You should even be able to use Real-Time techniques (please refer to docs. for details) to add points to the chart maintaining a pre-determine buffer-size to improve performance. -- FP Software FX, Inc.
User (Legacy) Posted December 20, 2003 Author Report Posted December 20, 2003 Hello from Agilent, Thanks for the quick reply I did some more R&D to accomplish the task using Statistics Ext. There are few more query regarding the same. 1. When would We expect the next SP with the implementation of Control over Y-Axis? 2. I did the same as you suggest me to over come the problem of passing the data again.. But its not behaving as it should be. Please find out the workspace in Zip format , help me to come out with a solution. Thanks Rakesh kumar for Agilent technology International
Software FX Posted December 22, 2003 Report Posted December 22, 2003 > 1. When would We expect the next SP with the implementation of Control > over Y-Axis? Since we are closing from Dec. 24 to Jan 5, we will not be releasing another service pack until we come back. However, you can contact our support dept. for a HotFix that includes these changes, a HotFix is not as well tested as a service pack and it is not intended for deployment. If you decide to get it, keep this in mind. > 2. I did the same as you suggest me to over come the problem of passing > the data again.. > But its not behaving as it should be. Please find out the workspace > in Zip format , help me to come out with a solution. This is sort of related to 1). The Min and Max are being incorrectly reset when you add new data. The service pack will fix this problem as well. -- FP Software FX, Inc.
User (Legacy) Posted December 22, 2003 Author Report Posted December 22, 2003 Hi , Thanks for the reply. There are few more query. 1. From where I can get the Hotfix? 2. Is this available on SoftwareFx web site ? 3. What is the procedure to get this? 4. Do we need to pay any thing for this Hotfix? Thanks Rakesh kumar Agilent technology International
Software FX Posted December 23, 2003 Report Posted December 23, 2003 Please contact us at support@softwarefx.com for details on how to obtain the hotifix. Hotfixes, as well as Service Packs, are free of charge. --- IG Software FX "Rakesh kumar" <rakesh_kumar5@agilent.com> wrote in message news:I%23PhY4QyDHA.3808@WEBSERVER1... > Hi , > Thanks for the reply. > There are few more query. > > 1. From where I can get the Hotfix? > 2. Is this available on SoftwareFx web site ? > 3. What is the procedure to get this? > 4. Do we need to pay any thing for this Hotfix? > > > Thanks > Rakesh kumar > Agilent technology International > >
User (Legacy) Posted December 23, 2003 Author Report Posted December 23, 2003 Hi, Thanks for the reply. These is one more thing I want to know about Statistical Extension. * We can Categories the X-Axis into Interval, and we have control over the number of interval. If we have a Data set having value in between 0 - 1 with the precision of 6 digit. It divide the X-Axis into interval and show the number of Data point fall into that interval . It would not show the actual value range for the interval. Is there any way to show the Interval Range on X-Axis ? * Can we use this Statistical Ext as helper component to extract information like Std Deviation , without attaching with any Graph? Thanks Rakesh kumar Agilent technology International
User (Legacy) Posted December 24, 2003 Author Report Posted December 24, 2003 Hi , There are few more query regarding X-Axis scaling . Scenerio : Take an Real time example, I am plotting a graph( Histogram ) for a Power supply(5 Volt). So there must be some noise and its value will fall between 4.999 to 5.11 at resolution level 6th digit. We want to plot this Dataset as a HISTOGARM , I did n't intialize X-Axis and assuming that the Max and Min will be internally handled. The only thing I am providing is Interval . Would this Extension is smart enough to divide the dataset into provide number of interval and plot accordingly ? I tried this but unfortunatly not able taste the success. * Is there any ways to achieve the above given functioanlity? * How you calculate Max and Min Value for X-Axis , when user wouldn't set any thing? Please go through the attached workspace , In this workspace I am using few Dataset , The Extension would not able to plot Chart if the Data Range is too less. Thanks Rakesh kumar Agilent technology International FYI: I am using the Hotfix for the coming SP for Statistical Ext. charterror.bmp
Software FX Posted December 24, 2003 Report Posted December 24, 2003 1) The interval range is shown in the X-Axis, the default number of decimals displayed however is 2. You need to increase the number of decimals displayed in the secondary X-Axis (the axis displayed at the bottom of your histogram, as I explained in a previous posting). > Can we use this Statistical Ext as helper component to extract > information like Std Deviation , without attaching with any Graph?2) No. The data is extracted from the chart. You can use the Calculator class to obtain these values without actually having to display them in the chart but you do need a Chart. Chart FX Statistical is an Extension to Chart FX and it is not intended to be used alone. It needs to be linked to a chart in order to work. -- FP Software FX, Inc.
Software FX Posted December 24, 2003 Report Posted December 24, 2003 > Would this Extension is smart enough to divide the dataset into provide > number of interval and plot accordingly ? As you said, the number of intervals is given by you. Intervals are taken from Min to Max (Data) and divided equally. For example if your data goes from 0 to 100 and you have 10 intervals the intervals will be 0 - 10, 10 - 20; 20-30,... The Min and Max are taken from the data. Did you get the HotFix ? -- FP Software FX, Inc.
User (Legacy) Posted December 25, 2003 Author Report Posted December 25, 2003 Hi, Yes I got the HotFix , and I am using it. Thanks In my last Query I provided you a test workspace in which I tested Statistical Ext HotFix with few DataSet. Have you gone through it? Seems your reply do not reflect this. Seems I was not able to describe the scenerio. Let me do it again: I am using this Ext. with a Data Range which is very less ( may be change at third decimal digit.) I test the component for my requirement , But It fail. In my workspace I providen few DataSet with different Data Range and the result of that is provided in attached Excel sheet. Please go through this sheet and workpace and tell me whether I can use this component in the described scenerio. Thanks Rakesh kumar Agilent technology International FYI : Workspace is attached with my last query
User (Legacy) Posted December 25, 2003 Author Report Posted December 25, 2003 Hi, I am waiting for reply. Thanks Rakesh kumar Agilent Technology International StatExt Detail study.zip
Software FX Posted January 5, 2004 Report Posted January 5, 2004 Add the following line to your code BEFORE setting the data: chart1.AxisY.ForceZero = false; By default, the Min is set to Zero regardless of the data, this setting will prevent that. After making your Chart a Histogram, add the following code: chart1.Axis[(int)AxisItem.X2].LabelsFormat.Decimals = 5; // At least, you need to display as many decimals as necessary to make the intervals different from each other chart1.Axis[(int)AxisItem.X2].Style &= ~AxisStyle.AutoFirstLabel; // Prevent first label to be rounded -- FP Software FX, Inc.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.