T2Segment

SCPI Command :

BUS<*>:CAN:T2Segment
Commands in total: 1
Subgroups: 0
Direct child commands: 1
get(bus=Bus.Default) float[source]
# BUS<*>:CAN:T2Segment
value: float = driver.bus.can.t2Segment.get(bus = repcap.Bus.Default)

Sets the number of time quanta after the sample point (T2Segment) . T2Segment matches Phase_seg2 specified in the CAN standard. Make sure to set also method RsRtx.bus.can.t1Segment.set() for correct definition of the sample point. Alternatively, you can use method RsRtx.bus.can.samplePoint.set() . See also: ‘Advanced settings’ For CAN FD signals, method RsRtx.bus.can.t2Segment.set() defines the synchronization of the arbitration phase, and method RsRtx.bus.can.fdata.t2Segment.set() defines the synchronization of the data phase.

Parameters:

bus – optional repeated capability selector. Default value: Nr1 (settable in the interface ‘Bus’)

Returns:

time_seg_2: Time quanta

set(time_seg_2: float, bus=Bus.Default) None[source]
# BUS<*>:CAN:T2Segment
driver.bus.can.t2Segment.set(time_seg_2 = 1.0, bus = repcap.Bus.Default)

Sets the number of time quanta after the sample point (T2Segment) . T2Segment matches Phase_seg2 specified in the CAN standard. Make sure to set also method RsRtx.bus.can.t1Segment.set() for correct definition of the sample point. Alternatively, you can use method RsRtx.bus.can.samplePoint.set() . See also: ‘Advanced settings’ For CAN FD signals, method RsRtx.bus.can.t2Segment.set() defines the synchronization of the arbitration phase, and method RsRtx.bus.can.fdata.t2Segment.set() defines the synchronization of the data phase.

Parameters:
  • time_seg_2 – Time quanta

  • bus – optional repeated capability selector. Default value: Nr1 (settable in the interface ‘Bus’)