Loopback
VPixx devices have the possibility of enabling an internal loopback to mimic the information sent by digital outputs to the digital inputs. This will work the same way on a simulated device. The loopback can be enabled in the code as a normal device, as well as in the Device settings (File →Settings → Device).
When dealing with internal loopback for testing, it is not necessary to change your code.