Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python-can help
#2
(Aug-10-2021, 11:36 AM)korenron Wrote: what do I need to do\change so I can see&save the data as shown in the example ?
Something like this.
file_name = 'data.txt'
with open(file_name, 'w') as f:
    pid = message.arbitration_id
    data = message.data
    f.write(f'{pid}{data}\n')
Reply


Messages In This Thread
python-can help - by korenron - Aug-10-2021, 11:36 AM
RE: python-can help - by snippsat - Aug-10-2021, 01:05 PM
RE: python-can help - by buran - Aug-10-2021, 01:18 PM
RE: python-can help - by korenron - Aug-11-2021, 05:49 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020