Forum Discussion
Altera_Forum
Honored Contributor
11 years agousing open() C command in the Nios II
Hi, can we used open() and printf() C commands to save stream of data in the Nios II? when I used fp=open() Command, it send Null to fp pointer.How can I store my integer data? Thanks
Altera_Forum
Honored Contributor
11 years agoPuTTY is a serial terminal emulator. Google "PuTTY download" to find it. This one works fine for me but there are several others.
Your dev board probably has a hello, world example. Get that running. Then replace that software with your own code. Write you data to standard output using printf. Look at the PuTTY (or other terminal emulator) documentation to find out how to log console output to a file on your PC. Just be sure you don't write data faster than the serial port can handle. Slow down if you start missing characters. You can then use excel, matlab, etc to analyze your data.