|
andrewdsto
Australia
Posts |
Posted - 06/19/2008 : 02:38:55 AM
|
Origin Version (Select Help-->About Origin): 8.0 pro Operating System: win XP
Hi, I am having a problem manipulating datasets. Whilst a plot window is active I am having problems manipulating dataset with '-=' command among others. It does not matter if the dataset is temporary or exists in a worksheet. If I make the worksheet active everything runs as it should. See example below.
If I run the following script it produces the following output.(I've include the type commands as pointers to what I am acting on/with). Here %w contains the name of the worksheet (in this case 'E01A2') & 'Bubble' is the name of the plot window.
del tempdataset; mark1b=; type "%%w = %w"; type "%%h = %h"; type "%%c = %c"; yoffsetval=; tempdataset=%c; %c[mark1b]=; type "%%h = %h"; tempdataset[mark1b]=; tempdataset -= yoffsetval; tempdataset[mark1b]=;
type "----------------------------------";
type "%%w = %w"; type "%%h = %h"; type "%%c = %c"; yoffsetval=; tempdataset=%c; %c[mark1b]=; win -a %w; type "%%h = %h"; tempdataset[mark1b]=; tempdataset -= yoffsetval; tempdataset[mark1b]=;
MARK1B=303226 %w = E01A2 %h = Bubble %c = E01A2_Accel YOFFSETVAL=-755.1433253322 E01A2_Accel[MARK1B]=-703.13449725961 %h = Bubble TEMPDATASET[MARK1B]=-703.13449725961 TEMPDATASET[MARK1B]=-703.13449725961 ---------------------------------- %w = E01A2 %h = Bubble %c = E01A2_Accel YOFFSETVAL=-755.1433253322 E01A2_Accel[MARK1B]=-703.13449725961 %h = E01A2 TEMPDATASET[MARK1B]=-703.13449725961 TEMPDATASET[MARK1B]=52.008828072584
In the first instance I have a plot window active with the plot described by %c in this case the temporary dataset is not acted upon by the '-=' function. However if I switch to the worksheet prior to the "-=" function it acts as expected.
Why?
If I remove the temporary dataset from the code and replace it with a real worksheet data column I still get the same thing.
MARK1B=303226 %w = E01A2 %h = Bubble %c = E01A2_Accel YOFFSETVAL=-755.1433253322 E01A2_Accel[MARK1B]=-703.13449725961 %h = Bubble E01A2_BUBBLE@2[MARK1B]=-703.13449725961 E01A2_BUBBLE@2[MARK1B]=-703.13449725961 ---------------------------------- %w = E01A2 %h = Bubble %c = E01A2_Accel YOFFSETVAL=-755.1433253322 E01A2_Accel[MARK1B]=-703.13449725961 %h = E01A2 E01A2_BUBBLE@2[MARK1B]=-703.13449725961 E01A2_BUBBLE@2[MARK1B]=52.008828072584
why do I need to have the worksheet active in order to manipulate the dataset? Is it because I have too large a dataset > 500 000 points?
thanks Andrew
Edited by - andrewdsto on 06/20/2008 12:34:32 AM |
|