AMX How to Log Diagnostics and Notification Information in Netlinx
Question:
I am using NetLinx Diagnostics or Studio 2.x to monitor device notifications and/or Internal System Diagnostics over a long period of time. How do I save this information?
Answer:
In the stand alone NetLinx Diagnostics application, the most recent activity from Notifications is recorded in a file called NLDiagsPgmNotfcn.txt, and the most recent activity from Diagnostics is recorded in a file called NLDiagsPgmDiags.txt.
In Studio 2.x, the most recent activity from Notifications is recorded in a file called NSXNotfcnBuffer.txt, and the most recent activity from Diagnostics is recorded in a file called NSXDiagsBuffer.txt.
These files are both stored in the TEMP directory used by Windows. Remember that these are overwritten when the applications are re-launched, so the files must be copied before re-launching either application.
You can determine the location of the TEMP directory as follows:
- From the Window's Start Menu, choose Run.
- Enter 'cmd' (without the quotes).
- In the window that opens, type 'SET TEMP' (without the quotes). The computer will respond with a path specification. This is the directory where the above two .TXT files will be stored. Note that the directory names may be shortened - "C:\Local Settings\Temp" becomes "C:\LocalS~1\Temp" By default, NetLinx Diagnostics allocates 10MB combined storage for these two files. The limit is imposed because an unattended system could run indefinitely, eventually filling the computer's hard drive and bringing the computer to a grinding halt. You may, however, change this size on the Preferences tab of NetLinx Diagnostics.