From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to write to a .py file?

how do I write to an already existing .py file? thanks!

0 Kudos
Message 1 of 3
(936 Views)

What exactly do you need to do? You can always just open the .py file in a text editor.

Matt J | National Instruments | CLA
0 Kudos
Message 2 of 3
(912 Views)

A .py (Python) file is nothing more than a text file with a .py extension.

 

You can read and write to it using "Read Text File", and "Write Text File" vi's in the File Palette.

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 3 of 3
(895 Views)