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
 LabTalk Forum
 plot -an delay

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
pavel1 Posted - 06/02/2005 : 05:10:49 AM
Origin Version (Select Help-->About Origin): 7.5SR5
Operating System: WinXP
Hello,
I use the "plot -an" command for real-time visualization of measured data. This commands puts data into a worksheet which is included in a graph layer content. It works fine for the first worksheet - points appear in the graph immediately. However, for all following worksheets added later to the layer, the points appear just after the next "plot" command - there is one point delay in displaying.
Of course, any kind of refresh helps but it replots all points which can take some time and can be a little bit disturbing.
The problem occurs when executing the "plot" command both from Script Window and from the VB client (by Execute Method).
Thanks.
4   L A T E S T    R E P L I E S    (Newest First)
pavel1 Posted - 06/08/2005 : 08:28:24 AM
Thanks Greg,
I will use the workaround following your example - it works.
However, it would be nice to have one more Service Release solving the above problem.

Pavel
greg Posted - 06/07/2005 : 10:07:32 AM
We have verified the problem in 7.5SR5.

Your example doesn't quite illustrate the problem, which is that worksheets created after a graph lag in their real-time plotting. This also suggests a workaround for the problem - which may be needed since there may not be any more updates to 7.5.

This illustrates the problem:

doc -s;
doc -n;
win -t data Data2;
win -t plot line;
%M=%H;
win -t data Data3;
win -a %M;
layer -i data1_b;
layer -i data2_b;
layer -i data3_b;
loop(ii,1,10) {
plot -an Data1 1 ii 6.5+rnd()*3;
plot -an Data2 1 ii .5+rnd()*3;
plot -an Data3 1 ii 3.5+rnd()*3;
sec -p 1;
}

A re-arrangement of the above doesn't have the problem :

doc -s;
doc -n;
win -t data Data2;
win -t data Data3;
win -t plot line;
layer -i data1_b;
layer -i data2_b;
layer -i data3_b;
loop(ii,1,10) {
plot -an Data1 1 ii 6.5+rnd()*3;
plot -an Data2 1 ii .5+rnd()*3;
plot -an Data3 1 ii 3.5+rnd()*3;
sec -p 1;
}

The problem has been Trackered with ID 7786.

pavel1 Posted - 06/07/2005 : 06:07:30 AM
Hello Greg,
thank you for your answer. Double layer graph is not exactly what I have in mind. I have modified your script in the following way:

doc -s;
doc -n;
win -t plot LineSymb;
win -a Graph1;
x2=20;
layer -i data1_b;
loop(ii,1,10) {
plot -an Data1 1 ii rnd()*10;
type $(ii);
sec -p 2;
};
win -t data Origin;
win -a Graph1;
layer -i data2_b;
loop(ii,11,20) {
plot -an Data2 1 ii rnd()*5;
type $(ii);
sec -p 2;
}

Data from the sheet Data1 are displayed O. K. but the Data2 points appear in the graph delayed comparing to the worksheet and to the Script window. Moreover, the last point (ii=20) is not plotted at all unless the graph window is refreshed.

Pavel
greg Posted - 06/06/2005 : 11:31:55 AM
Are you saying that a script such as this:

doc -s;
doc -n;
win -t data origin;
win -t plot doubley;
page.active=1;
x2=20;
layer -i data1_b;
page.active=2;
layer -i data2_b;
loop(ii,1,20) {
plot -an Data1 1 ii rnd()*10;
plot -an Data2 1 ii rnd()*5;
sec -p 1;
}

does not update the two plots at the same time?

(Note : the script is destructive, so save any work before running it.)


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