11-23-2024 04:09 AM
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?
Solved! Go to Solution.
11-26-2024 04:02 PM - edited 11-26-2024 04:07 PM
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.
11-27-2024 12:59 AM
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!
11-27-2024 03:32 PM
@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.
11-28-2024 12:00 AM
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