Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

reading data from Elm327 USB OBD-II in LabVIEW VISA

Hello All,

 

I have an Elm327 USB OBD-II Car Diagnostic Scanner that I'm using to retrieve data from a car equipped with an OBD-II port. Initially, I successfully tested the device in Hyper Terminal by sending ELM327 commands, confirming its functionality. However, my current challenge lies in integrating this device with LabVIEW to efficiently gather and interpret the data.

Given that the OBD-II scanner is recognized as a COM port, I've been utilizing LabVIEW VISA to send commands and acquire data. Despite these efforts, I haven't been able to obtain the expected output. I'm uncertain about the errors I might be making in the process. Could someone lend their expertise to assist me with this dilemma?

 

attaching screenshot of hyperterminal output and labview output

Download All
0 Kudos
Message 1 of 2
(72 Views)

Hi

You made a small mistake in the simple serial.vi

You should switch the display of the write string to \ mode

AlbertGeven_0-1713359532825.png

like you see at the left side of the string, now a cr and lf are send.

In your solution in normal mode \r\n are sent to the device instead of a cr and lf!

greetings from the Netherlands
0 Kudos
Message 2 of 2
(52 Views)