InoDrive / UserApp / get_all_variables


InoDrive.UserApp.get_all_variables(self)

Get all Variable(s) in User Application that are set to Read or Read/Write. Does not poll Variable List.

Arguments: self (Object): Reference to User Application Instance.

Returns: Dict – Dictionary containing all Variable’s with their ID’s, Type’s, Access Level’s, Value’s, and Write Permission’s.

import CkInoDriveAPI

# Instantiate InoDrive Object and Connect by Name
Drive = CkInoDriveAPI.InoDrive(target='Name', autoConnect=True)

# Start polling User Application
Drive.UserApp.start_poll()

# Get All Variables
var_list = Drive.UserApp.get_all_variables()
print(var_list)