FTDI does not communicate after building executable
We have purchased a license for FTDI driver for I2C SPI and GPIO from NI.
While working with a code we are successful in communicating with the FT4222H chip. But after building the executable, the EXE is not communicating with the chip.
There are problems when trying to build an application. The Vi is running well, but the executable fails to connect to the FTDI module.
There are some dependency problems in the project. What is wrong? We’re using LabVIEW 2020, 32-bit.
If you get some dependency problems while building the application, it’s likely that files are moved to other locations from the regular directory where the library looks for the files. Try following steps to fix this issue,
General Troubleshooting guidelines for DLL missing for executable:
Step 1. Ensure the DLLs are installed in the program file as below screenshot. Typical DLL path is as below (ensure change 20xx to correct LabVIEW version)
C:\Program Files (x86)\National Instruments\LabVIEW 20xx\vi.lib\AJ\FTDI Driver for I2C SPI GPIO\DLLs
Step 2. Create a virtual folder in your project and add those files to t virtual folder in the project as below. New Folder is a virtual folder in this example.
Step 3. Then add those DLL files from the virtual folder to the Always Included section in your build executable specifications as below
Step 4. Try building with this specification.
All above steps are tried, still the executable is not working. What can I do?
Ensure all DLL exists inside data folder parallel to the executable location
Ajay is a professional developer and architect of NI-LabVIEW applications with extreme interest in getting the hardware connected to LabVIEW and automating the stuff. Recently he is also putting his hands in NI-TestStand to get very dirty on it. He is also a good mentor for the various interns in his career. He is ready to help the people in techie roles.