LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

communicating with ECu using FlexRay

So i am trying to setup VIs for communicating to an ecu through flexray by using the vector xl driver..i am using the vector case VN7610.so I am doing things in this order using the corresponding functions.

1) open the driver

2)get channel mask

3)open port

4)setnotification

...

However after i open the port and pass the port handle to my setNotification vi(xlsetNotification).I get an invalid port error.Could someone please give me a guide on how to configure this environment  or if someone has some already functiong labview library for communicating  with flexray could you help me with your VIs?Thank you in advance

0 Kudos
Message 1 of 3
(1,362 Views)

Hello alpony01,

(As I mentioned to you in reply to the PM you sent) I have never used FlexRay nor do I have any hardware with FlexRay channels. The first place I started was with the XL Driver Library - Description.pdf document which is installed with the driver library installation.  Read, understand and follow the instructions for the functions you are using.  Use the corresponding flowchart to guide you in which sequence you may call the functions.

 

According to the flowchart, you must call xlFrSetConfiguration() after xlOpenPort() and before any other commands.

Troy - CLD "If a hammer is the only tool you have, everything starts to look like a nail." ~ Maslow/Kaplan - Law of the instrument
Message 2 of 3
(1,154 Views)

Thank you TroyK.My problem here was that I was not closing the ports and driver after opening them

0 Kudos
Message 3 of 3
(1,140 Views)