08-25-2019 11:38 AM
Hi All
I am newbie in CAN XNET programming and would like to have your inputs on the following question.
I have created a can database in XNET database editor and has exported it to .dbc file.
This database has near about 100-150 can frames data defined in it (along with the signal details).
In code, I have used XNETcreate session.vi (mode : Frame output single point) to create sessions for all the frames which are present in database.
Based on request from Master CAN node , I need to send data from specific CAN frames over the CAN network.
I am using XNET write function for it.
Issue I am facing is , "session in" input for XNET write is nothing but "session out" output of create sessions.vi.
Whenever I am calling XNET write function , the data is written to all the frames which are defined in database.
Instead of that , i need to transmit data only to the selected CAN frames.
How can I achieve this functionality? where can I define which frames from the database should be transmitted on the CAN network?
Thanks in advance.
But i need to write data over the
08-26-2019 08:41 AM
Hi,
You may have more success posting this in the Automotive and Embedded Networks forum here: https://forums.ni.com/t5/Automotive-and-Embedded-Networks/bd-p/30
Also, when you post this again over there, you may want to post your code so that they can see what exactly you're doing in your code.
08-26-2019 01:28 PM
Adding the code and the dbc file here for reference.
dbc file extension is changed to .txt since I was not able to upload it.
For viewing it as .dbc , change the extension to .dbc
Any help will be appreciated!!
12-16-2022 02:39 AM
Hi,
I`m on the same point like you 3 years ago. Did you have any solutions for your problem?
Ciao
12-16-2022 09:57 AM - edited 12-16-2022 09:57 AM
Well if you are confused about session types in XNet, I suggest you look at Part 5, and Part 6 of my CAN blog which covers some of this discussion. If you are unfamiliar with CAN in general, like OP was you can look at the rest of the parts too. In general the different XNet session types allow for some really flexible development, and for off loading some work to the hardware, so your CPU doesn't have to deal with it.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
12-16-2022 01:25 PM
Thanks a lot...thats my first task for monday...ok, after breakfast.
I use ECU`s very seldom, but I must implement them scalable in my main-tool. So a little bit more of unterstanding should be good.