Error -301009 Reading the Baud Rate Using MC Get Property

Updated Jun 26, 2019

Reported In

Software

  • LabVIEW
  • ECU Measurement and Calibration Toolkit

Driver

  • NI-XNET

Issue Details

I am using the ECU Measurement and Calibration Toolkit with XCP on CAN. I want to read the baud rate of my ECU session using MC Get Property with the property ECU:XCP:CAN:Baud Rate. I am getting the following error:

Error -301009 occurred at MC Get Prop XCP Baud Rate.vi: ECU Measurement and Calibration Toolkit: The size or length that you provided is invalid (too small or large), and the operation could not continue. Solution: Read the function description and verify that you provide a valid size (or length).

Solution

This error happens when you are trying to read a custom baud rate (e.g. 7DA0061F1E) using the 32-bit property ECU:XCP:CAN:Baud Rate, which only supports basic baud rates (e.g. 125000, 250000). Use the 64-bit property ECU:XCP:CAN:Baud Rate 64 instead.


Note: This image is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project. To use a snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW diagram.
 

Additional Information

ECU:XCP:CAN:Baud Rate is a legacy property and can be replaced by ECU:XCP:CAN:Baud Rate 64 in all instances for basic and custom baud rates.