Tag Archives: Python

Python- Example One simulated DMM in Multiprocessing with Lock

showing why lock is need if you have multiple process (uuts to test) but only One DMM Focus is on Multiprocessing and Lock (not on DMM communication setup) code for Python3.7 used in Spyder End Code Notes

Posted in Test Sector | Tagged , , , , , , | Leave a comment

Python Example Testing Functions , Running Test List, Mini Test Report (not Gui version), Only Console result.

Showing use of functions and running sequence via list, with a mini Test report function List had Test function to run. Example Tests_seq=[component,electrical,optical,OE,EO] The OE test result in this example has a random result output which helps develope code for … Continue reading

Posted in Test Sector | Tagged , , , , | Leave a comment

PY3 with TKinter using the Grid-Row-Col method (not place,pack)

In a previous post I showed similar GUI using place,pack . Now will show similar sample GUI (Graphical User Interface) using Python 3 and Tkinter with Grid,row,col method Widgets used Window Frame Labels Buttons Canvas Circle Frame Text ScrollBar Design … Continue reading

Posted in Test Sector | Tagged , , , , , , , , , , | Leave a comment

PY3 and TKinter GUI (place and pack)

Example GUI with Python3 and Tkinter using Place and Pack (grid will be another post) Widgets used window canvas label button frame circle oval  

Posted in Test Sector | Tagged , , , , , , , | Leave a comment

LV calling Python via -c command line method

Presentation on how a LabVIEW developer can access a Python developers module(file) and functions using the -c command line mode Helpful links https://stackoverflow.com/questions/3987041/run-function-from-the-command-line https://stackoverflow.com/questions/4383571/importing-files-from-different-folder National Instrument’s website LabVIEW® is a National Instrument product. Presentation created as a possible starting point … Continue reading

Posted in Test Sector | Tagged , , , | Leave a comment

Layouts and Matplotlib for plots and Pyqt5 , focusing on Layouts

Topic on Layout , Matplotlib, and PyQt5 Understand the Layout in one example solution. The great original example/solution code can be found at this location: reference: https://stackoverflow.com/questions/48140576/matplotlib-toolbar-in-a-pyqt5-application Mostly focusing on how Layout plays a role in GUI use of Graph … Continue reading

Posted in Test Sector | Tagged , , , , , , | Leave a comment

Python serial write and read to arduino with a K0183 shield and RGB

Showing communication to arduino which used a RGB shield which is setup to be controlled via serial com port using Python 3.7 Red num,Green num,Blue number   0-255 example 100,0,0  will turn on Red Led of RGB with a 100 intensity … Continue reading

Posted in Test Sector | Tagged , , , , , , | Leave a comment

File Data to Graph XY PLOT

Presentation on taking a file with the following format: [Section] Header0, Header1 Data1x, Data1y Datanx,Datany ****** File example (testreport1.txt) [RF_Meas1] Freq_MHz,Output1_dB 100,20 200,20 300,19 400,19 500,19 600,18 700,17 800,15 900,12 1000,10 ****** [RF_Meas2] Freq_MHz,Output2_dB 100,21 200,21 300,18 400,18 500,18 600,17 … Continue reading

Posted in Test Sector | Tagged , , , , , , , , , | Leave a comment

Python , Running functions in a list

Example only( was create under Python3.7  while inside Anaconda Spyder, Showing a method for running functions from a list with arg from a parameter list (just a str  for example) also sending parameters to function bases on a parameter list. … Continue reading

Posted in Test Sector | Tagged , , , | Leave a comment

Someone give you a python script and your are using LabVIEW®

LabVIEW calling simple Python script using command line (system exec) Continue reading

Posted in Test Sector | Tagged , , | Leave a comment