LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving Date/Time to Second in LabView

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.

0 Kudos
Message 11 of 17
(1,447 Views)

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

 

 

0 Kudos
Message 12 of 17
(1,434 Views)

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?

0 Kudos
Message 13 of 17
(1,418 Views)

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!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 14 of 17
(1,412 Views)

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.

0 Kudos
Message 15 of 17
(1,401 Views)

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!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 16 of 17
(1,398 Views)

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.

Rolf Kalbermatter
My Blog
0 Kudos
Message 17 of 17
(1,386 Views)