12-03-2023 03:52 AM
Is it valid for creating a folder what you talking about? Because, I can create a folder in normal VI, but in real time doesn't allow to create a folder.
12-03-2023 09:24 AM
ilkerksr35@gmail.com wrote:
Is it valid for creating a folder what you talking about? Because, I can create a folder in normal VI, but in real time doesn't allow to create a folder.
I honestly don't know, as I've never tried to do this. Whenever I've developed a LabVIEW Real-Time application, I always had a Host routine running on the PC and a Target routine running on the connect cRIO or PXI system. I know it is possible for the Target to do I/O (the first RT project did that, and it was a total mess, particularly if the program crashed, in which case most of the "orphan" data on the Target was lost), but I always used Network Streams to send Target data to the PC (which was largely "managing" the RT process and had plenty of cycles to do File I/O on its much larger disks). I could look at the original LabVIEW 7 code and try to find those routines, but it is definitely not what I recommend.
Best Practices for Target File I/O with LabVIEW Real Time starts by saying "There are reasons to avoid file input and output (IO) on the real-time (RT) target in a LabVIEW RT application."
Bob Schor
12-04-2023 12:38 AM
Thanks for your feedback. Actually, I forgot to add details. In real time project, I want to save real time project outputs to the in host (in my computer area) target. In Highlight Execution, it occurs but doesn't exist in folder. I don't understand why. Do you know any solution about that?
12-04-2023 01:15 AM
Hi ikeser,
ilkerksr35@gmail.com wrote:
I want to save real time project outputs to the in host (in my computer area) target. In Highlight Execution, it occurs but doesn't exist in folder. I don't understand why. Do you know any solution about that?
Yes, sure!
Have you learned from those example projects that are available when you install the RealTime module for LabVIEW?
Go to File->"New…" to start the project creation dialog. Then choose one of those RT projects: they explain how to transfer data between RT target and host computer!
12-04-2023 02:05 AM
Yeah, I know that, lol. Actually I mean that I saved output data of Real time to a folder (.txt, .xlsv etc.). I tried this but doesn't work.
12-04-2023 02:09 AM
Hi ikeser,
ilkerksr35@gmail.com wrote:
Yeah, I know that, lol. Actually I mean that I saved output data of Real time to a folder (.txt, .xlsv etc.). I tried this but doesn't work.
Your RT target has no access to the hard/network drive(s) of your host computer, it only can access its own internal drives.
When you want to transfer data ("live") to your host computer then you should learn from those example projects!
12-04-2023 05:45 AM - edited 12-04-2023 05:46 AM
ilkerksr35@gmail.com wrote:
Yeah, I know that, lol. Actually I mean that I saved output data of Real time to a folder (.txt, .xlsv etc.). I tried this but doesn't work.
Your real-time system is simply a computer of its own with its own local disk storage and filesystem. It can't save files to your host computer just as you can't simply save files to your colleagues computer. There are ways to share specific folders on your computer after you made them available in Windows as network shares and then correctly mounted them in your real-time target as a network share. With the modern NI Linux based targets this is possible, but SAMBA under Linux is NOT typically a point and click solution, but requires some serious network and Linux knowledge especially if you want to make it persistent across shutdowns and restarts.
The samples Gerd mentioned show you other ways how to transfer data to the host computer, but they usually require a second application to run on your host which receives that data and then can do with it whatever you decide.