Solution
This issue can be caused by older XML files that interfere when importing a new file. To resolve this follow the steps below:
Host
- Navigate to the folder that contains the imported files. The XML files can be located in one of these folders:
- Delete unused XML files. If possible, delete all the XML files to ensure a clean import.
- Restart LabVIEW.
Real-Time Target
- The XML files are also stored on the Real-Time Target, you can use any sFTP client to navigate to these folders:
- /ni-rt/system/IndComECAT/DD/ for VxWorks and Phar Lap RT Targets
- /var/local/natinst/IndComECAT/DD/ for NI Linux RT Targets
- Delete unused XML files. If possible, delete all the XML files to ensure a clean import.
- Restart the target and re-import the XML files.
XML Format
This issue can also be caused by unnecessary space characters being present before and after the Input/Output element names within the third-party XML file. This is the case even when you follow the proper procedure for adding a third-party slave to your project.
Follow the steps below to remove the unnecessary space characters from the XML Device Profile:
- Open the XML file that contains your EtherCAT Device Profile in Notepad.
- Select Ctrl+F on your keyboard to open the Notepad Find window.
- Type
<\Name>
in the Find what: field followed by selecting Find Next. - Continue selecting Find Next whilst monitoring the element text between each
<Name>
start-tag and <\Name>
end-tag. - Remove any space characters at the beginning or the end of the element text, for example replace
<Name> Digital Inputs </Name>
with <Name>Digital Inputs</Name>
. - When the end of the XML file is reached save the changes to the file by selecting File»Save in Notepad.
- Import the updated XML file into your LabVIEW Project.
- You will now be able to access the Input and Output Parameters in LabVIEW.