Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Warning

TKDataAccess.py is provided by Tatsoft, and when used, you need to make sure the installPath into the TKDataAccess.py file is with the correct path of Studio installation.


See below Below are some methods from TKDataAccess.py that you can use:

...

Code Block
Connect(runtimeHostAddress, userName, password):

runtimeHostAddress  =  IP address or server name
userName  = User name.
password = Password


  • Get a Status of Server Connection.
Code Block
GetConnectionStatus ()                 

...

  • Check whether is connected to server.
Code Block
IsConnected ()


  • Disconnect from Server.
Code Block
Disconnect()


  • Set flag waiting value from server.
Code Block
SetSyncFlag(flag):

flag = True wait value from server, false does not wait value from server.


  • Retrieve current value.
Code Block
GetObjectValue(name)

name = TagName

...

  • Set new value for an object.
Code Block
SetObjectValue(name, newValue)

name = TagName
newValue = new value to set in the tag.

...

  • Execute a method from a remote ScriptClass.
Code Block
ExecuteClassMethodOnServer(className, methodName, parameters)

className = name of the class in the remote project.
methodName = name of the method in the remote class.
parameters = if any, necessary to the invoke the remove method.

...