01-06-2010 03:23 PM
01-06-2010 03:28 PM - edited 01-06-2010 03:29 PM
I'd love to, except that whatever was causing that error disappeared. I didn't change anything in the program and the problem is gone. Each plot on the 5 charts is a user defined color and there is no problem anymore. I have updated my drivers to include .NET 2.0 as well (to get more samples), and I also upgraded Measurement Studio. It was such a brief glitch that I can't reproduce that I don't really want to make an issue out of it. I have attached the new zip to this post. It should have no errors.
Thanks.
01-07-2010 05:30 PM
Select Case numChart.Value Case 0 wfgTemperature.PlotYAppendMultiple(ChartData)
Case 1 wfg1.PlotYAppendMultiple(ChartData1) Case 2 wfg2.PlotYAppendMultiple(ChartData2) Case 3 wfg3.PlotYAppendMultiple(ChartData3) Case 4 If (Now.Second Mod 5 = 0) Then wfg4.PlotYAppendMultiple(ChartData) End Select
fixed the problem. inside of Timer1_Tick
01-08-2010 08:18 AM
I can see how that would fix the problem, but I'd really like for every chart to be recording at all times so users can flip back and forth to see trends. Worst case I can put the charts inside of a tab control. Is there any other option?
Thank you for your continued support.
01-11-2010 04:54 PM - edited 01-11-2010 04:54 PM
Have you tried writing data to the graphs, and putting teh updates in a case structure? does that work? if so, you could just register a callback to call .update on your specific graph when the user selects a specific control.
01-12-2010 09:35 AM
To date I have tried:
Case statement on numeric control value change to call the selected chart's BrintToFront method - Glitchy. Rear chart breaks through visibility periodically.
Case statement on numeric control value change to made selected chart visible, all else invisible - Charts disappear when clicked on except for the last chart that receives data.
Added update statement to all five charts every time data is written - still disappear
Added update method to only the visible chart when data is written - still disappear
Added case statement to the loop which writes data to the selected chart AFTER writing to the other charts - still disappear - odd
The problem must be some glitch in the library vs. Windows. I don't know of any other control that behaves this way. I made a tabcontrol and put each chart on it's own tab page. It isn't the ideal method, but it will work and I'm sure people will be happy to finally have multiple charts. Layered charts are only slightly more attractive that a tab control, so I'm not concerned with the appearance or the slight increase in real estate. Thank you for your dilligence. This issue does not warrant any further investigation on my part as the tab control gets the job done.