Error message: Invalid command name "clock"

For developers writing C++, Fortran, Java, code who have questions or comments to make.

Moderators: silvia, selimgunay, Moderators

Post Reply
JeremyICHI
Posts: 2
Joined: Wed Aug 03, 2022 5:39 pm

Error message: Invalid command name "clock"

Post by JeremyICHI » Wed Aug 10, 2022 8:31 pm

Hello everyone.

I've compiled opensees.exe (v 3.2.2) and everything works well. However, when I try to use the "clock" command, I get the following error message:
invalid command name "clock"
while executing
"clock clicks -millisec"
I'm trying to source the init.tcl in my .tcl analysis program, but it still doesn't work. Is there any way to include the "clock" command when compiling opensees.exe?

Thank you very much! :D

JeremyICHI
Posts: 2
Joined: Wed Aug 03, 2022 5:39 pm

Re: Error message: Invalid command name "clock"

Post by JeremyICHI » Thu Aug 11, 2022 9:23 am

I've solved the problem. I just sourced an appropriate version of the init.tcl file, where the "clock" command has been defined.

pattibeck
Posts: 3
Joined: Tue Dec 06, 2022 12:05 am

Re: Error message: Invalid command name "clock"

Post by pattibeck » Tue Dec 06, 2022 12:08 am

The "clock" command has been specified in the init.tcl file, which I recently sourced in the proper version.

drift hunters

mostlypen
Posts: 7
Joined: Sun Jun 04, 2023 11:11 pm

Re: Error message: Invalid command name "clock"

Post by mostlypen » Wed Oct 04, 2023 7:39 pm

JeremyICHI wrote:
Thu Aug 11, 2022 9:23 am
I've solved the problem. I just sourced an appropriate version of the init.tcl file, where the "clock" command has been defined. doodle cricket
After I put it in, the code was compiled correctly. In any case, I'm thankful to you!

Post Reply