Page 1 of 1

How to Set Up DAQ in XCP Using PCAN-XCP API – Need Sample or Guidance

Posted: Sat 19. Jul 2025, 08:34
by avibash
Hello,

I am currently working on implementing the XCP protocol and I'm facing difficulties specifically with setting up the DAQ (Data Acquisition) functionality.

I am using PEAK CAN Analyzer along with the PCAN-XCP API, and I'm looking for guidance on the proper flow to configure and use DAQ lists effectively.

Could anyone kindly help with:

A sample project demonstrating XCP DAQ setup?

A clear step-by-step flow for DAQ configuration using the PEAK PCAN-XCP stack?

Any tips or common pitfalls to avoid during DAQ setup?

I'm especially confused about the sequence of function calls needed (e.g., SetMTA, AllocDAQ, AllocODT, SetDAQPointer, etc.) and how to correctly fill in the ODT entries.

Any help, code examples, or documentation references would be greatly appreciated.

Re: How to Set Up DAQ in XCP Using PCAN-XCP API – Need Sample or Guidance

Posted: Mon 21. Jul 2025, 15:17
by K.Wagner
Hello,

The PCAN-XCP API provides a function for every available XCP command. The best way to familiarize yourself with XCP is to read the corresponding ASAM specification. Each command is described in detail, and examples of positive and negative responses are provided for each of them. The documentation also includes application examples, such as using the DAQ list, and more. Here is an excerpt from the table of contents
_
Table of content - Examples
Table of content - Examples
XCP_Examples_ASAM.png (34.4 KiB) Viewed 6541 times
_
Table of content - DAQ and Stimulation
Table of content - DAQ and Stimulation
XCP_DAQ_ASAM.png (29.1 KiB) Viewed 6541 times
_
Configuring a DAQ list is basic XCP knowledge, which we do not offer as part of our support. We thank you for your understanding,

I hope to have helped you,

Re: How to Set Up DAQ in XCP Using PCAN-XCP API – Need Sample or Guidance

Posted: Tue 22. Jul 2025, 09:51
by avibash
Hello K. Wagner,

Thank you for your response.

I am currently facing some issues with receiving data from a DAQ list.

Is there any sample project available that demonstrates DAQ implementation?

I am specifically looking for a project that consists of DAQ implementation and shows the correct configuration and data handling process.

I would greatly appreciate any example or reference that could help clarify the setup and usage of DAQ in XCP

Re: How to Set Up DAQ in XCP Using PCAN-XCP API – Need Sample or Guidance

Posted: Thu 24. Jul 2025, 11:29
by K.Wagner
Sorry, but we have no examples on this except for the small one delivered with the API.