Solution
It's not possible to build a LabVIEW executable that uses DSC module because the DSC module is not supported in LabVIEW 64-bit.
However, as an alternative, you can use the Modbus library provided by SAPHIR discussed in MODBUS Library for LabVIEW.
It provides Modbus communication from any standard Ethernet or serial port. Using the Modbus library, Programmable Automation Controllers (PACs) can communicate with gateway devices that provide connectivity to a wide variety of industrial networks, such as PROFIBUS, EthernetIP, and DeviceNet.
To use this library in LabVIEW, please follow these steps:
- Close LabVIEW.
- If you have NI-MODBUS Library version 1.1 already installed, first uninstall it.
- This can be done by going to Control Panel>>Add Remove Programs>>National Instruments Software and select NI Modbus 1.1 from the list.
- Copy NI Modbus.llb from ##\vi.lib to the LabVIEW_ROOT\vi.lib directory where ## is your LabVIEW version (example 86 for 8.6) and is the root folder where you installed LabVIEW.
- Note: On Windows systems, the default installation directories for LabVIEW are C:\Program Files (x86) for 32-bit, and C:\Program Files for 64-bit. Ensure that the Modbus files are placed in the correct directory for your required bitness.
- Copy lvmodbus.chm and lvmodbus.txt from ##\help to the LabVIEW_ROOT\help directory.
- Copy nimodbus.mnu from ##\user.lib to the LabVIEW_ROOT\user.lib directory.
- Restart LabVIEW. You should see the NI Modbus palette in the User Libraries palette.
- To uninstall the library, remove all the files copied from the previous steps.