BUS Monitor File Contains No CAN Data When Using Extended Arbitration IDs Primary Software: Driver Software>>NI-CANPrimary Software Version: 1.1 Primary Software Fixed Version: N/A Secondary Software: N/A
Problem: I am using the controller area network (CAN) BUS Monitor in Measurement & Automation Explorer (MAX) to stream single frames represented by extended hexadecimal arbitration IDs to disk. When I open the recorded file and it does not contain any CAN data, only header information. What can I do to correct this? Solution: As of NI-CAN 2.5.2, the Arbitration ID field is represented in decimal notation and therefore you have to specify the ID with a decimal value even if you are using hexadecimal notation. Also, when using extended arbitration IDs the NI-CAN driver always sets the 30th ID bit. Even if the ID does not use the 30th ID bit you must take this into consideration when specifying individual frames to record using the BUS monitor. For example, if the CAN frame you are interested in recording is represented by extended hex ID "1" the BUS Monitor in MAX logs this ID as "1*". After specifying the 30th ID bit on the original ID the new frame would be represented by "0x20000001". Translating the new HEX ID to an equivalent decimal value gives us "536870913" value. Therefore the correct value for the streaming extended HEX ID 1 using the BUS Monitor would be "536870913". Entering the newly converted decimal value "536870913" in the Arb ID field in the Options dialog box will resolve the empty file issue. Related Links: Drivers and Updates: NI-CAN Attachments:
Report Date: 12/11/2007 Last Updated: 12/14/2007 Document ID: 4GAAJ9QX |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
