Author |
Topic |
|
lostinT
China
2 Posts |
Posted - 06/05/2014 : 04:17:40 AM
|
I'm new in Origin Progarmming, I try to draw three lines in the View.And here is my brief code .When I run it,it shows only two lines.Where is my mistake? Thanks advance!
targetWks.Colums[0].LongName = "Time"; targetWks.Colums[0].Units= "a.u2"; targetWks.Colums[1].LongName = "Line1"; targetWks.Colums[1].Units= "a.u2"; targetWks.Colums[2].LongName = "Line2"; targetWks.Colums[2].Units= "a.u2"; targetWks.Colums[3].LongName = ":Line3"; targetWks.Colums[3].Units= "a.u2";
float[,] data = new float[100, 4]; for (int i = 0; i < 100; i++) { data[i, 0] = (float)(i * 0.01 - 1.23); data[i, 1] = (float)(i / 12); data[i, 2] = (float)(i ); data[i, 3] = (float)(i + 10); } targetWks.SetData(data, 0, 0);
|
|
lostinT
China
2 Posts |
Posted - 06/05/2014 : 04:19:42 AM
|
if it is necessary,I will paste the code file,thanks
Hello world! |
|
|
cpyang
USA
1406 Posts |
Posted - 06/05/2014 : 12:57:40 PM
|
Did you try the examples provided in the product?
For example, this one
<exe>\Samples\Automation Server\CSharp\SendNumericDataToWks
CP
|
|
|
|
Topic |
|
|
|