Example Code

Search for Visual C++ example using a NI waveformgraph

Hi,

I´m searching for a solution to plot out X and Y values on a NI waveformgraph object.

A timer is used to update the diagram. The timer calles a function which organizes the output as follows:

void ThreadWinApp::DoOutput()

{

...

// X_Value and Y_Value both are double parameters and defined

this->waveformGraph1->PlotX(X_Value);

this->waveformGraph1->PlotY(Y_Value);

...

this->waveformGraph1->Update();

}

The diagram`s scaling is updated but nothing is plot.

I hope you can help me.

Kind regards.

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors