With the recent release of our Python API for Windows, new and exciting possibilities are available for users of MCC hardware. There are a lot of Python packages and widgets that you can leverage to extend and expand your applications easily. To demonstrate one such application, I wrote a step-by-step article on how to create a Win form (GUI) application with TKinter, a widget set for constructing GUIs in Python. The example focuses on device discovery and single point analog input with the USB-1408FS-Plus or USB-1408FS device. However, it can be easily modified to use any Measurement Computing device that has an analog input. It can also be modified to access the digital I/O, counter, or analog output features of a device.
First, I walk you through how to set up a new project in Visual Studio, though you can use any IDE that supports your version of Python. We then create the UI, implement device discovery to access your hardware, and add the code to acquire Analog input data. Check out the full article here on our Knowledge Base!
If you have any comments or suggestions of other Python projects, please let us know in the comments below.
Leave a Reply