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
 Cannot get script to run.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

austin745

USA
4 Posts

Posted - 10/24/2023 :  11:31:36 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 2022b
Operating System: Windows 11

I have written a labtalk script that works when I paste it into the Command window, but I cannot figure out how to get it to map to a toolbar button. I have followed the instructions given here: https://www.originlab.com/doc/LabTalk/Tutorials/Tutorial-Get-Started#Save_Script_as_an_OGS_File_and_Run_it.
I have tried both to create a custom button as well as to map it to the custom routine button, but neither seem to work. When I click on the buttons, nothing happens. No error, nothing.

If anyone has any idea what the problem could be, that would be super helpful.

Thank you,
Austin

YimingChen

1609 Posts

Posted - 10/24/2023 :  12:04:37 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Could you view this YouTube video on executing LabTalk script from a customized button?Thanks.
https://www.youtube.com/watch?v=Dzw3oGPvHSQ

James
Go to Top of Page

austin745

USA
4 Posts

Posted - 10/24/2023 :  12:20:08 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by YimingChen

Could you view this YouTube video on executing LabTalk script from a customized button?Thanks.
https://www.youtube.com/watch?v=Dzw3oGPvHSQ

James



Hi James. I am doing it exactly like in the video, it is still not working.

Thank you,
Austin
Go to Top of Page

YimingChen

1609 Posts

Posted - 10/24/2023 :  1:35:42 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Did you save the .ogs file under the User Files Folder? If possible, could you record a video showing the steps, so that we can double-check?

Go to Top of Page

austin745

USA
4 Posts

Posted - 10/24/2023 :  1:39:14 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by YimingChen

Did you save the .ogs file under the User Files Folder? If possible, could you record a video showing the steps, so that we can double-check?





I did. Unfortunately I cannot record any videos. But I can assure you that I followed the video and help guide to a T.
Go to Top of Page

YimingChen

1609 Posts

Posted - 10/24/2023 :  3:17:26 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
It is hard to tell what is going on. If you execute run.section(smooth, Main) in the command window. Does it work?

Go to Top of Page

austin745

USA
4 Posts

Posted - 10/24/2023 :  7:20:04 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by YimingChen

It is hard to tell what is going on. If you execute run.section(smooth, Main) in the command window. Does it work?





Origin crashes when I try to run that.
Go to Top of Page

YimingChen

1609 Posts

Posted - 10/25/2023 :  09:36:30 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Please contact our support using the link below and provide a valid serial number. Thanks.
https://www.originlab.com/restricted/support/newticket.aspx

James

quote:
Originally posted by austin745

quote:
Originally posted by YimingChen

It is hard to tell what is going on. If you execute run.section(smooth, Main) in the command window. Does it work?





Origin crashes when I try to run that.

Go to Top of Page

minimax

348 Posts

Posted - 10/26/2023 :  05:14:08 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Sorry that the video showed a bad example.

It should not use text "smooth" for the ogs file name, we will fix the video shortly.

i.e. we should never run script like "run.section(smooth, Main)". ("smooth" is reserved for other usage: XF)

But it should be not related to your original questions.
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