12-18-2014 07:57 AM - edited 12-18-2014 08:06 AM
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
12-19-2014 02:20 PM
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”