Academic Hardware Products (myDAQ, myRIO)

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you save data into an excel file while myRIO is acquiring data? I tried saving it using "Write to file" but it doesn't work for some reason.

I am acquiring cosine wave and a pulse wave as input and I want to store their peak to peak values into an excel file. "Write to File" is not working for it. Is there any other vi which can be used for data logging?

Thank you for your help.

Message 1 of 5
(9,288 Views)

Hi Ssheoran,

 

Can you provide more detail when you say that the Write to File VI doesn't work? Is there an error given? Or can you just not find the file on your computer? Keep in mind using this file in a Real-Time VI on the myRIO will save files on the myRIO. You will then have to transfer to your PC. Please view the following video as a guide for saving files and transferring them to your computer: (http://www.youtube.com/watch?v=BuREWnD6Eno). Hope this helps.

Best Regards,

Roel F.
Applications Engineer
National Instruments
Message 2 of 5
(9,272 Views)

Hey,

 

I am not able to find the file on the computer or on myRIO. I am trying to save the peak to peak value for a waveform using analog input of myRIO. Everything is fine when the program is running but when I try to find the file, I can't find it anywhere. I am currently trying different ways of saving the data to file (like arrays and strings) but I still can't save anything.

Thank you for your help

 

Sagar Sheoran

Purdue University

0 Kudos
Message 3 of 5
(9,253 Views)

Hi Sagar,

 

Which VI are you using? Are you using the Write to Spreadsheet File VI? What type of data are you trying to save?

Best Regards,

Roel F.
Applications Engineer
National Instruments
0 Kudos
Message 4 of 5
(9,238 Views)

Hola! 

En mi caso estoy usando MyRio-1900 y estoy desarrollando mi programa en el Real-Time, yo también queria usar el VI "write to file" para guardar datos pero no me dejaba. Luego lei que esto se debe principalmente porque el Real-Time esta montado sobre Linux entonces por más que le coloques un "file path" con destino en tu computador no va aparecer. Luego entre al myRio usando la web http:/172.22.11.2/files, busque mi archivo pero tampoco estaba ahí. Resolvi por no usar ese VI, entonces decidi usar el "Write delimited Spredsheet" y fue mejor ahi encontre mi informacion dentro del myRio accesando por la web. Otra opcion es crear una unidad de red con la misma IP anterior y todas las carpetas aparecen. Otro dato es que puedes conectar un pendrive a la unidad myRio y se creara una carpeta nueva con el nombre /u/... puedes hacer que el destino de tu info sea ese, lo cual lo puedes configurar desde el diagrama de bloques.

0 Kudos
Message 5 of 5
(706 Views)