Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Resetting Analog Waveform to 0, not able to plot Graph in WPF application.

I have an AnalogWaveform object , where samples are appended and Precision time are being  set.With  AnalogWaveform object I'm able to plot the graph through data binding in WPF.

 

But when I set the AnalogWaveform to 0 i.e, new AnalogWaveform<double>(0);(Which I believe to clear the AnalogWaveform object) then graph is not plotting.

 

Any Idea on this issue? 

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

Hi, 

 

Can you please concretize or attache some  screenshots? I didn't really understand what is the problem.

 

Thx.

 

0 Kudos
Message 2 of 3
(1,480 Views)

I went ahead and created a simple mockup, binding a graph to a waveform object, using Append to modify it, and assigning a new waveform to clear it (attached).

 

Based on your initial description, I would guess that your code is missing the change notification for the property (line 17 in my example)? Using Append will modify the waveform object, and it will raise a change notification to the graph. For Clear, in order for the WPF binding system to see the change, it needs an INotifyPropertyChanged implementation (or a dependency property) in order to see the new value.

~ Paul H
0 Kudos
Message 3 of 3
(1,469 Views)