Academic Company Events Community Support Solutions Products & Services Contact NI MyNI
1 ratings:
 3 out of 5   

How do I Shut Down My Real-Time DLL in LabWindows/CVI?



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

Problem:
I am running a LabWindows/CVI DLL on a real-time target. Why does the Terminate Execution command or Stop button require a reboot of my machine?

Solution:
Selecting the Terminate Execution command or Stop button from the LabWindows/CVI debugger cause program execution to stop immediately without running any cleanup code in the program. This may leave the real-time target in a bad state, which would then require a reboot.

Instead, you can call the RTIsShuttingDown library function from your program to check for a shut down request. From the LabWindows/CVI debugger, you can select the Simulate RT Shutting Down item from the <Running> menu to cause the RTIsShuttingDown library function to return true. This way your program can call any necessary cleanup code, leaving the real-time target in a good state.

Related Links:
Product Pages: LabWindows/CVI Real-Time Module

Attachments:





Report Date: 04/14/2006
Last Updated: 11/17/2016
Document ID: 3WDB06HB

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