LabVIEW中的Python脚本输出“More?”去stdou

2024-10-05 14:29:01 发布

您现在位置:Python中文网/ 问答频道 /正文

下面的屏幕截图显示了LabVIEW框图和输出。在

Screen shot of LabVIEW block diagram and front panel

这是输出文本。在

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\sesa351813\Desktop\ajay\python>More? 

Tags: 文本屏幕versionwindowsallusersmicrosoftcopyright
2条回答

直接执行python而不要通过Windows命令行。将c:\full\path\to\python替换为系统上安装的任何位置。在

方块图

enter image description here

输出

enter image description here

使用系统执行六您应该将要执行的内容传递到“命令行”连接器。如果从命令shell运行,则需要在命令前面加上“cmd /c”。要获取目录列表,可以使用:

System Exec.vi

在您的例子中,如果您传递字符串'cmd /c python hello.py',那么它应该正确执行。在

System Exec.vi running python script

相关问题 更多 >