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
 Problem manipulating datasets

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

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