Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Why are my Waveform Charts Disappearing?

Again, it will be much more helpful to the community if we seperate the color issue from the charting issue. If you make a new post, you can provide the link here, and i'll be happy to keep looking into the situation.
Richard S -- National Instruments -- (former) Applications Engineer -- Data Acquisition with TestStand
0 Kudos
Message 11 of 16
(1,686 Views)

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.

Message Edited by SCXI and MS 2k3-VB.NET on 01-06-2010 03:29 PM
Programming Data Acquisition and Control in Measurement Studio and Labwindows/CVI
0 Kudos
Message 12 of 16
(1,684 Views)

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

 

 

Richard S -- National Instruments -- (former) Applications Engineer -- Data Acquisition with TestStand
0 Kudos
Message 13 of 16
(1,658 Views)

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.

Programming Data Acquisition and Control in Measurement Studio and Labwindows/CVI
0 Kudos
Message 14 of 16
(1,647 Views)
 

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. 

Message Edited by Snowman 6008 on 01-11-2010 04:54 PM
Richard S -- National Instruments -- (former) Applications Engineer -- Data Acquisition with TestStand
0 Kudos
Message 15 of 16
(1,614 Views)

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.

Programming Data Acquisition and Control in Measurement Studio and Labwindows/CVI
0 Kudos
Message 16 of 16
(1,603 Views)