UDS_Initialize_2013 Return code 0x80000200
UDS_Initialize_2013 Return code 0x80000200
I am attempting to incorporate the PCAN_UDS API into LabVIEW. While I am able to initialize the PCAN-USB hardware we are most likely to use for the foreseeable future, I'd like to incorporate error handling for any future applications. When I try to initialize other hardware (PCI, LAN, PCC, other USB channels I'm not using) I get cantp_status = 0x1 (PCANTP_STATUS_NOT_INITIALIZED); what I would expect given I don't have that hardware. However, when I attempt to initialize an ISA or DNG bus I get return code 0x80000200 which I do not see documented as a valid cantp_status value. For my application I may just be able to ignore this as I do not see using these devices but I am wondering why this return value is not documented and if I am missing something fundamental?
Re: UDS_Initialize_2013 Return code 0x80000200
Hello,
This is because you have the driver for those devices installed on your system. Note that the PEAK Drivers setup installs all Plug&Play drivers. So, for the API, you just don't have a hardware connected, because the driver for it is active.
ISA and DNG are non-Plug&Play devices, and for those there are also no driver installed (there is an extra setup for them, called Legacy Drivers). For this reason you get an error from the network layer, the flag 0x80000000 (PCAN-Basic), stating that the driver for it is not loaded (0x200).
It is documented. Also note that this type is a flag and can have several values combined. You can see this in the docuemntation of uds_status: Added to this, you can see following in all header files (this is from the C++ header file): I hope this is more clear now.
Best regards,
Keneth
Keneth