LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

from CANoe to LabVIEW

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?

 

 

0 Kudos
Message 1 of 8
(14,363 Views)

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.

0 Kudos
Message 2 of 8
(14,303 Views)

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

Peter L.
National Instruments Hungary
Applications Engineer
0 Kudos
Message 3 of 8
(14,273 Views)

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! 🙂

Message 4 of 8
(14,230 Views)

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

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 5 of 8
(14,029 Views)

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?

0 Kudos
Message 6 of 8
(10,539 Views)

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

 

 

0 Kudos
Message 7 of 8
(10,525 Views)

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.

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 8 of 8
(10,515 Views)