Author |
Topic  |
|
sergius2ch
Russia
Posts |
Posted - 06/04/2007 : 1:16:46 PM
|
Origin Version (Select Help-->About Origin): 7.5 Rro Operating System: WinXP sp2
Hi, I need to transfer some data from Delphi2006 to Origin75 (with plotting). Could you give some working code, please? I can not find anything good in forum.
Something like that: { XValues: array[1..Num} of double; YValues: array[1..Num} of double; OriginApp.Connect; OriginApp.WorkSheet.Add; for i:= 1 to Num do Origin.WorkSheet[1].Cells[1, i]:= XValues[i]; for i:= 1 to Num do Origin.WorkSheet[1].Cells[2, i]:= YValues[i]; OriginApp.WorkSheet[1].Plot('a1:a1000','b1:b1000'); OriginApp.Visible:= true; }
With many thanks in advance, Sergey. mailto: sergius2ch@yandex.ru
|
|
Deanna
China
Posts |
Posted - 06/04/2007 : 9:43:39 PM
|
Hello Sergey,
There is a chapter in the programming help of the Origin 7.5 that explains how to call Origin from other applications. Did you see it? The title is Calling Origin from Other Applications (Automation Server Support). The most frequently used methods include PutWorksheet(), Execute(), etc. With them, you can connect to Origin, pass the data and execute any Labtalk Script to do the plotting.
There are also a few samples on automation server support. The samples are in Samples\AutomationServer subfolder under the Origin program folder. Although they are not written in Delphi, they might be helpful to some extent.
Deanna OriginLab Technical Services |
 |
|
|
Topic  |
|
|
|