LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Read Car ECU Data Using CompactRIO-9030 and NI-9862 (Need Guidance)

Hi everyone,
I’m currently working on a project where I need to read data from a car’s ECU using a CompactRIO-9030 and an NI-9862 (CAN module). I’m still new to CompactRIO and automotive CAN communication, so I need some guidance to make sure I’m doing things correctly.

My setup:

  • CompactRIO-9030

  • NI-9862 CAN Module

  • Vehicle OBD-II port

My goal is to read engine data (RPM, temperature, etc.) from the ECU.

theqeel_0-1765468532913.png

I have created the block diagram to read ECU data using CompactRIO-9030 and the NI-9862, but it still cannot read any data. I’m not sure whether the issue is from my wiring, CAN configuration, or my LabVIEW block diagram. Can anyone help me identify what I might be doing wrong?

theqeel_1-1765468573222.pngtheqeel_2-1765468592003.png

 

263ccbe9-62ac-4095-b763-2777c52fb768.jpg

When I use the Bus Monitor, it can read the CAN data successfully, but my LabVIEW block diagram still cannot read anything. Does anyone know why the Bus Monitor works but my code does not? Is there a configuration or XNET setting I might be missing?

0 Kudos
Message 1 of 4
(140 Views)

I believe there were some error reported.

You should wire your error out cluster to the stop terminal as well. Use an error indicator or a Simple Error Handler to display the error.

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
-------------------------------------------------------
https://github.com/ZhiYang-Ong
0 Kudos
Message 2 of 4
(76 Views)

I checked again and I actually do have an error. The error comes from the XNET Create Session (Frame Input Single-point).vi. I’m not sure what is causing this. Do you know what could make the XNET Create Session fail?

theqeel_0-1765505047587.png

 

theqeel_1-1765505086090.png

 

0 Kudos
Message 3 of 4
(64 Views)

Google and ni.com are your good friends to search for knowledgebase related to error codes.

Error -1074384864 Occurred When Running XNET Session in LabVIEW

 

Anyway, I don't think setting CAN1 is a valid frame list. Did you configure a DBC file?

I recommend you refer to the shipping examples at Help >> Find Examples... >> Hardware Input and Output >> CAN >> NI-XNET >> Intro to Sessions >> Frame Sessions

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
-------------------------------------------------------
https://github.com/ZhiYang-Ong
0 Kudos
Message 4 of 4
(54 Views)