I am working on a test and measurement device that combines the MCC128 data acquisition with the movement of an actuator, specifically the closed loop micro linear actuators from Xeryon. https://xeryon.com/products/mini-linear-actuators/
The actuator is controlled via UART through USB and through a python library provided by Xeryon, so it does not interfere with the functionality of the hat. The main challenge that I need to overcome is the lack of ability to run the actuator and the data acquisition scan simultaneously. When the code gets to the line for running the actuator, it stops and performs the actuator movement, before starting the scan. I know that Python has a threading library which can overcome this type of programming challenge, but my question is does threading/parallel processing inherently affect the functionality of the hat? From my understanding, the HAT ADC and hardware is responsible for the very fast and precisely timed data acquisition, but the pi CPU only reads data from the HAT buffer periodically, making the data acquisition I/O bound rather than CPU bound, so I should be capable of threading. Is this true and are there any examples of this type of usage with the hat?
Question
keshmaster81
I am working on a test and measurement device that combines the MCC128 data acquisition with the movement of an actuator, specifically the closed loop micro linear actuators from Xeryon. https://xeryon.com/products/mini-linear-actuators/
The actuator is controlled via UART through USB and through a python library provided by Xeryon, so it does not interfere with the functionality of the hat. The main challenge that I need to overcome is the lack of ability to run the actuator and the data acquisition scan simultaneously. When the code gets to the line for running the actuator, it stops and performs the actuator movement, before starting the scan. I know that Python has a threading library which can overcome this type of programming challenge, but my question is does threading/parallel processing inherently affect the functionality of the hat? From my understanding, the HAT ADC and hardware is responsible for the very fast and precisely timed data acquisition, but the pi CPU only reads data from the HAT buffer periodically, making the data acquisition I/O bound rather than CPU bound, so I should be capable of threading. Is this true and are there any examples of this type of usage with the hat?
3 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now