LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to make a spreadsheet for data

I am trying to collect data from a cRio connected by FPGA to my computer.  I then want to save the data in spreadsheet form to then view it in Excel or in another program.  I think my setup is close to what it needs to be but am not sure with the array connection.  If you could please help me it would be much appreciated.  Sorry I am a beginner to Labview.

 

 

0 Kudos
Message 1 of 4
(2,431 Views)

Well, you would just need to wire the 1D array that comes out of the loop.

 

Also: When using a shift register you need to initialize it. Otherwise you will be building on top of the last run. Note that as an alternative you can simply wire your reading directly to the loop border and enable indexing. This will give you an array. I'm also not quite sure why you're converting the other array into a cluster. 

0 Kudos
Message 2 of 4
(2,396 Views)
How do i initialize the value of the array?  Do I do this on the outside of the loop?  It doesn't seem to be saving any data when i open the .txt file i have connected to the write to spreadsheet vi.  How can i fix this?
0 Kudos
Message 3 of 4
(2,391 Views)

bonatsfu wrote:
How do i initialize the value of the array?  Do I do this on the outside of the loop? 

Yes, you do it on the outside of the loop. Right-click on the left shift register and select Create -> Constant. Note: since you are building up an array within the loop you will be increasing the memory footprint as the VI runs. How long is this supposed to run?


It doesn't seem to be saving any data when i open the .txt file i have connected to the write to spreadsheet vi.  How can i fix this?

Are you trying to open the text file while the VI is running. If so, you will not see the data since the data is not written until the VI ends. If you are trying to view the file after the VI has stopped, then verify that the array has values. Either create an indicator for the array wire, or place a probe.

 

To learn more about LabVIEW it is recommended that you go through the tutorial(s) and look over the material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. You can also take the online courses for free.

 

0 Kudos
Message 4 of 4
(2,372 Views)