04-07-2021 04:48 AM
Hello,
During one of my projects, I had to develop a CAN driver to communicate with a product to test. The CAN card then used on the bench's computer was a PCI CAN Series 2 card, which is now obsolete. The development of this driver was done using the NI-CAN API, and the correct functioning of this driver was validated.
Duplications of this same bench are now in progress and we are now using PCI NI-8511 cards (XNET). So I have taken the steps to migrate my CAN driver to XNET but an error occurs when using the ncGetTimer.vi function:
Error -1074388732 occurred at NI-CAN Get Timer
(ncGetTimer.vi)
Possible reason(s):
NI-CAN: (Hex 0xBFF62104) The property ID, attribute ID, or operation code that you provided is invalid. Solution: Read the function description and verify that you provide a valid ID.
So I wonder: is this function compatible with the XNET library?
I searched in NI-CAN and NI-XNET documentations but I did not find any information indicating that this function is compatible or not with the XNET library.
Did someone have this same issue when migrating a working CAN application to XNET library?
I use this function when there is no data read in a CAN Object, to get the current timestamp and to check if the CAN communication is still responding.
Thanks in advance,
07-06-2021 05:59 AM