TS2NS – Timestamp difference in nanoseconds

Block SymbolLicensing group: STANDARD
Qt SVG Document Exported by REXYGEN Studio start end ns freq TS2NS

Function Description
The TS2NS block generates on the output ns the time difference between the time stamps on the start and end inputs (e.g., from the TS blocks). When calculating the difference, all TS and TS2NS blocks must have the same source in the source parameter, otherwise the result is nonsensical. The block provides the frequency of the time stamp on the freq output. The difference between the time stamps is in nanoseconds (ns). For more information on time stamp sources, see the TS block.

This block does not propagate the signal quality. More information can be found in the 1.4 section.

Input

start

Start time stamp   -9.22E+18  9.22E+18

Large (I64)

end

End time stamp   -9.22E+18  9.22E+18

Large (I64)

Parameter

source

Source of the time stamp  1

Word (U16)

1 ....

CORETIMER

2 ....

CORETIMER (precise)

3 ....

RTC (UTC)

4 ....

RTC (localtime)

5 ....

PFC

6 ....

TSC

Output

ns

Interval in nanoseconds

Large (I64)

freq

Frequency of the time stamp

Large (I64)

2024 © REX Controls s.r.o., www.rexygen.com