To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This code demonstrates how to programmatically check if a Real-Time system is connected to the network or not.
Description
Use the RT Get Target Information VI from the NI_Real-Time Libraries.lvlib to test the connection to a Real-Time system. The VI will return error 56 if the connection times out because the target it is not available within the network. You can check for this error code to determine whether the controller is connected or not. You should clear the error if you want your code to keep running.
Please keep in mind, that the VI used in this example is deprecated since LabVIEW Real-Time 2012. Use the System Configuration API instead.
Requirements
Software
Hardware
Steps to Implement or Execute Code
Additional Information or References
**The code for this example has been edited to meet the new Community Example Style Guidelines. The edited copy is marked with the text ‘NIVerified’. Read here for more information about the new Example Guidelines and Community Platform.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.