LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to readLIN data

Hi,I'm new using LIN protocol and I need some help.

 

I'm tying to implement a simple question/answer VI.

For example I want to send the following message with Master header 0x3C and data 0x4B 0x03 0x22 0x16 0x53 0x00 0x00 0x00 and read the response from slave with header 0x3D and recieve some data.But the commands has been transmitted but i did not get any data.

 

I'm using USB-8506 with LabView2020, I tryed to use the find examples VI's but i dont't find any example that fit to my problem.

 

Could someone help me in this issue or give me information to solve it  ?

 

thanks

0 Kudos
Message 1 of 10
(1,383 Views)

I've just implemented such a communication and this example was my starting point.

 

LIN Diagnostic.png

0 Kudos
Message 2 of 10
(1,362 Views)

Sir Actually i will work on that also But i am not getting any response from the motor. I am Transmitting a header called 3C is the master in my Application but still i am not recieving any pay load data.

 

Screenshot 2023-07-20 114912.png

0 Kudos
Message 3 of 10
(1,353 Views)

ID 0x3C and 0x3D are reserved for diagnostic. You must use the diagnostic examples shared by JB, as it contains the crucial LIN Diagnotic Schedule Change VI.

ZYOng_0-1689943432285.png

 

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 4 of 10
(1,328 Views)

Sir What exactly we are trying we have already write data into the motor using PLIN view pro software using the following header ID 0x3C is the Master command and 0x3D is the slave ID and 0x14is the wake up command for ECU. If we are transmitting 0x3C along with this frame(4B03221653000000) we will receive the data present in the motor. Now I am trying to read  the data present in the motor using NI X net. I am using NI

USB 8506 module if i am transmitting 0x3C command to read the data from the motor i am getting the  data like (00 00 00 00 00 00 00 00 ). I have to read the data present in the motor is it possible to read using NI X net. 

0 Kudos
Message 5 of 10
(1,317 Views)

@manibabu.gorantla wrote:

Sir What exactly we are trying we have already write data into the motor using PLIN view pro software using the following header ID 0x3C is the Master command and 0x3D is the slave ID and 0x14is the wake up command for ECU. If we are transmitting 0x3C along with this frame(4B03221653000000) we will receive the data present in the motor. Now I am trying to read  the data present in the motor using NI X net. I am using NI

USB 8506 module if i am transmitting 0x3C command to read the data from the motor i am getting the  data like (00 00 00 00 00 00 00 00 ). I have to read the data present in the motor is it possible to read using NI X net. 


Please post your code. Otherwise, we cannot know what is the issue.

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 6 of 10
(1,304 Views)

I will using this code sir 

Screenshot 2023-07-21 092847.pngScreenshot 2023-07-21 234057.pngScreenshot 2023-07-21 234241.png

0 Kudos
Message 7 of 10
(1,296 Views)

@ZYOng wrote:

ID 0x3C and 0x3D are reserved for diagnostic. You must use the diagnostic examples shared by JB, as it contains the crucial LIN Diagnotic Schedule Change VI.

ZYOng_0-1689943432285.png

 


I have mentioned that in my previous post. You must use LIN Diagnostic Schedule Change VI to change to Master Request and Slave Response mode

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 8 of 10
(1,285 Views)

Sir i have read the subscriber data without transmitting any master commands.Is it possible to read the data.In PLIN View Pro without transmitting any master frames i am getting data. In labview also it is possible to read the data using LIN usb 8506 module without transmitting any master commands.lin2.pnglin1.png

0 Kudos
Message 9 of 10
(1,134 Views)

What you are trying to do is to simulate a slave node using a USB-8506 and receive the frames sent by a master node as a subscriber. A subscriber subscribes to data sent from master nodes and reacts to it.

You can use any examples with input sessions. See Help >> Find Examples... >> Hardware Input and Output >> LIN >> NI-XNET >> Intro to Sessions 

Select the frame or signal that you would like to receive or subscribe to, and leave LIN Master? option unchecked. You don't have to modify the XNET LIN Schedule as a slave node. Then you are good to run the VI.

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 10 of 10
(1,121 Views)