03-26-2024 04:40 PM
Hello. I have a host-target, on the host I am creating a *.vi to run on the target. In the target I have put an int.txt to extract its content and generate a signal. I don't know how the path should be in the "Read Delimited Spreadsheet VI" image so that it looks for the file on the target, not on the host, how do I correct it? Thank you.
03-26-2024 07:31 PM
You cannot run a VI on a host to access a file on another machine. Either you run the VI on that target, or you transfer the file from that target. You can Execute VI Remotely by Using VI Server from a host PC.
03-27-2024 02:19 AM - edited 03-27-2024 02:20 AM
To precicise a bit: When you talk about a “target” what exactly is it? A Raspberry Pi, Arduino, LabVIEW realtime target such as a myRIO or cRIO or your own kitchen-sink ESP32 project?
How do you execute your VI on that target?
Where did you store that file on your target?
03-27-2024 08:22 AM
I can't access another machine (target) from a *.vi created on the host, I don't know how to put the path (that goes to the target) from the .vi in the attached image
03-27-2024 08:36 AM
@Benru wrote:
I can't access another machine (target) from a *.vi created on the host, I don't know how to put the path (that goes to the target) from the .vi in the attached image
As ZYong already explained: Another computer is not magically accessible on your computer by a path. If that was possible, you would have a very serious security risk. The harddisk (or flash memory) of another computer (target) is the properly of that target and only accessible for an application on that target.
If you want to access a certain location on another computer, you first have to share it on that computer, for instance by configuring a network share, and then connect to it from your other computer. In order for that to work you need to have the credentials of that share (this is typically a user account on that machine or a domain that machine is part of) that has at least read access to that location.
03-27-2024 08:42 AM
I've already set up a network share, and I connected from their other computer.
03-28-2024 09:24 PM
In general, in a Real-Time system, the Host (PC) handles all the file I/O (largely as this is not a "deterministic" process, as paper tapes and spinning disks (what's an SSD?) take unpredictable amounts of time), while transmitting data via TCP/IP from the RT Target to the PC Host is both fast and much more time-predictable. For this reason, most "real" I/O (i.e. saving information in "files") takes place on the PC -- the RT side uses TCP/IP to send the data to the PC, which packages this up and writes them to a file system. Note that that last step, "organizing" the data into a Data Base, a TDMS file, an Excel WorkBook, etc., requires "extra" time and might benefit from multi-threaded processing, Producer/Consumer organization, etc. common in modern Operating Systems, not so much in Real-Time OSes.
Note -- in principle, one could do I/O on a Linux-based RTOS, but for the reasons I noted above, it goes against the determinism that are the main aim of the Real-Time label, and should probably be avoided by punting the data up to the Host, which has the threads, hardware, and fast memory to better accomplish saving the data.
Bob Schor
03-29-2024 06:19 AM
03-29-2024 06:50 AM
In the image I attached the .vi that I made on my personal computer. I must take this same .vi to another computer where host-target is configured, I have the int.txt in the target, the .vi in the host but I have not told the .vi how to go look for that int.txt
03-29-2024 07:50 AM
Let's use A for the PC where you would like to run and view the data while using B for the PC on which the data resides.