LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Lin test

Hi All

 

I have done Lin test using USB 8476 which is working in master mode last year.

At that time,the product is working as slave.

 

Now I will do another Lin test ,but the product is working in Master mode.

 

My problem is how to control Lin card to respond message.

 

Below is document sent by customer.

 

LIN COMMUNICATION TEST RESULTS  
       
ACTION RESULT FRAME  
       
Make mist.  SCMFtWasherMist_Ev (LIN) = 1.  40 08 E7 22 FF 00 10  
Release.  SCMFtWasherMist_Ev (LIN) = 0. 00 08 E7 22 FF 00 10  
       
Make wash. SCMFtWasher_Rqst = 1. 10 08 E7 22 FF 00 10  
Release.  SCMFtWasher_Rqst = 0. 00 08 E7 22 FF 00 10  

 

 

 

Any help is much appreciated.

 

Albert

0 Kudos
Message 1 of 6
(3,843 Views)

Hi,

The USB-LIN can act as a master and slave as well. Somehow if you get the LDF file for the definition,you may send the message on the LIN. 

It looks like SCMFtWasher_Rqst and SCMFtWasherMist_Ev (LIN) are the messages from the same ID (Frame). What you should know is the Frame ID, and then it is able to read the messages on the first bit and the second bit.

 

Wilbur

0 Kudos
Message 2 of 6
(3,819 Views)

Hi Wilbur

 

I posted this message long time,thanks for your kindly help.

 

Yes,SCMFtWasher_Rqst and SCMFtWasherMist_Ev (LIN) are the messages from the same ID (0).

The LDF,please see the attached.Also,I attached some in below.

---------------------------------------

 

Frames {
 
 SCM_L1_P00 : 0x00, SCM, 7 {
  SCMFtWiperSwitch_Status, 0;
     SCMFtWasher_Rqst, 4;
  SCMLowBeamOn_Stat, 5;
  SCMFtWasherMist_Ev, 6;
  SCMRrWiperSwitch_Status, 8;
  SCMLiftgateAjar_Status, 10;

---------------------------------------

 

I attached a sample Vi working as slave,but USB-Lin can not get anything.

Could you please send me a sample Vi?

 

 

Base on the schematic of DUT,

 

Switch action to trigger Lin communication.

 

For example,short MIST to GND to get frame from USB-LIN with attached Vi.

 

Nothing can get.

 

In fact, I doubt my Vi,please help advice me.

 

 

thank you

 

Alb

 1.JPG

 

 

0 Kudos
Message 3 of 6
(3,806 Views)

Hi,

 

in oder to read messages for the other nodes on LIN-Bus you have to follow the schema from LDF. It determines the intervals between frames and nodes, which is quite different from CAN. That's why you can not get message using such a simple vi.

Sorry that I can not give you any examples because the support for LDF in LabVIEW is really bad, and I have problem with opening you LDF file using LDF Starter Kit. 

I've told NI that the LDF is badly supported, but still there is no sign that NI wants to continue doing things on this topic.

I'll suggest you to ask for support from NI (as I'm not one of them!) to see whether you can make it.

 

Wilbur

0 Kudos
Message 4 of 6
(3,777 Views)

Hi Wilbur

 

NI LDF Toolkit is very too old to open LIN2.0/2.1.

But we can use another software to view its LIN description.

Vector CANoe is very good for viewing them as below.

This software need licence,but we can choose install its demo software when install it.

 

I am not familiar with LDF file,so hopefully can get your help to write a Vi for me after you review the LDF.

 

Thanks

 

 

ldf shortcut.JPG

0 Kudos
Message 5 of 6
(3,775 Views)

Anyone use USB-8476 or PCI 8516 as SLAVE in LIN TEST?

 

Thanks in advance.

 

 

0 Kudos
Message 6 of 6
(3,739 Views)