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 »

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 »

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 »

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 »

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