LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Vector XL Driver - LabVIEW wrappers and LIN

Solved!
Go to solution

I'm using the awesome LabVIEW  wrappers (big thanks to @Troyk for providing/maintaining them) for the Vector driver using Vector hardware.
For CAN everything is fine and works with an old CANCaseXL.
With LIN everything is fine until I try to transmit a LIN request to a slave.

I get the an error that a parameter to the function call seems to be wrong.

I walk through the whole internet and found no solution to my problem. Everything seems to be fine from software point of view. The configuration from the vector hardware manager fits to the parameter in my labVIEW code (otherwise I would get an error message earlier in the processing chain).
It is the same for a newer VN1640.

I have the idea that the error message is misleading and the root cause is something with the wiring?
Should the LabVIEW code runs also without connecting a LIN device?

0 Kudos
Message 1 of 5
(119 Views)
Solution
Accepted by topic author ThoB

According to the XL Driver Library documentation, Error 101= XL_ERR_WRONG_PARAMETER = At least one parameter passed to the
driver was wrong or invalid.

 

You do not need to include the parity with the ID. Just send 12 (is that supposed to be 12 decimal or hex?)


The valid range for LIN IDs is 0 to 63 (with 60 to 63 typically reserved for diagnostic frames).
Including the parity to (dec)12 results in an ID of 76, which is invalid. Thus the 101 WRONG_PARAMETER error.

Troy - CLD "If a hammer is the only tool you have, everything starts to look like a nail." ~ Maslow/Kaplan - Law of the instrument
0 Kudos
Message 2 of 5
(58 Views)

Thanks for this answer.

I was following the example 'Simulate LIN network.vi" where this additional vi to calculate PID is used.

The documentation XL Driver Library documentation) only mentioned the "raw" id as input.

 

If I skipped this vi the error doesn't appear and a message is sent on the wire!

 

 

0 Kudos
Message 3 of 5
(50 Views)

@ThoB wrote:

I was following the example 'Simulate LIN network.vi" where this additional vi to calculate PID is used.


Oops, that is a bug in the example. I just checked the version I have here and there is no LIN parity checksum.vi

 

Sorry about that.

Troy - CLD "If a hammer is the only tool you have, everything starts to look like a nail." ~ Maslow/Kaplan - Law of the instrument
0 Kudos
Message 4 of 5
(35 Views)

No problem, it forces me to dig deeperinto the topic and refresh my mind about LIN.
But you say your 'personal' version differs from the online one?
Vector XL Driver - LabVIEW wrappers - NI Community

0 Kudos
Message 5 of 5
(24 Views)