If you intend to monitor the time of the cRIO, it is recommended to use a Timed Loop rather than a standard While Loop. The Timed Loop will allow you to use the cRIO's clock to control the loop iterations/update rate.The code below simply displays the current time on the cRIO. The Timed Loop is using the 1MHz clock and each loop iteration executes every 1 second.It is important to ensure that the loop is not iterating too fast, to reduce the CPU load and therefore, omit as much network latency as possible.Note: This image is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project. To use a snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW diagram.You can configure the update rate and clock of the Timed Loop by double-clicking the loop structure. This will open the following dialog box:Here, you can select the clock Source Type to specify a clock rate. To define the update rate, change the Period attribute.
Collaborate with other users in our discussion forums
A valid service agreement may be required, and support options vary by country.