LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write data in a file on a SD card using a cRIO

Solved!
Go to solution

Hi all,

 

i have a NI 9073 chassis and a NI 9802 module with a SD card in the slot number 0. I didn't succeed in realizing simple mount and unmount operations. Here's the setup:

 

The chassis NI 9073 is programmed to work in FPGA mode (and not in scan interface mode); the module NI 9802 is in the FPGA section as well as the "NI 9802 Methods (FPGA).vi"; the "NI 9802 RT Access (Host).vi" is in the RT section.

 

I tried two different actions:

1- When i try to run the "NI 9802 RT Access (Host).vi", i get the error number 65549 ("A general or undefined error has occurred. Verify that the card is inserted properly and that the door is closed. If the error occurs again, run CHKDSK on the card.").

 

2 - When i try to run the "NI 9802 Methods (FPGA).vi" and select an operation which calls a "SD card 0" node, the VI doesn't exit the node and waits indefinitely.

 

For the moment, i don't know how to solve the problem. Any help will be appreciated!

Download All
0 Kudos
Message 1 of 6
(5,239 Views)

did you run scandisk/chkdsk on the card from a (windows) computer?

 

Check that the card is formated with FAT32 as the file system (and nothing else) as you need that to mount on cRIO's.

 

Let me know if that helps!

QFang
-------------
CLD LabVIEW 7.1 to 2016
0 Kudos
Message 2 of 6
(5,217 Views)

Taking a look to the specification, seems that the SD card must have a capacity lower or equal to 2 GB. It also must be formatted with a FAT16 (or, simply, FAT) file system.

 

I tried with two different 4 GB SD cards formatted with the mentioned file system and partitioned with a 1 GB partition without success.

 

Did anyone succeed in using the NI 9802 module with a 4 (or more) GB SD card?

 

Please consider the following link: http://kb.sandisk.com/app/answers/detail/a_id/2520/

Do you think that the only format supported by the module is the simple SD (an not SD-HC or SD-XC)?

 

Thanks,

 

aRCo

0 Kudos
Message 3 of 6
(5,195 Views)

Well, i found a 2 GB SD card somewhere in the office.

 

First, i tried to place the card as it was (with several files inside) in the slot number 0 and run the "NI 9802 RT Access (Host).vi". Unbelievable, it worked!

 

Then, i tried to format it and repeat the previous operation. The vi generated the error number 65550. How can it be possible? I formatted it using the formatting tool provided by the OS (Win7 x64) and selecting the FAT file system.

 

The NI-RIO software installed is in the 13.0 version, higher than the 3.1.1 version mentioned in this article.

 

Smiley Surprised

0 Kudos
Message 4 of 6
(5,183 Views)

Hi,

the article you linked also mentions:

If you have the correct driver and are still experiencing error -65550, it is most likely caused by the FPGA being reset while the card was mounted.  If this is the case, the SD card will need to be removed and reformatted with a different device before it can be used in the NI 9802.

Can this be the case?

Bye,

 

Licia

0 Kudos
Message 5 of 6
(5,162 Views)
Solution
Accepted by topic author aRCo

Yes Licia, infact, i tried first formatting the card under WinXP without success. Continuing on this line, i decided to try using the official tool provided by the SD organisation and this solved the problem.

 

Thanks to everyone. Bye!

 

aRCo

0 Kudos
Message 6 of 6
(5,155 Views)