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
 Origin Forum
 Could someone help me?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

iphark

12 Posts

Posted - 04/11/2014 :  04:16:58 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): Origin Pro 8.5 OG SR1
Operating System: Win7

Hi @everyone!

I was wondering if someone could help me out?

I made an electrolysis and measured it (sorry, english is not my native language), I just made the mistake of using a pulse instead of a consistent potential. Now I have 180 columns istead of 3. I tried to measure the current (A) the potential (V) and the charge (Q). Now my Origin version does not contain the feature of stacking columns (Im not talking about a graph, but putting column 4 benath 1, 5 beneath 2 and 6 benath 3, then 7 benath 4 which is benath 1 and so on)
So I wondered if someone with a higher Origin-Version could do that for me?
This would be awesome! Thank you

Edited by - iphark on 04/11/2014 04:17:47 AM

greg

USA
1378 Posts

Posted - 04/11/2014 :  09:07:17 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Is this what you need?

// BEGIN SCRIPT
range rax = 1, ray = 2, raz = 3;
for(ii = 4 ; ii < wks.ncols ; ii++)
{
range rad = wcol(ii);
targetrow = rax.GetSize() + 1;
copydata irng:=rad orng:=rax[$(targetrow):$(targetrow)];
ii++;
range rad = wcol(ii);
targetrow = ray.GetSize() + 1;
copydata irng:=rad orng:=ray[$(targetrow):$(targetrow)];
ii++;
range rad = wcol(ii);
targetrow = raz.GetSize() + 1;
copydata irng:=rad orng:=raz[$(targetrow):$(targetrow)];
}
loop(ii,4,wks.ncols) {del col(4);};
// END SCRIPT
Go to Top of Page

iphark

12 Posts

Posted - 04/11/2014 :  09:24:21 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Greg and thanks for helping (really!)

I tried to run this script (and I have no knowledge about programming, i copied this into the script window and hit enter, was that right?), but it sais "Operand missing:/ENDSCRIPT"

Did I do something wrong?
Go to Top of Page

Drbobshepherd

USA
Posts

Posted - 04/14/2014 :  2:34:32 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
You may have made an error in copying the script. It looks like the last line was not interpreted as a comment, as it should have been. Perhaps you have a space, or an unprintable character between the slashes. Try copying/pasting the script again, and then run it.

This script should run without the comments. Try deleting the last line and see if it runs. If it doesn't, the new error message may help you find the error in the script. Often it is a simple thing like a missing ";".

Dr. Bob
Go to Top of Page

greg

USA
1378 Posts

Posted - 04/14/2014 :  2:56:39 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
The worksheet must be the active window.
If you paste into the Command Window, you can just press Enter.
If you paste into the Script Window, you must select the entire script and then press Enter.
Go to Top of Page

iphark

12 Posts

Posted - 04/29/2014 :  02:58:05 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks a bunch guys!! Sorry to say it so late, my daughter was born 2 weeks ago and I didn't have a lot of time (none).

There actually was a space in the comments. I removed it and it still didn't work but no error came up then I followed gregs comment and marked the whole thing and it worked! Thanks!

Now I just need to find myself a computer with enough memory to do that... It keeps telling me it can't allocate enough memory for this task (and the origin task occupies 1,5 GB of my RAM). We'll see.

So - thanks a bunch!!!
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