Author |
Topic |
|
austin745
USA
4 Posts |
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 |
|
YimingChen
1609 Posts |
|
austin745
USA
4 Posts |
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
1609 Posts |
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
USA
4 Posts |
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
1609 Posts |
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
USA
4 Posts |
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
1609 Posts |
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.
|
|
|
minimax
348 Posts |
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. |
|
|
|
Topic |
|