04-18-2025 10:31 AM
Bonjour à tous,
Je souhaite faire de l'I2C avec LabVIEW. J'ai acheté un câble FTDI C232HM mais impossible de bien le faire fonctionner. Il m'est très compliqué de trouver une bibliothèque qui pourrait m'aider. Si vous avez une astuce ou autre je suis preneur.
Merci d'avance.
04-20-2025 11:02 AM - edited 04-20-2025 11:06 AM
Some related threads, worth reading, including following links mentioned in them:
https://forums.ni.com/t5/LabVIEW/FTDI-drivers-usage-in-Labview/td-p/4040967
https://lavag.org/topic/19453-cr-mpssedll-labview-driver/
Generally there are a few reason to try this:
- You have seas of time at hand to tinker with this, and to do trial and error, crash and restart over and over again
- You plan to build a system that will be deployed 100 or 1000s of times in the field.
Otherwise the USB-8452 will be a lot cheaper and cost you a lot less grey hair.
04-25-2025 07:12 AM
I've been able to make some progress but I still can't get it to work properly.
In I2C_CLOCK_STANDARD_MODE and I2C_CLOCK_FAST_MODE I first get the FT_DEVICE_NOT_FOUND error, then the next time I get the FT_FAILED_TO_WRITE_DEVICE error. The error occurs at write level.
In I2C_CLOCK_FAST_MODE_PLUS and I2C_CLOCK_HIGH_SPEED_MODE I don't get any errors. On the other hand, I only get 0xFF in response.
I use the I2C library that can be downloaded from the LAVA site and it's by following the threads that I've come to this point. Maybe there's something I haven't understood.
Thanks.