Jump to content

File IO in SbRIO

Recommended Posts

Hello all

I am working on the SBrio 9612 board. I am trying to write a text file with the data from the FPGA.

Normally I should be able to write to the Host PC ie to a file on my desktop,by giving a Direct path to the file. but when I try to do this an Error 7 occurs on the create File node.

Can it be a network related problem? (some firewall related stuff which im not aware of)

Should I try to use a network variable to send data to the host and then store it with a Host VI?

Please do suggest me a method to store data, as text file or spread sheet file, either on the desktop or on the Non volatile board memory.



Link to comment

You won't be able to write a file on your Host-PC (Desktop) directly from the RT-System (sbRIO). But writing to the disk of the sbRIO will do with the standard File I/O VIs, assumed the given path is correct. The syntax is the same as on Windows-PCs, e.g.


should be a valid path on your RT-System.

But be aware that File I/O is crucial for RT-Performance. Sending your data to your Host-PC using Network-Variables or the new 2010 Network Streams could be an option, depending upon what exactly your are trying to do.



Link to comment


Thank you for your prompt reply.

Well,I got the idea of writing a text file on the host from the following link.


The application im developing is to record measurements from some sensors (ie pH and Temperature),measurements have to be made for a long period of time like 24 hrs,and stored for later analysis.



Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.