Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

CAN frame sessions vs. signal sessions

Running into some issues when communicating with both CAN1 & CAN2 on a PXI 8513 for a simple loop back test to ensure the HW is working correctly.

 

For the init:

Open a frame session, set termination to on.

Open Signal Out Single-point session for a specific signal.

 

Done for CAN1 & CAN2.

 

On the FP, call a write signal to the Single-point session.

Wait 200ms.

Call the XNET Read (Frame CAN).vi in a loop until the requested response comes back. This uses the frame session opened first.

 

Individually, this code works fine. Combined into one vi, it does not respond to a write/read to CAN2 after a read/write to CAN1 & vice versa.

 

Sorry, can't post any code...

 

Any ideas, suggestions are appreciated.

 

Thanks.

 

the niXntErr.log shows the following error:

Severity: Error

Type: System Service

Component: 1

File: 1

Line: 828

Code (hex): 0xffff34ca

Info (hex): 0x8402c33c

 

0 Kudos
Message 1 of 2
(4,921 Views)

I would recommend using LabVIEW CAN Loopback Test.vi for a quick loopback test of you card.

 

In LabVIEW click HELP>>Find Examples>>Search Tab>> Search for “CAN Loopback Test”

0 Kudos
Message 2 of 2
(4,901 Views)