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
 Scripts are running slower and slower
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

66de250

China
24 Posts

Posted - 11/08/2024 :  01:00:07 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Dear Sir, a workbook has many, many columns of data, use the "plotxy" command, take the first column as the X-axis data, and each other as the Y-axis data, output to new windows, after the drawing result window reaches a certain number, the script running speed is obviously slow, is this my computer reason or 'origin' optimization problem? If it is an 'origin' optimization problem how should I solve this problem.My software version is 2021.

YimingChen

1607 Posts

Posted - 11/08/2024 :  3:08:46 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
How many columns did you plot? Is your code similar to the code below?

for (int i = 2; i < 100; i++) {
	plotxy [Book1]1!(1,$(i)) ogl:=[<new>]<new>;
}


I tested with 100 columns, and it was slightly slower towards the end.

Thank you
James

Go to Top of Page

66de250

China
24 Posts

Posted - 11/09/2024 :  02:22:53 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thank you for your reply, I generally draw data columns up to several hundred.
quote:
Originally posted by YimingChen

How many columns did you plot? Is your code similar to the code below?

for (int i = 2; i < 100; i++) {
	plotxy [Book1]1!(1,$(i)) ogl:=[<new>]<new>;
}


I tested with 100 columns, and it was slightly slower towards the end.

Thank you
James



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