John Dammeyer wrote:
Hi,
Delphi 5.
I'm working with National Instruments ActiveX controls and specifically
their CWGraph.ChartY function.
I'd like to chart two traces but I can't figure out how to make up a two
dimensional array to pass to the function.
Here's what I have to plot one trace:
ClippedArray : array of Variant; // Definition.
...
ClippedArray := VarArrayCreate([0,SAMPLE_SIZE],varVariant); //
Creation.
...
ClippedArray[k] := data; // data added to array.
...
FilteredDataGraph.chartY( ClippedArray ); // Data displayed on chart.
Since National Instruments doesn't really support Delphi I can't find
anything that points me in the right direction.
Any suggestions?
Thanks
John
I'm going to guess that NI provided a C/C++ interface library to one or
more .DLLs (or is it an ActiveX control?); and you're working from
examples in those languages?
Can you post some equivalent C/C++ code to what you're trying to
accomplish so I can see how they're expecting the arrays to be declared
and passed?
Stephen Posey
[email protected]
_______________________________________________
Delphi mailing list -> [email protected]
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi