Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

save my data

Hello I am using the Sbrio-9601 with the NI9201 and i am taking measurements analyze them through fft. I am using this method to save my data http://forums.ni.com/ni/attachments/ni/170/308901/1/SavePowerspectrum1.jpg but I want to save that to the sbrio memory and send them through tcp protocol to my pc once per day.

How can I do that? Could you please tell me what path to write to that method or if i have to use shared variable or rt fifo and how? is there any example code that can help me?

Thank you

Regards

Jonathan

0 Kudos
Message 1 of 4
(3,664 Views)

Hello Zaxos!

 

If you specify a file path ahead of time (i.e. wire it into the open/create/replace file VI), you can specify a location on the controller to save the file. The controller should be able to interpret file paths entered like normal Windows paths, so you can specify a normal path, such as "C:\folder\folder\data.txt," and your data will be saved to that path relative to the root of the controller memory. For transferring the data, you can FTP onto the controller from the host PC, or use Measurement & Automation Explorer to transfer the files. Just right-click the sbRIO in remote systems and select "File Transfer."

 

Hope that helps!

Caleb Harris

National Instruments | http://www.ni.com/support
0 Kudos
Message 2 of 4
(3,637 Views)

Hello Harris

is going to be a remote real time application, i dont think that this solution fixed to my problem. I want everything to be done automatically.

 

Thank you for your reply

Regards

0 Kudos
Message 3 of 4
(3,621 Views)

Hello Zaxos

 

If you're trying to save the file remotely (even automatically), the best option is to use FTP.

 

You can either use a non-critical loop on the RT target to copy the files to an external FTP server, or you can run a VI on a remote computer to copy the files from the RT target via FTP (which might be an easier option - you can find a bit more info in this KB).

 

 

Judging by your current application, it might be better to simply write values to network-published shared variables which you can read and save to a file on a host PC.

Message Edited by charris on 05-03-2010 03:58 PM
Caleb Harris

National Instruments | http://www.ni.com/support
0 Kudos
Message 4 of 4
(3,596 Views)