12-16-2022 05:40 AM - edited 12-16-2022 05:52 AM
Hi everybody,
i have very strange issue.
Using FTDI drivers, i have differnet behaviour on two different computers.
Just to try communication, i created small program.
Get FTDI description by index, open and close the port.
On one PC works just fine everytime, but on another PC work first time only, and then every second time FTDI is not recognised, becasue communication isn't closed at the first time.
I wondering why is this happened?
Thanks
Solved! Go to Solution.
12-16-2022 07:27 AM
What is the chance that on the system you see problems, you are in fact using LabVIEW 64-bit.
That FT_HANDLE is a pointer sized variable and needs to be configured as such in the Call Library Node. And to make things really work properly, the according LabVIEW control needs to be changed to be a 64-bit (unsigned) integer.
12-16-2022 08:00 AM
Thanks for feedback.
Yes, you are right, another PC using 64 bit version.
But after changing the handler in call library node to U64, issue remain.
I will install 32bit version and give you feedback.
12-16-2022 08:06 AM
Don't change the variable data type to U64 in the Call Library Node. That will not work when you try to use those VIs in 32-bit LabVIEW. The parameter needs to be configured as Pointer sized (unsigned) integer, passed as pointer to value in the Open function, and passed as value in all the others.
The control on the LabVIEW frontpanel then needs to be a 64-bit integer. This is necessary in order for the 64-bit handle to be fully transported throughout. For 32-bit LabVIEW, the upper 32-bit of that will be unused, but the Call Library Node will do the right thing when encountering a 64-bit integer wire and the parameter is configured as pointer sized integer.
12-22-2022 03:08 AM
Many thanks.