The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
 All Forums
 Origin Forum for Programming
 Forum for Origin C
 [C# Programming]How to draw multi lines in origin

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
lostinT 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);


2   L A T E S T    R E P L I E S    (Newest First)
cpyang 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
lostinT Posted - 06/05/2014 : 04:19:42 AM
if it is necessary,I will paste the code file,thanks

Hello world!

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000