Measurement Computing   Easy to Use | Easy to Integrate | Easy to Support catalog banner

Example: Linux, Python3, USB-1208FS-Plus, concurrent analog...

Expand / Collapse

Example: Linux, Python3, USB-1208FS-Plus, concurrent analog input and output scanning

Here is an example demonstrating how to setup and run concurrent analog input and analog output scans, both continuously.

The example was written for Python 3.7
using PyCharm® Community edition installed on a Raspberry Pi® 4B

Features the USB-1208FS-Plus but can be easily modified for other devices.
The scans run at different rates, and collect/output different amounts of data 
The scans run independently but on the same device and in one thread.

The tricky part is keeping all the variables separate.

Rate this Article:

Attachments (10.12 KB, 289 views)

Add Your Comments

For comments email

Article ID: 50843

Last Modified:6/8/2021 3:04:58 PM

Article has been viewed 1,427 times.