Academic Hardware Products (myDAQ, myRIO)

cancel
Showing results for 
Search instead for 
Did you mean: 

data

I am currently trying to collect data from sensors that will connect to my myrio for my robot project. 
I have been able to code most of my sensor's but I am still having diffcultly with the save function of Labview.  I am trying to collect the output(Y) as a text file to my computer, when the rio is connected to my computer.  How do I do this?  Below is my code as shown. 

0 Kudos
Message 1 of 8
(7,407 Views)

I apolgize for not posting code in the last message.

Download All
0 Kudos
Message 2 of 8
(7,406 Views)

bmprecent.pngI apolgize I am still getting use to the community page someone has pointed out to me.

0 Kudos
Message 3 of 8
(7,405 Views)

Hey billjake,

 

Remember, the code your write is running on myRIO.  Therefore any file you save is saved to the myRIO internal storage, not your PC.  

 

You have several options for saving data collected with myRIO.

 

  1. You can save the data to a file on the myRIO and later retrieve it using WebDAV.  Instructions for WebDAV can be found here.
  2. You could plug a USB thumb drive into myRIO and save the data directly to the thumb drive (by default the thumb drive will be assigned the name U/).  Later you can power off you myRIO, remove the thumb drive and retrieve the files on your PC.
  3. You could use network stream or shared variables to transmit the data back to your PC and use a VI running on your PC to collect the data from the myRIO and save it locally.

 

Check out the LabVIEW Example finder (Help>>Find Examples) for a ton of examples on the various ways you can save files.

 

Let us know if you have more questions about this.

 

Thanks!

 

-Sam K

LabVIEW Hacker

Join / Follow the LabVIEW Hacker Group on google+

0 Kudos
Message 4 of 8
(7,376 Views)

error.pngOk one more saving option.  it's write to spreadsheet,
i'm getting error 43.  Any idea?

 

0 Kudos
Message 5 of 8
(7,327 Views)

Hey billjake,

 

The path input to the Write To Spreadsheet file is not wired.  If this was running on the desktop it would prompt you for a path when you run it, but since it is running on the myRIO target it cannot prompt for the path.  Make sure you provide a valid path and run your VI again.

 

Thanks!

 

-Sam K

LabVIEW Hacker

Join / Follow the LabVIEW Hacker Group on google+

0 Kudos
Message 6 of 8
(7,322 Views)

cool got it, but my only issue is it's recording the intial measurement and does not continue reading values

0 Kudos
Message 7 of 8
(7,276 Views)

the following is suppose to read continuous measurement of an acclerometer but as said only reads the intial value then stops.

how do i get it to coniuously record?

0 Kudos
Message 8 of 8
(7,274 Views)