07-20-2023 11:51 PM
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
07-21-2023 12:58 AM
I've just implemented such a communication and this example was my starting point.
07-21-2023 01:19 AM
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.
07-21-2023 07:44 AM
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.
07-21-2023 10:22 AM
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.
07-21-2023 11:42 AM
@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.
07-21-2023 01:15 PM
I will using this code sir
07-21-2023 03:02 PM
@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.
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
08-10-2023 07:15 AM
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.
08-10-2023 12:04 PM
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.