Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
2 ratings:
 2 out of 5     Rate this Document

Accessing Real-Time OS System Functions with LabWindows/CVI Real-Time Module

Primary Software: LabWindows/CVI Add-ons>>Real-Time Module
Primary Software Version: 8.0
Primary Software Fixed Version: 8.1
Secondary Software: N/A

Problem:
How do I ping and/or reboot my Real-Time device programmatically in CVI with the LabWindows/CVI Real-Time Module?

Solution:
There are several ways to implement this functionality when using the LabWindows/CVI Real-Time Module:
  1. Use the command exit to reboot the RT controller from within an embedded RT application.
  2. In LabVIEW Real-Time, there is an RT Utilities palette that includes functions such as pinging and rebooting an RT target programmatically. However, the functions are not implemented in versions of CVI prior to 8.1. Since these functions make calls to existing functions in the RT OS, you can implement this functionality by creating a DLL in LabVIEW that exports the RT Utilities and calling that DLL from CVI. The attached example shows this implementation.
  3. The LabWindows/CVI 8.1 Real-Time Module now includes functions to remotely reboot and query a real-time controller as part of the CVI runtime engine so you do not need to deploy additional LabVIEW DLLs. You can find these functions under the Utility Library >> Real-Time Support. The LabWindows/CVI 8.1 Real-Time Module requires LabWindows/CVI 8.1.
Note: The command RebootRTSystem may be used from the host PC, but is not supported when running in an embedded application.

Related Links:
KnowledgeBase 3K7BDRL1: Which Functions are Exported by the LabWindows/CVI LabVIEW RT Engine?

Attachments:


reboot_dll.zip - reboot_dll.zip



Report Date: 10/25/2006
Last Updated: 05/30/2008
Document ID: 42OL2UXJ

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit