LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

exporting data to excel

Hi,

 

I would I go about exporting the data to an excel file? On the front panel I tried using the export to excel function but excel opens with only the labels of the signals with no actual data points. Do I have to build an array or something? I've attached the .vi to this post.

 

 

Thanks

0 Kudos
Message 1 of 15
(3,698 Views)

From which control are you trying to export data?  Does data show up on it?

 

When I put some data in your charts, I was able to export the data to Excel without problems.

0 Kudos
Message 2 of 15
(3,697 Views)

I'm trying to export the data from the waveform chart, I've attached a screenshot of the front panel.

0 Kudos
Message 3 of 15
(3,693 Views)

Can you resave your VI with that data shown in the indicator saved as default?

 

I can't run your VI because I don't have your FPGA hardware.  So after stripping out all the code that I couldn't run, and wiring up a random number generator in a loop to connect to the waveform chart, I had no issues exporting that data.  If I can try again with your real data saved as default, it should be most like your VI.

 

 

0 Kudos
Message 4 of 15
(3,691 Views)

I tried saving the .vi with the data, let me know if the data isn't saved because I don't really know how to do that properly.

0 Kudos
Message 5 of 15
(3,685 Views)

I've tried a few times to make the data in the chart the default but it doesn't seem to save. Sorry...

0 Kudos
Message 6 of 15
(3,680 Views)

I think this may have something to do with my waveform not having a dt, any suggestions?

0 Kudos
Message 7 of 15
(3,675 Views)

@Hendrick wrote:

I think this may have something to do with my waveform not having a dt, any suggestions?


I doubt that.  When I worked with your VI, I just used the random number generator, so it was just a waveform chart of doubles just like your VI is.

 

I can't see if I would have the same problems as you unless you save the data as default.  And it really isn't hard to do.

 

1.  Run the VI.

2.  Right click chart.  Data Operations >>  Make current value default.

3.  Save.

4.  Post


 

0 Kudos
Message 8 of 15
(3,655 Views)

I made the current values default and saved the file, however when I opened the file again and reinitialised the chart to default, it did not show the data. Could there be something wrong that's not allowing me to make the values default properly? Thanks

0 Kudos
Message 9 of 15
(3,651 Views)

I have no idea why you are having problems.

 

One thing I find odd is the size of your VI.  It just doesn't seem to have so much in it that would make it 581 KB.  VI memory usage says 221 KB are in block diagram objects, but I don't see so many objects to push the memory that high.

0 Kudos
Message 10 of 15
(3,647 Views)