Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python script in LabVIEW outputs "More?" to stdout

The following screenshot shows the LabVIEW block diagram and output.

Screen shot of LabVIEW block diagram and front panel

Here is the output text.

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

C:\Users\sesa351813\Desktop\ajay\python>More? 
like image 673
hungryWolf Avatar asked Jun 29 '26 11:06

hungryWolf


2 Answers

To use System Exec.vi you should pass what you are trying to execute to the 'command line' connector. Running as if from the command shell would require you to preface your command with 'cmd /c'. To get a directory listing your could use:

System Exec.vi

In your case if you pass the string 'cmd /c python hello.py' then this should execute correctly.

System Exec.vi running python script

like image 150
Swinders Avatar answered Jul 02 '26 01:07

Swinders


Execute python directly and don't go through the Windows command line. Replace c:\full\path\to\python with wherever it's installed on your system.

Block Diagram

enter image description here

Output

enter image description here

like image 37
Joe Friedrichsen Avatar answered Jul 02 '26 01:07

Joe Friedrichsen