Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

transmit periodic multiple frames in CAN Network using NI-XNET

If I have a CAN BUSS, and want to transmit different frames that correspond to different sensors, how is a network created with NI-XNET. The examples show a way to do it with NI-CAN, but it is not what I am looking for. 

 

Say I have two sensors on a CAN BUSS, how would I have them transmit on the same port in a specified periodic manner using the API, what the user inputs in the front end VI? 

 

If I am working at the frame level, how can I get the signal list for the frame? It comes back empty and throws an error. 

0 Kudos
Message 1 of 4
(7,640 Views)

What does it mean to have the maximum number of sessions exceeded when using the Conversion block?

0 Kudos
Message 2 of 4
(7,638 Views)

Interesting....

 

I cannot get the example figure 15 in http://www.ni.com/white-paper/9717/en to work out.

 

I get the error message: 

 

Error -1074384883 occurred at XNET Create Session (Frame Output Single-point).vi:1

Possible reason(s):

NI-XNET: (Hex 0xBFF6300D) You tried to open the same frame twice. This is not permitted. Solution: open each frame only once.

 

Any ideas?

0 Kudos
Message 3 of 4
(7,628 Views)

Hello estradjm,

 

If I understand what you are doing you have 2 sensors that are sending data onto a port then you are sending that to the bus. You can send the 2 sensors on the same port but it would come in as a single frame, which it seems you are seeing. You would use the API to parse that frame to split between the 2 sensors data. Or you could send 2 frames and have each correspond to a single sensor. 

 

As far as the error when you run the Fig 15 example, can you verify that error is thrown when you have Measurement & Automation Explorer and your other LabVIEW programs closed?

 

Hope this helps.

BeauH
Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(7,621 Views)