06-17-2025 12:50 AM
Hey,
I am using a Ni8452 for sending DIO signal. I am trying to configure it to a computer and control it using python in VS studio code. I have the driver installed and the have the proper dll path specified in the ni845x.py as shown below
However in the line of self.i2c.ni845xFindDevice() it throws an error as following :
" self.status_code = self.i2c.ni845xFindDevice(self.first_device, self.find_device_handle, number_found)
ValueError: Procedure called with not enough arguments (12 bytes missing) or wrong calling convention"
Over the internet that if the dll is 32 bit then it is better to call the dll using wdll function instead of cdll in the load library function after changing it c.cdll.LoadLibrary(self.dll_location) i get this following error:
" self.status_code = self.i2c.ni845xFindDevice(self.first_device, self.find_device_handle, number_found)
AttributeError: 'NI8452Interface' object has no attribute 'i2c' "
How can I fix this issue ? Has anyone face any similar issue regarding this? Please let me know it is quite urgent.
06-17-2025 01:18 AM
Please see if this works instead https://github.com/amitibo/pylibni845x
06-17-2025 01:35 AM
Hello ,
thank you for your reply. This one only has I2C configuration. I want to configure some DIO pin to generate a pulse wave. I am not sure whether I can do this with I2C.