DeviceExecuteAsynchronous
DeviceExecuteAsynchronous[device, "command", fun] initiates asynchronous execution of the specified command on a device, calling the handler function fun when an event occurs.
DeviceExecuteAsynchronous[device, "command", params, fun] executes the command with the parameters params.
Examples
Execute asynchronously:
DeviceExecuteAsynchronous[device, "Measure", Print]Please visit the official Wolfram Language Reference for more details.