Welcome, Guest
Username: Password: Remember me

TOPIC: Sleep function in teslascada2 (ST script)

Sleep function in teslascada2 (ST script) 3 years 6 months ago #1410

  • 2796
  • 2796's Avatar
Hi all,

I try to create a script(ST) in tesla scada 2, and I need a function (wait, sleep) for stop thread for 2 seconds.
In official documentation is indicated sleep(num_mili) function, but it doesn't work.
sleep(2000); // wait 2 seconds, !!! At compile time I receive --> Error message: Wrong call function

How can I do this? Thx for any idea.
The administrator has disabled public write access.

Sleep function in teslascada2 (ST script) 3 years 6 months ago #1411

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 861
  • Thank you received: 126
  • Karma: -108
Hello,

What version of TeslaSCADA2 do you use? sleep function works only in the last (2.42) version.

Best regards,
Ruslan
The administrator has disabled public write access.
The following user(s) said Thank You: 2796

Sleep function in teslascada2 (ST script) 3 years 6 months ago #1413

  • 2796
  • 2796's Avatar
I was using version 2.40.
I updated the IDE and now it works.
Thanks!
The administrator has disabled public write access.
Go to top