We have a PXI-8464 Series 2 (1 port) CAN interface here.
With this single port CAN interface, we'll need to perform CAN write and CAN read for certain channels.
By using Channel API in C and setting "nctPropIntfSelfReception" property to TRUE, it should help us to achive what we want to do here.
Specifies whether to echo successfully transmitted CAN frames as received frames. Each reception occurs just as if the frame were received from another CAN device. This enables you to initialize the same channels for both input and output.
For self reception to operate properly, another CAN node must receive and acknowledge each transmit.
The self reception mode is not available on the Intel 82527 CAN controller used by Series 1 CAN hardware. For Series 1 hardware, this property must be left at its default (False)."
But I have a question here:
When we call "nctInitialize" to get the TaskReference, should we set the Mode to "Input" or "Output" as it is not stated clearly in the manual?
Currently I've set the Mode to "Output" and when I read back from the CAN bus, I receive error 0xBFF62209 which states:
"Your call to Read or Write does not match the initialized input/output mode. For example, you called Read for a task initialized as output. Solution: Consult the Programmer Reference to ensure that the initialized mode matches the read/write."
Appreciate if someone could help to clarify this point.