06-14-2022
04:24 AM
- last edited on
06-14-2022
04:14 PM
by
NI_Community_Su
Im using the vxlapi and the examples for CAN and LIN. Thanks a lot for this great work! Everything works fine except the LIN request.
I found out i can only send headers with ID+Parity in a range of dec0-63 means 6 bits but ID+Parity should have 8 bits (2bits parity, 6bits ID) as soon as i know. If i try to send a 7 or 8 bit ID+Parity in xllinsendrequest i couldnt see any header on the oscilloscope or i got error 6101 (depends which xllinsendrequest.vi im using, from user.lib or from the LIN folder in the rar archive).
Maybe i missunderstand somthing but in the example picture "simulate lin network" there are IDs requested like 0x09 for example which should be 01 00 10 01 (= 8bits) and this IDs doesnt work in my vi. I can only use 0x03, 0x06 0x08... Means all IDs with parity "00".
Im a totally newcomer in field bus and labview but i hope someone can understand my problem and maybe want to help me.
Best regards!
11-26-2024 01:53 PM
…. in the meantime you could solve your issue?
You mentioned you got an error 6101. That is my problem, everything is fine in the init and configuration phase, but if I start to send a send a request … And this is caused by a „wrong“ version of xllinsendrequest.vi …
11-26-2024 04:06 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. The driver does this internally.
The valid range for LIN IDs is 0 to 63 (with 60 to 63 typically reserved for diagnostic frames).
For example, including the parity to (dec)12 results in an ID of 76, which is invalid. You wil get a 101 WRONG_PARAMETER error.