copydraw.VPPort
copydraw.copydraw.VPPort(
serial_nr,
pulsewidth=0.01,
raise_on_missing_serial=True,
)Class for interacting with the virtual serial port provided by the BV TriggerBox
Methods
| Name | Description |
|---|---|
| create_dummy | Initialize a dummy version - used for testing |
| write |
create_dummy
copydraw.copydraw.VPPort.create_dummy(serial_nr)Initialize a dummy version - used for testing
write
copydraw.copydraw.VPPort.write(data)Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| data | data to be written to the port | required |
Returns
| Name | Type | Description |
|---|---|---|
| byteswritten | int | number of bytes written |