Author |
Topic  |
|
cosy
Germany
Posts |
Posted - 03/30/2004 : 04:23:15 AM
|
Hi, I have OC routine which is triggered by a realtime labtalk script.This routine fills up a new cloumn with data.The column is attached to layer before the routine starts. The problem is that I am unable to see the data in the layer. But, when I minimize the window and maximize it, I can see it. I tried using the Update function as ds3.Update(FALSE, REDRAW_REALTIME_SCOPE); I tried other options of the second parameter but they didnt work. But since the data rate is high, I encountered the problem of flickering. Is there any way out ? Thanks Deepak Samuel. |
|
Iris_Bai
China
Posts |
Posted - 03/30/2004 : 05:35:51 AM
|
Hi cosy,
I cannot duplicate the problem in Origin75 and 70 version. The current layer can auto update when I update related dataset by code.
Iris |
 |
|
cpyang
USA
1406 Posts |
Posted - 03/30/2004 : 09:31:15 AM
|
If your data range does not change, but only updating with new values, then maybe you should use the animated plotting mode, which you can set from LabTalk with the graph active,
set %C -an 1;
before your data updating begin.
CP
|
 |
|
cosy
Germany
Posts |
Posted - 03/31/2004 : 07:05:46 AM
|
quote:
If your data range does not change, but only updating with new values, then maybe you should use the animated plotting mode, which you can set from LabTalk with the graph active,
set %C -an 1;
before your data updating begin.
CP Hi, My data range does change i.e., new data is appended everytime. I have a column which is filled in by DDE. This column is properly plotted in my graph in real time. The data in this column is operated by a function by OC and is filled in another column.It is this coulumn that I am unable to see in the graph.If I minimize and maximize the window I can see it. Why is the first column being ploteed properly while the next isnt ? Thanks. Deepak Samuel
|
 |
|
easwar
USA
1965 Posts |
Posted - 03/31/2004 : 5:14:59 PM
|
Hi Deepak,
You are not seeing the graph of the auto updated column plot correctly because the auto updated (destination) column is not updating properly when data gets appended to the source columns. This is a bug and has been trackered. The tracking number is QA#6198. We will try to address this in the next service release.
In the mean time, you can issue the following script command to force an auto update of the destination columns, right after you append data to your source columns: run -p au
I suggest that you consider using COM Automation Server instead of DDE. There are examples of using Origin as an Automation (COM) server from Origin, from other applications such as VB, Excel etc. These can be found under the subfolders: \Samples\Automation Server You can start by looking at the VB example \Samples\AutomationServer\VB\SendNumericDataToWks
In that example, there is a statement towards the end of the code:
b = OriginApp.PutWorksheet(ebWksName.Text, data, iRowStart)
So you will then need to just add another line of code right below it to call the Run method:
b = OriginApp.Run()
to force auto update to execute.
Documentation of using Origin as (COM) Automation Server can be found in the help topic: "Calling Origin from Other Applications" in the Programming Help file.
Easwar OriginLab
Edited by - easwar on 03/31/2004 5:28:56 PM |
 |
|
cosy
Germany
Posts |
Posted - 04/02/2004 : 04:15:06 AM
|
Hi, I dont have a folder called Automationserver in Samples. My Version is OriginPRO 7. Is COM supported in this version, if so can you please send the sample file you mentioned ?. Thanks, Deepak Samuel. |
 |
|
easwar
USA
1965 Posts |
Posted - 04/02/2004 : 09:11:17 AM
|
Hi Deepak,
My apologies...I should have mentioned earlier that Automation Server is a new feature in version 7.5
Easwar OriginLab
|
 |
|
|
Topic  |
|
|
|