Creating and handling Time Domains.
More...
Creating and handling Time Domains.
◆ kvTimeDomainAddHandle()
- C#
- static Canlib.kvStatus kvTimeDomainAddHandle(object domain, CanHandle hnd);
- Delphi
- function kvTimeDomainAddHandle(domain: kvTimeDomain; handle: canHandle): kvStatus;
This routine adds an open channel handle to a domain.
- Note
- A time domain is a set of channels with a common time base.
- Parameters
-
[in] | domain | An opaque variable set by kvTimeDomainCreate() that identifies the domain to add a handle to. |
[in] | hnd | A handle to an open channel. |
- Returns
- canOK (zero) if success
-
canERR_xxx (negative) if failure
- See also
- Time Domain
-
kvTimeDomainCreate(), kvTimeDomainRemoveHandle()
◆ kvTimeDomainCreate()
- C#
- static Canlib.kvStatus kvTimeDomainCreate(out object domain);
- Delphi
- function kvTimeDomainCreate(var domain: kvTimeDomain): kvStatus;
This routine creates an empty time domain.
The variable is set by this function and then used in later calls to other functions using a kvTimeDomain.
Time domains created by kvTimeDomainCreate() can be destroyed with a call to kvTimeDomainDelete().
- Note
- A time domain is a set of channels with a common time base.
- Parameters
-
[out] | domain | A pointer to a caller allocated, opaque variable of type kvTimeDomain that holds data to identify a particular time domain. |
- Returns
- canOK (zero) if success
-
canERR_xxx (negative) if failure
- See also
- Time Domain
-
kvTimeDomainDelete()
◆ kvTimeDomainDelete()
- C#
- static Canlib.kvStatus kvTimeDomainDelete(object domain);
- Delphi
- function kvTimeDomainDelete(domain: kvTimeDomain): kvStatus;
This is a cleanup routine that deletes all members of a domain and then deletes the domain itself.
- Note
- A time domain is a set of channels with a common time base.
- Parameters
-
- Returns
- canOK (zero) if success
-
canERR_xxx (negative) if failure
- See also
- Time Domain
-
kvTimeDomainCreate()
◆ kvTimeDomainGetData()
- C#
- static Canlib.kvStatus kvTimeDomainGetData(object domain, Canlib.kvTimeDomainData data);
- Delphi
- function kvTimeDomainGetData(domain: kvTimeDomain; var data: kvTimeDomainData; bufsiz: size_t): kvStatus;
This routine collects some data on a time domain.
- Note
- A time domain is a set of channels with a common time base.
- Parameters
-
- Returns
- canOK (zero) if success
-
canERR_xxx (negative) if failure
- See also
- Time Domain
-
kvTimeDomainCreate()
◆ kvTimeDomainRemoveHandle()
- C#
- static Canlib.kvStatus kvTimeDomainRemoveHandle(object domain, CanHandle hnd);
- Delphi
- function kvTimeDomainRemoveHandle(domain: kvTimeDomain; handle: canHandle): kvStatus;
This routine removes an open channel handle from a domain.
- Note
- A time domain is a set of channels with a common time base.
- Parameters
-
[in] | domain | An opaque variable set by kvTimeDomainCreate() that identifies the domain to remove a handle from. |
[in] | hnd | A handle to an open channel. |
- Returns
- canOK (zero) if success
-
canERR_xxx (negative) if failure
- See also
- kvTimeDomainCreate(), kvTimeDomainAddHandle()
◆ kvTimeDomainResetTime()
- C#
- static Canlib.kvStatus kvTimeDomainResetTime(object domain);
- Delphi
- function kvTimeDomainResetTime(domain: kvTimeDomain): kvStatus;
This routine resets the time on all members of a time domain.
After a call to this routine timestamps from all channels with MagiSync™ running have no offset at all any longer. The same applies for channels that reside on the same physical interface.
- Note
- A time domain is a set of channels with a common time base.
- Parameters
-
[in] | domain | An opaque variable set by kvTimeDomainCreate() that identifies the domain to reset the time on. |
- Returns
- canOK (zero) if success
-
canERR_xxx (negative) if failure
- See also
- Time Domain
-
kvTimeDomainCreate()