Skip to main content
Skip table of contents

WaitShort: IOType = 5

WaitShort, 2 Command Bytes: 

0

IOType=5

1

Time

 

 

0 Response Bytes: 

 

 

This IOType provides a way to add a delay during execution of the Feedback function. The typical use would be putting this IOType in between IOTypes that set a digital output line high and low, thus providing a simple way to create a pulse. Note that this IOType uses the same internal timer as stream mode, so cannot be used while streaming.

  • Time: This value (0-255) is multiplied by a microsecond constant to determine the delay
    delay multiple: U3C = 128 us, U3B = 64 us, U3A = 128 us, U6 = 64 us.

Example

PY
#WaitShort Feedback command

import u3
d = u3.U3()
d.debug = True
d.getFeedback(u3.WaitShort(Time = 9))
#Sent:  [0x9, 0xf8, 0x2, 0x0, 0xe, 0x0, 0x0, 0x5, 0x9, 
#Response:  [0xfa, 0xf8, 0x2, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0]
#[None]
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.