Tektronix Technical Forums are maintained by community involvement. Feel free to post questions or respond to questions by other members. Should you require a time-sensitive answer, please contact your local Tektronix support center here.

how to trigger over can bus ID with python on mdo4104c?

Post Reply
adegyx
Posts: 2
Joined: March 8th, 2019, 5:17 pm
Country: United States

how to trigger over can bus ID with python on mdo4104c?

Post by adegyx » March 8th, 2019, 5:24 pm

I read programming manual and setup BUS first; then set up trigger over CAN bus identification.
but when execute the code, it did not trigger

can I ask whether there is any example for this?
thanks

adegyx
Posts: 2
Joined: March 8th, 2019, 5:17 pm
Country: United States

Re: how to trigger over can bus ID with python on mdo4104c?

Post by adegyx » March 11th, 2019, 11:00 am

here is my code for bus setting and trigger:

#config CAN BUS
scope.write('BUS:b2:CAN:SOURce CH1')
scope.write('BUS:b2:CAN:bitrate 500000')
scope.write('BUS:b2:CAN:SAMPLEpoint 50')
scope.write('BUS:b2:CAN:PROBe CANL')

#config trigger

scope.write('TRIGger:a:TYPe BUS')
scope.write('TRIGger:a:BUS CAN')
scope.write('TRIGger:a:BUS:SOUrce B2')
#print(scope.query('TRIGger:a:BUS:SOUrce?')
scope.write('TRIGger:MODE NORMal')
scope.write('TRIGger:a:BUS:b2:CAN:CONDition IDentifier')
scope.write('TRIGGER:a:BUS:b2:CAN:IDENTIFIER:MODE STANDARD')
scope.write('TRIGger:a:BUS:b2:CAN:IDentifier:VALUE 1100') #59C
#scope.write('TRIGger:a:CAN:b2:CAN:IDentifier:VALUE 10110011100') #59C
#print(scope.query('TRIGger:a:CAN:b2:CAN:IDentifier:VALUE?)
scope.write('TRIGger:a:STATE ON')

Post Reply

Return to “Programming Support”

Who is online

Users browsing this forum: No registered users and 16 guests