InoDrive / sysControl / consoleEnable
InoDrive.SysControl.consoleEnable(state)
Allows messages to be printed to the console from the InoDrive Module. The console messages come from print blocks which were established by the user when writing the User Application in the InoWorx Programmer.
Arguments:
• State (Boolean) Allow Printing Programmed Print Block messages to Watch Window Console, True or False.
Returns: Promise (Boolean) { success: true } or { success: false } if successfully enabled
// Import InoDrive API Library import { InoDriveApiJS } from "ck-inodrive-api" // Instatiate the API let InoDriveApi = new InoDriveApiJS.InoDriveApi({ connectAppUrl: "", secure: false }) // Instantiate InoDrive Object let Drive = await InoDriveApi.InoDrive({ target: "Name", autoConnect: true }) // Allow Printing of Programmed Messages to InoWorx Watch Window Console await Drive.sysControl.consoleEnable(true)