Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I make a curve descrete in webform graph?

Solved!
Go to solution

I have a webformgraph to show a curve with 1 hour data in every second that means it has 3600 points to show. It reads the data from a file. When there is a missing value, i replace the point value by -1. So it shows the curve fall to base line on that point and the client does not accept it. Now I want to show nothing on that point. Is it possible to show nothing for missing value in the curve? If there are any other solution plz let me know.

 

I tried it using NaN but it does not give me the solution.

 

using -1 value for it's missing value and it shows  like the following graph

 

usingMinus.PNG

 

I tried it using NaN and it shows like

 

usingNaN.JPG

 

But I am looking for something like following

 

lookingFor.PNG

 

I am using VS2005, Measurement Studio 8.5, ASP.Net with C#

 

 

Thank you,

Mamun

0 Kudos
Message 1 of 3
(3,707 Views)

It looks to me like you have not set the ProcessSpecialValues property on the plot to true so that plotting a NaN gives the 'break' appearance. You should do something like this for your graph:

 

waveformGraph1.Plots[0].ProcessSpecialValues = true ;

waveformGraph1.Plots[1].ProcessSpecialValues = true ;

-Mahesh
National Instruments
0 Kudos
Message 2 of 3
(3,702 Views)
Solution
Accepted by topic author Mamun
Setting ProcessSpecialValues should work, there is an example of plotting discontinuities here: http://decibel.ni.com/content/docs/DOC-5101. Though it is not with webforms, the process is very similar
Richard S -- National Instruments -- (former) Applications Engineer -- Data Acquisition with TestStand
0 Kudos
Message 3 of 3
(3,692 Views)