Restart My RIO Device Programmatically in LabWindows™/CVI™

Updated Jul 31, 2018

Reported In

Hardware

  • sbRIO-9606

Software

  • System Configuration
  • LabWindows/CVI

Issue Details

I would like to restart my sbRIO programmatically in LabWindows/CVI™ the same as pressing the Restart button in NI MAX. How to do it?
 

Solution

You can programmatically restart your RIO device by using the NI System Configuration function NISysCfgRestart as following: 

status = NISysCfgRestart (session, NISysCfgBoolTrue, NISysCfgBoolFalse, NISysCfgBoolFalse, 180000, IPNew);

 

Additional Information

The NI System Configuration API provides a common programmatic interface for users to find and configure devices and remote systems. The API serves as a programmatic mechanism to do most of the things that you can do from MAX.

You can find LabWindows/CVI™ examples in the NI Example Finder under Hardware Input & Output >> System Configuration.
 

WAS THIS ARTICLE HELPFUL?

Not Helpful