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

A free API for the communication with control units based on the Universal Measurement and Calibration Protocol (XCP) by ASAM for Windows®
Post Reply
avibash
Posts: 2
Joined: Thu 17. Jul 2025, 14:51

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

Post by avibash » Sat 19. Jul 2025, 08:34

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.

K.Wagner
Software Development
Software Development
Posts: 1082
Joined: Wed 22. Sep 2010, 13:36

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

Post by K.Wagner » Mon 21. Jul 2025, 15:17

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 5627 times
_
Table of content - DAQ and Stimulation
Table of content - DAQ and Stimulation
XCP_DAQ_ASAM.png (29.1 KiB) Viewed 5627 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,
Best regards,
Keneth

avibash
Posts: 2
Joined: Thu 17. Jul 2025, 14:51

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

Post by avibash » Tue 22. Jul 2025, 09:51

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

K.Wagner
Software Development
Software Development
Posts: 1082
Joined: Wed 22. Sep 2010, 13:36

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

Post by K.Wagner » Thu 24. Jul 2025, 11:29

Sorry, but we have no examples on this except for the small one delivered with the API.
Best regards,
Keneth

Post Reply