Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

waveform chart

hello all and thanks in advance for any reply.

I'm developping an app in asp.net and I need to generate on the fly graphs from data in database. One of my co-workers suggested measurement studio for that.

I've installed v.8.0.1 along with VS2005, but I'm having trouble just displaying a simple graph.

Can anyone supply me with a simple example of waveform graph, just to get me started??

Tanks,

Adao
0 Kudos
Message 1 of 5
(4,013 Views)
The graph examples are installed by default to C:\Program Files\National Instruments\MeasurementStudioVS2005\DotNET\Examples\UI\WindowsForms\Graph
 
I also suggest that you read some of the conceptual help in the Measurement Studio online help. Specifically, check out the topic titled "Using the Measurement Studio Windows Forms Graph .NET Controls". This link should get you to the topic - ms-help://MS.VSCC.v80/MS.VSIPCC.v80/NI.MeasurementStudio.2005/NINETWinFormsConcept/XML/Using_NINETGr...
0 Kudos
Message 2 of 5
(4,006 Views)
thank you for your reply, drohacek

I've managed to draw the graph using the following code:

double[] dates = new double[3] { d1, d2,d3 };
double[,] Val = new double[3, 3] { { 30, 40, 85 }, { 40, 50, 95 }, { 50, 60, 105 } };

GraphXY.PlotXYMultiple(dates, Val);

created 3 DateTime objects and casted them into an array of doubles (dates), and some examples plot values (Val).
and got the output shown on the attached image.

but I need to have a legend identifying each plot with a different color and name, so I saw somewhere that you need to associate with a legend control. I did that but the three plots that make up the graph are in fact only one! so I can´t identify none.

could you provide me with assistance?

Thanks,

Adao

0 Kudos
Message 3 of 5
(3,994 Views)
I do not have these examples.  I only have DAQmx examples.  Any reason why?
Programming Data Acquisition and Control in Measurement Studio and Labwindows/CVI
0 Kudos
Message 4 of 5
(3,875 Views)
Ignore.
Programming Data Acquisition and Control in Measurement Studio and Labwindows/CVI
0 Kudos
Message 5 of 5
(3,874 Views)