User (Legacy) Posted August 23, 2003 Report Share Posted August 23, 2003 Hi, In VC++ environment, I've a dialog based chart embedded as an Active X control. For the realtime chart i pass some data and draw the chart, but if the data is in the form of an array of 6 elements and i want to draw realtime chart for each value.how do i do? Suppose in the dialog box i've a combo box with 6 strings, and initially it is set to 1 and realtime chart is drawn and a user changes his combo selection to 2, how do i draw realtime chart for this value on the same chart with different values, i mean to say it should not continue with the first selection option, the second one should be a new one. Regards, Rao Link to comment Share on other sites More sharing options...
Software FX Posted August 23, 2003 Report Share Posted August 23, 2003 If you want to start plotting new data, you must re-start the real-time chart to remove all previous data. You can do this by calling ClearData. If you want just to continue adding data, you don't have to do anything, simply continue adding data to the chart. Maybe if you explain a little more about what do you want to see happening in the chart when this combo box is selected I can give you some more tips. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
User (Legacy) Posted August 26, 2003 Author Report Share Posted August 26, 2003 Hi, Actually i have any array of size 7 which is equal to the values in the Combo Box. for real time I plot 1st value present in the array for a time interval say frm time t1 to t2, after this the user changes his option frm the combox box to 2nd value, i want to clear the 1st values and draw the 2nd value frm time t1 to t2 and realtime as well. All this should be done in a single dialog based chart. How can I do?? I hope got my point. Regards, Rao "Software FX Support" <support@softwarefx.com> wrote in message news:vOzLllYaDHA.1340@WEBSERVER1... > If you want to start plotting new data, you must re-start the real-time > chart to remove all previous data. You can do this by calling ClearData. > > If you want just to continue adding data, you don't have to do anything, > simply continue adding data to the chart. > > Maybe if you explain a little more about what do you want to see happening > in the chart when this combo box is selected I can give you some more tips. > > -- > FP > Software FX, Inc. > > Link to comment Share on other sites More sharing options...
Software FX Posted August 27, 2003 Report Share Posted August 27, 2003 As I said before. To start plotting another variable (when the selection in the combobox changes), simply reset your chart, use OpenData - CloseData with NO real-time flags to set up the initial points (from t1 to t2) and then continue to add points to this chart in real-time. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.