Welcome, Guest
Username: Password: Remember me

TOPIC: Sleep function in teslascada2 (ST script)

Sleep function in teslascada2 (ST script) 6 months 1 week ago #1410

  • 2796
  • 2796's Avatar
  • Offline
  • New Member
  • Posts: 2
  • Karma: 0
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) 6 months 1 week ago #1411

  • fatkhrus
  • fatkhrus's Avatar
  • Offline
  • Administrator
  • Posts: 534
  • Thank you received: 73
  • Karma: -112
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) 6 months 1 week ago #1413

  • 2796
  • 2796's Avatar
  • Offline
  • New Member
  • Posts: 2
  • Karma: 0
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