LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Send current data from python to labview by data file

Solved!
Go to solution

Hi,

 

I'm trying to passing current data from python to LabVIEW. The new data is generated every 30 seconds. I found this can be done by TCP. But I'm just wondering if there is easier way to achieve this. I'm thinking about if it is possible to set a time sleep at the beginning of the loop in python. Write to a text or dat file inside the loop. Then close the file right away at the end of the loop. Therefore I can read the data file in Labview while it is not opened by python.

 

Any suggestions?

0 Kudos
Message 1 of 2
(1,961 Views)
Solution
Accepted by topic author feelsomoon

Yes, it is possible. Notes:

You can open file read-only (access input for Open file function) even if it is opened in another program.

You will need to figure out the way to synchronise reading/writing not to overwrite file while it is being read and how to read only new data. 

If it is local, you can use even UDP, seems simple both in python and labview.

0 Kudos
Message 2 of 2
(1,920 Views)