Troubleshooting
186
NetLinx Studio (v2.4 or higher)
NetLinx Master Error - Device_ID Error
When calling DEVICE_ID, this run time error can occur:
CIpLibrary::Device_ID - Error 1
This error is cause by passing a parameter that is not of type DEV to the DEVICE_ID keyword.
This usually occurs when converting AXCESS code to Netlinx. To fix this error, try the following:
 Look for all references to the DEVICE_ID function
 Make sure the value passed to the function is of type DEV. If this appears inside a
DEFINE_CALL or DEFINE_FUNCTION and a parameter is passed to the DEVICE_ID
function, make sure that parameter is of type DEV.
Debug Option Disabled For Axcess Code File
Symptom
After compiling and downloading an Axcess code file, the Start Debugging option (in the Debug
menu) is disabled.
Cause
The code was created as an Axcess file, but was compiled as a NetLinx file.
Resolution
1. Select the file in the Project Navigator window (Workspace tab), and right-click to open the
Source Code File Context Menu.
2. Select File Properties to open the File Properties dialog.
3. Change the Compile As selection to Axcess.
4. Click OK to save the change and close the File Properties dialog.
5. Recompile the file (as Axcess) and download.