08-04-2026 01:52 PM
Hi Guys
If anyone is interested in some super low speed I2C comms on a standard USB-DAQ:
I have written (and tested) a small library to do that - just for fun of it - no real use-case (other than education or tinkering).
Code has been tested on EEPROM 24C32 and DS3231 RTC module.
(USB-6009 can do about 150 Bits Per Second)
It might be useful for students or teachers.
Kind regards
Petrus Prins
https://github.com/petrus-prins/NI_DAQ_PROJECTS
08-05-2026 04:44 AM
08-05-2026 11:27 AM
Dear GerdW
Sure, no problem, original was saved on LV2021Q3.
Attached, please find the LV2019 version...
Kind regards
Petrus Prins
08-06-2026 03:04 AM - edited 08-06-2026 03:08 AM
Hi Petrus,
thanks for conversion.
Some remarks:
08-06-2026 04:35 AM
Dear GerdW
Thanks for the thorough review!
Yes, I agree there are so many areas to improve in future.
Error wires probably being the first point of call, that and non-reentrancy + all the things you mentioned.
I might just do that when I have some time...
During development the flat sequence structure really made it way easier to visualize the per bit changes as per the timing diagrams from the datasheets. The challenge was more to see if I can get it working, than to make it useful to future expansion.
Thanks for the tip on the BCD conversion - I thought that was a standard VI, must have slipped in with my myRIO installation.
(I made a custom myRIO installer that installs myRIO tookit into any newer LabVIEW Installation)
Solved: Re: myRIO support in LabVIEW 2020 SP1 and 2022 Q3 - Page 3 - NI Community
I will have to go dig those BCD VIs out of there.
Thanks again for the feedback.
Kind regards
Petrus Prins