LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

vxlapi LIN

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

 

 

0 Kudos
Message 21 of 40
(1,187 Views)

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


- Thomas -
0 Kudos
Message 22 of 40
(1,179 Views)

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 

0 Kudos
Message 23 of 40
(1,140 Views)

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.

Rolf Kalbermatter
My Blog
0 Kudos
Message 24 of 40
(1,125 Views)

 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.


- Thomas -
0 Kudos
Message 25 of 40
(1,104 Views)

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

0 Kudos
Message 26 of 40
(1,077 Views)

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.

Rolf Kalbermatter
My Blog
0 Kudos
Message 27 of 40
(1,058 Views)

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.


- Thomas -
Message 28 of 40
(1,038 Views)

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.

Rolf Kalbermatter
My Blog
0 Kudos
Message 29 of 40
(1,034 Views)

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 

0 Kudos
Message 30 of 40
(999 Views)