ni / niveristand-synchronization-custom-device

Enables timing and synchronization using NI hardware in VeriStand
MIT License
2 stars 6 forks source link

Where is the description of system status values? #42

Open Kreative24hk opened 4 years ago

Kreative24hk commented 4 years ago

Where is the description of system status values?

Do I know whether the system synchronization is completed or not by using those system status values?

rtzoeller commented 4 years ago

The two channels that will provide the information you are looking for are Time reference present and Offset from time reference.

Offset from time reference contains the offset from the corresponding time reference in seconds, assuming the time reference exists. Time reference present tells you if the time reference exists; if Time reference present is zero, then Offset from time reference is meaningless.

If your controller is running PharLap, you will also want to confirm that System time synced to board clock is non-zero. This indicates that the controller time is correctly synchronized with the module time. This happens automatically on NI Linux RT, but requires a reboot after the first deployment on PharLap due to driver limitations (see #10).