Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
412 views
in Technique[技术] by (71.8m points)

How to run a python script on a National Instruments PXI-8840 controller

My goal is to run a python script on a PXI-8840 controller. I found a way to trigger the execution of a python scritp using LabView and the "System Exec.vi". But this will only happen on a Windows Desktop PC which has Python installed.

I think in order to let a Python script with several modules imported run, there must be Python installed on that PXI.

Is there a way to do this? Has anyone done this before?

question from:https://stackoverflow.com/questions/65916351/how-to-run-a-python-script-on-a-national-instruments-pxi-8840-controller

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

I don't have one of these to test them, but according to the manual - you should be able to plug in a USB drive (optical or flash) and install software to your PXI-8840.

PXI-8840 User Manual - on page 13 it references how to install "other software"

I also found this for the next model up running Linux, the PXI-8880. Running Linux you can install new software (including Python interpreter) from their repository.

PXI-8880 Linux RT controller adding software - This page also instructs you on how to install the Linux image on your RT controller. (Again YMMV, not sure this is 100% compatible with the 8840)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...