Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Log to CompactRio 9035

Hi all,

 

I currently have a VI working that will acquire data over time and add this to an array. This is currently running on the RT target on a CompactRio 9035 working in hybrid mode. 

 

What I am looking to do is once the program is complete and the array has been filled with all the data, I want the program to log the full array to a file to be used later. I am happy for this to be on the C drive or using an external U drive. However, I cannot seem to get the file to write to the CompactRio.

 

Is there any tutorials/white papers that describe the file I/O for a CompactRio? 

 

FYI - the array is a 1D array of dbl data type. 

 

Thanks,

 

Scot07

0 Kudos
Message 1 of 5
(2,404 Views)

Your file path is wrong. You have ''\'' instead of ''/''

 

E.g: c/ni-rt/startup/Test1.csv

 

Also don't forget your delimiter.

0 Kudos
Message 2 of 5
(2,363 Views)

Refer to the following link for more info, and look under instructions for VxWorks.

 

-Hafiz

0 Kudos
Message 3 of 5
(2,349 Views)

I've managed to get the program to log to the c drive on the CompactRio but not to an external disk. I suspect that it is not using the default U drive. 

 

hafiz.sallim - the CompactRio 9035 is an NI Linux Real-Time device, not VxWorks. 

 

Thanks anyway

 

Scot07

0 Kudos
Message 4 of 5
(2,337 Views)

You are right about that, the cRIO-9035 is based on Linux-RT. Here are some other things that I found:

 

1. This link on using USB drives on Linux RT

2. I'm not sure if the file system of the USB drives makes a difference, you might have more luck formatting to FAT32

 

-Hafiz

0 Kudos
Message 5 of 5
(2,324 Views)