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
 Cannot get script to run.

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
austin745 Posted - 10/24/2023 : 11:31:36 AM
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
8   L A T E S T    R E P L I E S    (Newest First)
minimax Posted - 10/26/2023 : 05:14:08 AM
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.
YimingChen Posted - 10/25/2023 : 09:36:30 AM
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.

austin745 Posted - 10/24/2023 : 7:20:04 PM
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.
YimingChen Posted - 10/24/2023 : 3:17:26 PM
It is hard to tell what is going on. If you execute run.section(smooth, Main) in the command window. Does it work?

austin745 Posted - 10/24/2023 : 1:39:14 PM
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.
YimingChen Posted - 10/24/2023 : 1:35:42 PM
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?

austin745 Posted - 10/24/2023 : 12:20:08 PM
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
YimingChen Posted - 10/24/2023 : 12:04:37 PM
Could you view this YouTube video on executing LabTalk script from a customized button?Thanks.
https://www.youtube.com/watch?v=Dzw3oGPvHSQ

James

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