from canlib import canlib

# Get the total number of available CAN channels
numberChannels = canlib.getNumberOfChannels()

# Print a message with the total number of available CAN channels
print("Found %d channels" % numberChannels)

# Loop through all of the channels and print the channel information
for channel in range(0, numberChannels):
    # Get the channel data
    channelData = canlib.ChannelData(channel)

    # Print to console
    print(channel, channelData.channel_name)

