02-05-2019 02:00 PM
I am trying to transfer a text file on my desktop computer to myRIO and also read a text file from myRIO to my desktop computer. The control algorithm is running in python on my desktop computer. I tried with WebDAV from the following link but couldn't open a new text file in myRIO? It says permission not granted, but I can see different folders in the files folder.
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019PlESAU&l=en-US
Wondering if I am doing something wrong.
I also read that it is not a good idea to transfer file in a while loop. I need to obtain the states (which are in the text file) in order to output the control signal from python in my desktop.
I am attaching the VI which tries to read and write files in the myRIO. Using WebDAV I wanted to read and write these files from myRIO.
Is there a better way to do this?
Solved! Go to Solution.
02-05-2019 02:24 PM
Why write a file? Setup a network communication so that your PC application can just request the data and then your myRIO just sends the latest values up. On the myRIO, you will want a second loop to handle this communication and probably a simple Global Variable to hold the latest values.
02-05-2019 04:07 PM
Hi crossrulz,
Do you have any suggested link where I can setup a network communication?
02-06-2019 07:42 AM
@nku1991 wrote:
Hi crossrulz,
Do you have any suggested link where I can setup a network communication?
In LabVIEW, go to Help->Find Examples. Just do a search for "TCP" and you will see a Simple TCP.lvproj. Use that as a starter.