LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

vxlapi xllinsendrequest

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).

Lin-PID.png

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".

109130_SimulateLINnetwork.png

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!

0 Kudos
Message 1 of 3
(632 Views)

….  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 …

0 Kudos
Message 2 of 3
(20 Views)

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.

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 3 of 3
(13 Views)