03-08-2023 06:56 AM - edited 03-08-2023 06:57 AM
i already did that to use xlLinsetchannelparams function to set baudrate and pass that function to xlbusparams (structure function). and in xlbusparams function structure of all protocol given (CAN, CANFD. flexray, MOST etc) LIN is not mentioned.
so i am confused to use xlbusparams (common function) or not .
Did you have any suggestion ?
Thanks in advance
03-08-2023 07:27 AM
No you do not need "XLbusParams". Besides this is not a function but a struct. And as I see in the documentation that struct is embedded in "XLchannelConfig", which itself is embedded in "XLdriverConfig". So this is a really big, nested struct, which you get in response to function call "xlGetDriverConfig". This is read only, you cannot set any parameter inside that struct.
Again, all you need to set LIN baudrate is a call to xlLinSetChannelParams().
03-15-2023 02:08 AM
data = [1,2,3,4,5]
I am trying send data into "xllinsetslave" function, but its shows typeerror for 4th argument.
please give me suggestion how can i match the data type
03-15-2023 03:18 AM - edited 03-15-2023 03:19 AM
That description is very thin! What are you trying to do? What VI do you use (your own not the CAN driver VI)? How do you do it?
These “detail” are absolutely needed to give any meaningful feedback.
And while an image are generally more worth than 1000 words of prose, in the case of LabVIEW the actual VI you wrote is more worth than any number of images. And if you go to the “trouble” of attaching your VI to your post it is a small additional effort to do a save for previous and save it for 2018 or 2019. Many people here have not upgraded to the latest and greatest version and could not open your VI if saved in 2022 or 2023 format and that limits the number of helpful responses you can get significantly.
03-15-2023 04:58 AM
jagsrathod1234 what language do you use? My guess is, it is not LabVIEW at all. This is not a support thread for the Vector vxlapi.
Besides this, you give way to less information. If you want help, please try to describe your situation in more detail.
03-17-2023 03:52 AM
I am trying to set checksum by using "xlLinsetchecksum" function. but the 3rd parameter of that function "unsigned char checksum[60] " which is i am not able to set mode wheather it is classic or enhanced and how to calculate the checksum???
please give me suggestion
Thanks in advance
03-17-2023 09:03 AM
That declaration looks, smells and quacks like a simply C string. As such it needs to be passed as such a string. In the LabVIEW Call Library Node this is very simple. Configure the parameter as String, passed as C String pointer.
Now you only need to find the header file and find out what the actual string values are for the XL_LIN_CHECKSUM_CLASSIC, XL_LIN_CHECKSUM_ENHANCED and XL_LIN_CHECKSUM_UNDEFINED defines.
03-20-2023 05:08 AM
There is already a ready to use LV wrapper API around that Vector C API. But jagsrathod1234 does not like to give answers to important questions and I doubt that he is using LabVIEW at all. So I do no longer want to try my best an give support for someone who randomly asks vague questions and to not respond to important counter questions.
03-20-2023 05:12 AM
I agree with your assessment. His communication style is to shoot out vague questions with little to now background and then ignore any commentary to shoot his next vague question.
03-30-2023 02:52 AM - edited 03-30-2023 03:14 AM
Is it possible to read the unique code of vector hardware interface device?
is serial number of vector driver device is unique code of each device
Thanks in Advance