LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with Saving Data in Real-Time

Solved!
Go to solution

Hello,

 

I am having a problem with saving the data I am collecting to a file. I am using a cRIO controller and there are no measurement file functions available. I have looked into FIFO and shared variables but cannot find any information about saving to a file and everything I have tried only results in errors. Please let me know a simple process to save this data. Thank you!

 

tpendleton18_1-1737738900535.png

 

0 Kudos
Message 1 of 15
(298 Views)

All you show us is a picture with a pile of wires and terminals. Is this running on the RT system? Where does the chart get displayed? Where does the UI run? Where do you want to save?

 

0 Kudos
Message 2 of 15
(290 Views)

Hi tpendleton,

 


@tpendleton18 wrote:

I am using a cRIO controller and there are no measurement file functions available.


This is wrong.

There are (measurement) file functions available on cRIO RT (Realtime)!

 


@tpendleton18 wrote:

everything I have tried only results in errors.


What have you tried?

Which errors did you get?

 

Do you know you can create files inside the cRIO file system?

Do you know your cRIO CANNOT access the filesystem of your Windows computer?

Did you understand the example projects for cRIO/RT, explaining how to transfer data between cRIO and host computer?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 15
(286 Views)

Hello,

 

Here is the entire project and files I have for the LabVIEW. I am using the FPGA module, and there are no report generation or measurement file functions available. I may have incorrectly explained that in my first post. I do not really know what to do in this scenario, as usually I can just use the measurement file function and easily export data to excel or csv. I am wondering if that is even possible using FPGA. Answering your questions, no I did not know that cRIO cannot access files and I have looked at examples from LabVIEW but I cannot even get them to run.

0 Kudos
Message 4 of 15
(274 Views)

@tpendleton18 wrote:

Here is the entire project and files I have for the LabVIEW..


All I see is one file.

0 Kudos
Message 5 of 15
(257 Views)

I cannot upload the project file. 

 

This is the error I get.

 

  • The attachment's crio main project.lvproj content type (application/octet-stream) does not match its file extension and has been removed.

 

 

0 Kudos
Message 6 of 15
(249 Views)

put everything into a zip file, then attach that.

0 Kudos
Message 7 of 15
(244 Views)
0 Kudos
Message 8 of 15
(241 Views)

Hi tpendleton,

 


@tpendleton18 wrote:

I am using the FPGA module, and there are no report generation or measurement file functions available. I may have incorrectly explained that in my first post.


Well, you forgot to mention the FPGA part completely in your first post.

And yes: the FPGA cannot write any files, neither in cRIO nor on host computer…

 

I repeat my question from previous message:

Did you understand the example projects for cRIO/RT, explaining how to transfer data between cRIO and host computer?

 

And I ask specifically: Did you also understand the example projects for RT+FPGA? They explain how to transfer data from FPGA to cRIO to host computer!

 

  • Using a chart in a FPGA VI is nonsense: the FPGA doesn't support an UI…
  • Why don't you start with the Scanengine supported on your cRIO9064?
  • Do you really need the FPGA for your requirement? I don't see any tight control loop…
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 15
(225 Views)

Hello,

 

I did not understand the example projects in Labview. I am a beginner in LabVIEW and am developing this VI for a school project. For our project, we need to display the data using graphs (which does display data when the code is ran). I understand the basics of LabVIEW however FPGA is a whole new world for me. I have read through the developers guide for cRIO and have looked at other posts talking about DMA FIFO and other levels of communication but I either cannot get half of the functions they mention or errors arise. One of the errors I encountered in the FIFO was that when I went to write to the FIFO, it also needs to be read. However, I don't understand why that is a requirement for it. If there is ANY easy solution you can provide, please let me know. 

0 Kudos
Message 10 of 15
(219 Views)