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

Your main code is in LabVIEW® and someone  need you to run a python script(program) and get its output.

Using an NI example modified for presentation

Original Example

https://forums.ni.com/t5/Developer-Center-Resources/Calling-Python-Code-from-LabVIEW/ta-p/3521538?profile.language=en

LabVIEW® is  a National Instruments product.

Below images on Modification of Original example to make full use of python sum as used in python script.  Multiple number can be entered as string , remember that their must be at least one space between arguments to recognized as a new arg.

 

LCP_Slide1LCP_Slide2LCP_Slide3LCP_Slide4LCP_Slide5LCP_Slide6LCP_Slide7

 

Original code: https://forums.ni.com/t5/Developer-Center-Resources/Calling-Python-Code-from-LabVIEW/ta-p/3521538?profile.language=en

National Instruments website: www.ni.com
For Python on sys : https://docs.python.org/2/library/sys.html

 

About LV_TS_Test_Engineer_3000_VI

Automated Test Equipment Software
This entry was posted in Test Sector and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s