06-03-2015 08:25 AM
06-04-2015 12:27 PM
hamidnaghi1234,
What hardware and software are you using?
Have you taken a look at the LabVIEW XNET Lin examples?
06-04-2015 01:16 PM
It's LIN CancaseXL interface from Vector company.
06-04-2015 06:08 PM
Have a look at the vxlapi.dll wrapper VIs and examples in this NI community document here.
https://decibel.ni.com/content/docs/DOC-30180
06-04-2015 06:40 PM
Sorry, site went down for maintenance before I could add to my response.
There is an example of simulating a LIN network in the document. Starting with that example you can modify it so that the master node responds to its own xlLinSendRequest() thus sending ID and 8 bytes of data.
06-05-2015 11:06 AM
I set one config value for both Slave and Master, I didn't recieve any data on the Monitoring table.
06-08-2015 04:44 PM
I can't speak much into the how the application should respond here as I'm not familiar with the library on the community page. Did you make any modifications to the examples?
06-14-2015 09:41 PM
Is the CANcase LIN channel actually connected to a slave?
Does the Master node have a properly configured pull-up?
Do the CANcase LEDs come on when you transmit? What color? Red or green?
PS. Sorry for slow response. I've been on holiday
06-17-2015 09:09 PM - edited 06-17-2015 09:13 PM
You're in luck. I have a requirement to communicate with LIN slaves with LabVIEW as the LIN master sending data to the LIN slaves.
So I have been able to spend the time to modify the "Simulate LIN network.vi" to demonstrate how to do this.
There is now also a "Simulate LIN network -master transmit.vi" which allows you to transmit data from a Master to Slaves.
Remember that a master node MUST HAVE A PULL-UP!
The VI control defaults will try to configure 2 LIN channels. One as a master, one as a slave responding to 4 IDs. The master will also send out it's data that the slaves can receive.
Link to document containing example VI
By modifying the default control values on the front panel you can change it so that only the Master node is configured and it sends data out it's own channel with no slave connected or configured. (See front panel below for this configuration.)
06-19-2015 03:32 PM
Thank you so much Troy. I really appreciated it.
Hamid
How to transmit a LIN message(ID and 8 bytes data) via Vector interface to the ECU?
I cannot find a function able to send data.