Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

USB-8476S

Solved!
Go to solution

  Hello all

     I use the usb-8476s, I want to use it control my slave device.I use LIN Master Send Full Frame and Receive.vi 

     now,I meet some problems,if i setting IsRemote 17 ,I can receive full Frame,but the data is ignore ,can not control my device.if i set 18 that i receive error.the error code is 40 10 and 20 11.i don't know what i should do.who can help me.

   thanks!   

0 Kudos
Message 1 of 5
(4,858 Views)

Before I can offer much assistance we will need to elaborate on some details in your post. Currently I assume that the only modification you are making to the LIN Master Send Full Frame and Receive.vi is to change the outgoing isRemote value:

IsRemote.PNG

The manual shows that a value of 17 is undefined on page 10-87:
http://www.ni.com/pdf/manuals/370289p.pdf

 

I would like to better interpret your error code to help guide you so some clarification is needed. Are those the values of an error frame or an actual error code? Are they in hexidecimal? Can you attach a screenshot with more detail?

Jeff L
National Instruments
0 Kudos
Message 2 of 5
(4,834 Views)
Solution
Accepted by topic author qad2092012

Hi Jefel

  Thanks for your replay,I set Arbitration 31 when i set  Isremote 18 ,I receive LIN bus error ,20 11 01 04 00 00 34 when i set  I sremote 17,i can receive LIN full frame,i don't select Self Reception.,i don't know set DATA.

  can you gave me some help.

thanks.

 

0 Kudos
Message 3 of 5
(4,821 Views)

Dear Jefel

         I'm so sorry,i can't slove this prloblem.It's click error..In the LIN master send full frame and receive.vi ,i add two ncSetAttr.vi,one is the LIN Checksum another is lin sleep ,set lin sleep is 0.

0 Kudos
Message 4 of 5
(4,813 Views)

If you set IsRemote 17, then only header frame is sent with no data. If you set IsRemote 18 and select Self Reception, then full frame is sent. But if you do not select Self Reception, no data will be received.

0 Kudos
Message 5 of 5
(4,758 Views)