LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

File extension on ni 9802 FPGA mode

Solved!
Go to solution

Hi All,

 

I would like to know if there is any way to change the file extensions of the files created with the NI-9802 using the FPGA mode. I see they are saved as BIN but is there any chance it could be .TXT or .CSV so that they can be easily accessed by another computer?

 

Thanks a lot for your help.

 

 

 

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

Hello,

 

I believe that this forum discussion should answer your questions: http://forums.ni.com/ni/board/message?board.id=170&message.id=373036&requireLogin=False

 

-Zach

0 Kudos
Message 2 of 4
(3,563 Views)

Hi iZACHdx,

 

Thanks for pointing me to the other forum. I actually already read it and I guess you refer to this paragraph as the answer to my question:

 

For example, you can create TDMS files from FPGA, but are required to write the header information your self byte by byte.  In fact we did this before in a demo. The file ID can be any unsigned integer value from 0 to 255 and appears as an 8-bit hexadecimal value in the filename. The name of the file is in the format CRIO-X##.BIN, where ## is the hexadecimal representation of the value you entered. The filename must be uppercase and must comply with the DOS 8.3 naming convention. If you look in the LabVIEW Help for the "NI 9802 (FPGA Interface) Help topic it will talk about the module in more detail regarding any restrictions on File Names when used in LabVIEW FPGA.

I guess I am not fully understanding this because it says the convention of the filename is  CRIO-X##.BIN but right after says it  must comply with the DOS 8.3 naming convention.

If I am not wrong the convention applies to writing files in the FPGA mode and the DOS 8.3 thing applies to accessing the SD from RT. That is what I do not fully understand.

 

I guess my simple question is if I can save files on the SD card from the FPGA with an extension other than BIN. 

 

Thanks again for your help, please let me know about this issue.

 

 

0 Kudos
Message 3 of 4
(3,552 Views)
Solution
Accepted by topic author cagell

Hello,

 

In FPGA mode, you cannot save to another extension other that .BIN. Since this is a binary file, you can write any sort of file format to the binary file as long as you comply to the file specifications. Thus, if you wanted to write a text file, you would do so in binary and then change the extension before viewing it.

 

-Zach

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