Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

XNET write function for selected frames in CAN database

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 by 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?

 

Attaching sample VI and .dbc file here.

Note : .dbc file is uploaded as .txt . To view it as .dbc , change the extension to later.(i.e to .dbc)

Thanks in advance.

Download All
0 Kudos
Message 1 of 2
(2,377 Views)

Hi, 

 

Have you found any solution to your problem? I see nobody replied to your query. Fyi, I am not able to open the CAN_db.dbc file in NI XNET database editor? can share the lastest one.

0 Kudos
Message 2 of 2
(1,654 Views)