petebachant / daqmx

A Python wrapper to the National Instruments DAQmx driver.
MIT License
3 stars 6 forks source link

Does this work on Advantech DAQ cards? #13

Closed AmirAliVz closed 3 years ago

AmirAliVz commented 3 years ago

Hello, I want to ask if your code can also work on Advantech devices. I have a USB-4711A and I can't find any code or library to read data using Python. I appreciate it if you share your experience with me. Thank you in advance

petebachant commented 3 years ago

I would doubt it, but I'm not sure. Do they provide a C library?

AmirAliVz commented 3 years ago

Yes, the SDK provides examples in various programming languages including C++. but it doesn't have anything for python. I found a library for NI devices, its name is nidaqmx but nothing for Advantech.

petebachant commented 3 years ago

Ah, I see. You could probably use a similar approach using the ctypes module to wrap their C library.

AmirAliVz commented 3 years ago

Yes, that's the right approach. But I've just found out that the latest version SDK and driver can also support Python Thank you

petebachant commented 3 years ago

Glad to hear it!

cancertataje commented 1 year ago

Hello, I am trying to take readings from a USB-4711A with python but I have not been successful yet, could you tell me how you did it?