02-11-2014 04:01 PM
I have to send number from CANoe do LabVIEW by UDP (using the fdx protocol) and send back this number from LabVIEW to CANoe. It's my first time with CANoe and I don't know how to do this, how to make whole UDP frame. Is there anybody who can help me?
02-12-2014 09:06 AM
CANoe (or any Vector product) is not very open. Neither is their hardware. If you buy their hardware and use their software the stuff works great. Trying to use LabVIEW and CANoe, or even LabVIEW and Vector hardware is very difficult, and you will likely not get much support from Vector.
I recommend making a decision to stick with Vector, or to stick with NI don't try mixing. You can because Vector does have some driver support, and some Vector products have ActiveX support so you can call into them from other languages. But this interface is not easy to use and last I heard wasn't well documented.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
02-13-2014 04:18 AM
Dear poryta,
First of all, let me welcome you to the NI Forums,
I have searched our sources regarding your question and found some potentially useful information. Please read through these documents and let us know of the results!
Vectors' own Driver for CANoe x LabVIEW + Documentation:
http://vector.com/vi_labview_driver_en.html
Community (NI) Example:
https://decibel.ni.com/content/docs/DOC-16844
And I have included a Vector Document on How To Set up such a communication.
Good luck with your project,
Best regards,
Peter
02-19-2014 08:21 AM
Hello all,
the LabVIEW driver for Vercor Hardware doesn't have anything to do with FDX!
FDX is a dada communication protocol between LabVIEW and CANoe, based on UDP. The Protocol per se is very simple and consists of a Protocol header and different data packages. Some packages have special function, like starting or stopping a measurement, others are to configure CANoe and the mostly used is to exchange data groups.
Data groups are predefined sets of CANoe system variables. How the data groups are assembled must be defined in an XML-file that is read in into CANoe. Read the CANoe help and the examples. It's documented well enough.
To use the data groups in LabVIEW, you must rebuild the same groups as, e.g. a cluster and break the data down accoding to the rules specified by FDX. Take care serializing the data, because FDX uses network order, meaning LITTLE ENDIAN!
One more thing:
Transferring data TO CANoe is no problem. When the measurement is running, just send the according data package.
Transferring data FROM CANoe is a bit more a challange: Either you request the according data group via FDX and get it sent, or you allow CANoe (which is always the slave) to send you data groups actively and build an event handler in CAPL (the CANoe scripting language) to send the data group whenever you think, it should be sent.
FDX is a great thing and IMO the simplest way of data exchange between CANoe and LabVIEW.
Good Luck! 🙂
06-23-2014 06:10 PM
Bypass CANoe and use labVIEW to talk directly to the Vector XL Driver Library dll.
The vxlapi.dll API is well documented and fairly easy to use.
See here for wrappers and examples: Vector XL Driver - LabVIEW wrappers
08-30-2018 07:01 AM
Hi there,
I understand the post is too old. But the links in post don't work now, will you please update them? or please help me drag to those pages?
08-30-2018 10:04 AM - edited 08-30-2018 10:09 AM
All but one work for me, the one to the LabVIEW driver.
Search the vector site for "LabVIEW driver", and this application note turns up:
https://vector.com/portal/datei_mediendatenbank.php?system_id=1737958&root=223
EDIT: The document (https://decibel.ni.com/content/docs/DOC-16844) is also missing. Don't think it's online anymore.
Google still provides some extra interesting documents:
https://vector.com/portal/medien/cmc/speeches/TestingExpo2012_CANoe_Labview_Stein.pdf
08-30-2018 05:10 PM - edited 08-30-2018 05:22 PM
EDIT: The document (https://decibel.ni.com/content/docs/DOC-16844) is also missing. Don't think it's online anymore.
NI changed the "Example code" guidelines a couple of years back and moved everything that was in there to a "Drafts" section. I never got motivated to jump through the hoops to get it moved back to the main sample programs section.
I get redirected from https://decibel.ni.com/content/docs/DOC-16844 to https://forums.ni.com/t5/Example-Program-Drafts/Vector-XL-Driver-LabVIEW-wrappers/ta-p/3524976
Edit: Sorry, that is a different document. I don't know what DOC-16844 was.
07-23-2024 03:06 PM
6 Years Later...
Hey, would this be a good place to start when trying to implement Diagnostics? UDS via DoIP? Or do you believe digging through these VIs would not be a good use of my time for what I'm trying to accomplish.
07-23-2024 04:13 PM
I believe a good resource for understanding ISO 15765, and UDS is my blog post. CAN Blog Part 8. It could use some updated examples, and could have the drivers rewritten into class abstraction. But as far as understanding the UDS messages I think it is very useful. There is a core that does all the state machine stuff for sending and receiving long messages.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord