LabVIEW Embedded

cancel
Showing results for 
Search instead for 
Did you mean: 

writing to SD Card

Hi all,

I try to write a measure file to SD-CARD with labview ARM.

If I open and close file outside the while loop, the file is created but no data is writen. It works fine if I open and close file inside the loop. however, this means the file is reopened every  time. did any one knows what happens?

This is my VI:

datalogger.png

0 Kudos
Message 1 of 4
(7,973 Views)

Perhaps youre overflowing the buffer somehow.  Try closing the file reference before you write 4kB of data.

 

As in...  Open and close the file within the while loop, but only a subset of the iterations.

Message 2 of 4
(7,963 Views)

Hello!

 

I have the same type of problem so I post there.

 

I' try to write on a file on the SD card, and if I don't open and close the file on the loop, there's only one line writed.

Unfortunately, on my application, I have to read the measure and write them on a file quickly than 10 ms and if I open and close the file each time, writing part take too long.

 

Is there a tip to resolve this?

 

Regards,

 

Cédric

0 Kudos
Message 3 of 4
(7,297 Views)

Have you tried a master/slave loop implementation? 

 

The master loop reads AI, then Que's the data to a slave loop that reads the Que and records chunks of data to disk?

0 Kudos
Message 4 of 4
(7,254 Views)