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
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 Fast Output in Layer
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Malab

Germany
19 Posts

Posted - 07/02/2002 :  05:26:00 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I want to make a "Slideshow" in Origin like:

Loop
Layer -i DataSet(n)
timer
Layer -e DataSet(n)
n+1
end

But with the command layer -i DataSet there is a flicker on screen. This comand is to slow! Can I change a buffer or something to make it possible to have a perfect animation?

cpyang

USA
1406 Posts

Posted - 07/02/2002 :  11:45:49 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You should keep all data plots in layer and just control their Show property. The following script should work
 
// count number of plots in layer and set all to be hidden
layer.color=color(white);//need to have a color to clear background with plot -l
nplots=0;
doc -e D {set %C -s 0;nplots++};

set %(1,@D) -s 1;// show 1st plot
plot -l; // draw layer

loop (i,2,nplots) {
sec -p 1;
set %(i-1,@D) -s 0;
set %(i,@D) -s 1;
plot -v; // disable flash
plot -l;
};




Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000