Author |
Topic  |
|
psafier
USA
1 Posts |
Posted - 08/07/2003 : 11:50:47 AM
|
Hello,
Does anyone know how to animate a set of data in the form C=C(X,t)? I would like to animate a plot of C vs. X for various values of time,t. Thanks
Paul
Edited by - psafier on 08/07/2003 1:12:22 PM |
|
cpyang
USA
1406 Posts |
Posted - 08/07/2003 : 1:43:40 PM
|
Yes, you can. Here is an example on how to do it, assuming that you can write a little bit of LabTalk. We will use column formula to specify the function, so the LabTalk code below can be reuse.
1. Create worksheet and put your X values into col(1), for example fill it with 1-100 2. Enter a column formualr into col(2), for example sin(col(1) * a) so we will use variable a as our parameter. 3. Plot col(2) into a line plot 4. run the following labTalk script, when the graph is the active window.
set %C -an 1;loop(i,1,100) {a=i/10;plot -v;plot -L;run -wu data1;plot -L;sec -p 0.1};
Here we assumes the following, so you can easily change. 1. The data is in a worksheet called Data1. 2. The parameter is labtalk variable A
Hope this helps.
CP
|
 |
|
|
Topic  |
|
|
|