LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LIN protocol example

Can anybody explain me this misunderstand about LIN protocol (LIN 1.3)

 

My entry Frame is:

Sync break field :         0x00

Sync field out:              0x55

Identifier:                     0x50

Data 1:                         0x00

Data 2:                         0x32

Data 3:                         0x00

Data 4:                         0x00

Checksum:                  0x00

 

My request frame is:

Sync break field :         0x00

Sync field out:              0x55

Identifier:                     0x1F

 

My answer frame must be:

Sync break field :         0x00

Sync field out:              0x55

Identifier:                     0x50

Data 1:                         0x??

Data 2:                         0x??

Data 3:                         0x??

Data 4:                         0x??

Checksum:                  0x00

 

What is wrong with my program in LV, please find attached picture.

0 Kudos
Message 1 of 12
(11,982 Views)

Hi,

How i know LIN protocol in LabVIEW works with DB. and You must at start do initialization fo all IDs which You will use, first idea that can help You is this. check are You initialize both IDs or no?

Please in feature if it is possible shear code for have more detailed information.

With Best Regards

 

 

Certified LabVIEW Architect (CLA)
0 Kudos
Message 2 of 12
(11,957 Views)

What is mean DB?

 

How can initialize both ID?

 

Please find attached LV code, along with code I'm using NI USB-8476.

 

Best regards,

0 Kudos
Message 3 of 12
(11,939 Views)

DB Database

I use LIN interface with NI-XNET drivers, and how I am reading Your device documentation, there also uses NI-XNET.

Look at NI_XNET help and examples. NI-XNET use DB for transfer and receive data.

I finde this 2 links, which can help You in this situation, if I will find other information I will write You.

https://www.ni.com/en/shop/seamlessly-connect-to-third-party-devices-and-supervisory-system/introduc...

https://www.ni.com/en/shop/seamlessly-connect-to-third-party-devices-and-supervisory-system/ni-xnet-...

With Bets Regards

Certified LabVIEW Architect (CLA)
0 Kudos
Message 4 of 12
(11,921 Views)

Also this link:

https://www.ni.com/docs/en-US/bundle/veristand/page/xnet-overview.html

With Best Regards

 

Certified LabVIEW Architect (CLA)
0 Kudos
Message 5 of 12
(11,917 Views)

Try this, I write this for me, sorry can not give You source....

You must at first install NI-XNET drivers.

With Best Regards

Certified LabVIEW Architect (CLA)
0 Kudos
Message 6 of 12
(11,904 Views)

When I run your sub VI from project is appears error below, I think that you can resolve it.

 

LV Version error.png

0 Kudos
Message 7 of 12
(11,868 Views)

You must run in LV2013, I have that version, and build this with LV2013.

or after 1 days I can give You with LV2014 version.

With Bets Regards

Certified LabVIEW Architect (CLA)
0 Kudos
Message 8 of 12
(11,842 Views)

Hrachya, I am afraid that this is not solution for my LIN communication problem, because I am using NI USB-8476 adapter.

0 Kudos
Message 9 of 12
(11,824 Views)

Do You try this? or You think?

Because this is from worked project, and it works corect.

With Best Regards

Certified LabVIEW Architect (CLA)
0 Kudos
Message 10 of 12
(11,814 Views)