Project

General

Profile

Actions

Support Request #12847

closed

Hardwaretime Vector Device

Added by hidden over 3 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Customer:
AUDI
Department:
Requester's Priority:
Normal
Support Level:
2nd Level
Resolution:
No Customer Feedback
Product Issue Numbers:
Affected Products:
Platform:
Topic:
DeviceTB::Common
FAQ Links:

Description

Supportanfrage

in den Vector Device Receivern gibt es das Property „add_hardwaretime_info“. Leider finde ich keine Doku dazu. Wie kann ich auf diesen Zeitstempel der Vectordevices zugreifen?

Lösung

das Feature wird unterstützt und beinhaltet die Hardwarezeit, die aus der Vector-Box gelesen wird.

Mit

tTimeStamp tmHardwareTime = -1;
object_ptr<const ISampleInfo> pSampleInfo;
if (IS_OK(pReadSample->GetSampleInfo(pSampleInfo)))
{
   const cVariant oDefHWTime((tTimeStamp)0);
   tmHardwareTime = get_hash_value(*pSampleInfo, ISampleInfo::SAI_DeviceOriginalTime, oDefHWTime).GetInt64();
}

kann diese ausgelesen werden.

Derzeitig gibt es das Feature aber nur für CAN und CANFD.

Actions

Also available in: Atom PDF