SamplePoint

SCPI Command :

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

Sets the position of the sample point within the bit in percent of the nominal bit time. Alternatively, you can set the sample point with method RsRtx.bus.can.t1Segment.set() and method RsRtx.bus.can.t2Segment.set() . For CAN FD signals, method RsRtx.bus.can.samplePoint.set() defines the synchronization of the arbitration phase, and method RsRtx.bus.can.fdata.samplePoint.set() defines the synchronization of the data phase.

Parameters:

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

Returns:

sample_point: 12 to 96 if number of segments is 24. The range reduces if the signal has fewer segments.

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

Sets the position of the sample point within the bit in percent of the nominal bit time. Alternatively, you can set the sample point with method RsRtx.bus.can.t1Segment.set() and method RsRtx.bus.can.t2Segment.set() . For CAN FD signals, method RsRtx.bus.can.samplePoint.set() defines the synchronization of the arbitration phase, and method RsRtx.bus.can.fdata.samplePoint.set() defines the synchronization of the data phase.

Parameters:
  • sample_point – 12 to 96 if number of segments is 24. The range reduces if the signal has fewer segments.

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