12-14-2018 10:59 AM
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
01-29-2019 06:05 PM
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.
01-30-2019 02:56 AM
Thank you TroyK.My problem here was that I was not closing the ports and driver after opening them