Altera_Forum
Honored Contributor
12 years agoRead float values from file stored on SD Card
Hello all,
I have a matrix with float values which I will be saving in a file from Matlab. I have to copy this file to SD Card and read these values using NIOS 2 while running my program. What is the best method to do this? Should I simply store the values using fprintf in Matlab? Will I be able to read these values using fscanf in NIOS? I am using the FAT file functions from the SD Card Audio Demo program but I think those functions read one byte at time. It will be difficult to re-format my data after reading because my values will be stored as float. Any ideas on how I can implement this? Thanks