10-06-2022 10:14 AM
I am using Labview 2019 on windows 10 and using the latest version of the Silicon Labs CP2112 DLLs (11/14/2018). I am currently working on 3 functions: HidSmbus_GetNumDevices, HidSmbus_GetString, and HidSmbus_Open.
Of those 3, only the GetNumDevices is working. Whenever I attempt to run GetString or Open, the library functions don't return what I am looking for and half the time cause labview to crash. I've read on some other forums that the data types need to match and I believe I have checked that and made sure hat they match. I also have my parameters listed in the correct order with how they are listed in the documentation that comes along with the DLLs from Silicon Labs.
This is my first time attempting to use the "call library function node" so I am not sure if I am doing something completely wrong with this or not. Would somebody be able to take a look at this and see if there is something obvious that I am not accounting for?
10-06-2022 10:17 AM
Attached is the documentation on the functions. I forgot to attach this in the original zip file.
10-06-2022 09:35 PM
For HidSmbus_GetString(), char* deviceString show be defined as C String Pointer with minimum size of 260.
For HidSmbus_Open(), you have to find the definition of HID_SMBUS_DEVICE in the header file, not in the API spec.