Hi johnshi
Make sure that the port name or interface name (CANx) that is configured in the example matches the available ones in your system. Launch the Measurement & Automation Explorer (MAX), expand 'Devices and Interfaces' and check the CAN card's interface name.
Did you change the interface names in any of the two examples, when you tried scenario #1?
By default, the input examples of the Channel API use CAN0 and the output examples use CAN1. So if you have CAN0 and CAN1 in your system and cabled together, the examples should work with the default interface names.
-B2k