Python


Start the app in normal size for device "AIO000" and perform the app startup and termination processing.

lret = ctypes.c_long()                            # Return value

appid = ctypes.c_short()

status = ctypes.c_ulong()

 

#----------------------------------------

# Start the application and allow access.

#----------------------------------------

lret.value = cgen_api.GenOpenApplication( b"AIO000", ctypes.byref(appid), 1)

if lret.value != 0:

    print(f"Error occurred in GenOpenApplication {lret.value}\n")

 

#----------------------------------------

# Close the application and disable access.

#----------------------------------------

lret.value = cgen_api.GenCloseApplication(appid, ctypes.byref(status))

if lret.value != 0:

    print(f"Error occurred in GenCloseApplication {lret.value}\n")