09-05-2018 05:10 AM
Hi,
I have module FT4232H-56Q and on begin i try run UART. I use D2XX drivers and function from ftd2xx.dll. The problem is that when I try get "Description" of device by FT_GetDeviceInfoList(), FT_GetDeviceInfoDetail() or FT_ListDevices() LabVIEW just turn off. Before calling the above functions I call a function FT_CreateDeviceInfoList. Once in a while I get error communicate.
I attach .dll, .sli, .gtype files, gvi file with program, D2XX Programmer's Guide and error comunicate.
Solved! Go to Solution.
09-05-2018 06:00 AM
Since You do not share your code it is very hard to say.
But some tip:
There are two different views of programmers on that kind or errors.
1. Possible reason: Bugs in Labview
You can find tips for solve this issue at:
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P9TXSA0
2. Possible reason: Bugs in your code:
For example example if error accurs when your program calls "Call lIbrary function node" the solution is:
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P8WkSAK
09-05-2018 06:28 AM - edited 09-05-2018 06:28 AM
Actually he does share the code but it is for LabVIEW NXG. As I don't have that installed currently I can't look at it. But the symptoms are clear. Bad SLI (Shared Library Interface) configuration. Most likely he is forgetting to prellocate string or array buffers that the DLL wants to write into, assuming that the primary datatypes do match the DLL headers of course.
09-11-2018 03:38 AM
Thanks, rolfk.
I checked the types of function arguments and found the right type by trial and error. Problem solved, thanks!