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
 graph refresh-problem

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
cosy 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.
6   L A T E S T    R E P L I E S    (Newest First)
easwar 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

cosy 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 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 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


cpyang 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


Iris_Bai 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

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