Skip to content

← signal_processing package

AlignWindows

Aligns signals in two data packets.

Takes two packets with windows of different lengths and lines up the signals relative to the start of the window by trimming the data that falls outside of the max timestamp at the start of the packet and the min timestamp at the end of the packet. Will optionally (default=True) also trim all packets to the same length (to account for rounding during the first trim.) Also performs a ShiftTimestamps to account for filter lag. Version 1.0.1

Ports/Properties

data1

Data input 1.

verbose name
Data1
default value
None
port type
DataPort
value type
Packet (can be None)
data direction
INOUT

data2

Data input 2.

verbose name
Data2
default value
None
port type
DataPort
value type
Packet (can be None)
data direction
INOUT

standardize_packet_length

Make sure that all packets are exactly the same length. This will trim all packets to the shortest packet length.

verbose name
Standardize Packet Length
default value
True
port type
BoolPort
value type
bool (can be None)

shift_timestamps

Run ShiftTimestamps to account for filter lag before alignment. Set to false if you've already run this node for all the incoming packets.

verbose name
Shift Timestamps
default value
True
port type
BoolPort
value type
bool (can be None)

set_breakpoint

Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.

verbose name
Set Breakpoint (Debug Only)
default value
False
port type
BoolPort
value type
bool (can be None)

metadata

User-definable meta-data associated with the node. Usually reserved for technical purposes.

verbose name
Metadata
default value
{}
port type
DictPort
value type
dict (can be None)