04-27-2010 01:58 AM
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
04-28-2010 11:36 AM
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!
04-30-2010 01:58 AM
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
05-03-2010 03:49 PM - edited 05-03-2010 03:58 PM
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.