Showing results for 
Search instead for 
Did you mean: 

How to write data to spread sheet

I am attaching here two pictures (front pannel and block diagram) of my RT vi being Host vi. 


I m trying to write data to spreadsheet. But i don't understand why my file is not being written. I tried the same method before in a general vi and it wroked. 


Here i tried to write to a Text file and i did tried to write to .csv file but in both cases the file is empty. 


I have another problem here, I learnt that writing to a file is slower process, that will obviously result in time out of my FPGA buffer.

so How do i deal with such a situation so that i can efficiently write my data to a file with out timeouts.

Download All
0 Kudos
Message 1 of 7

Use a producer-consumer architecture. (Look in New... -> VI -> From Template -> Frameworks -> Producer/Consumer Design Pattern (Data).


In your producer loop you receive the data from the FPGA and enqueue it and then in the bottom loop you dequeue the data and write it to disk.

LabVIEW Champion, CLA, CLED, CTD
0 Kudos
Message 2 of 7

yes sir i did it but this my file is empty after execution

0 Kudos
Message 3 of 7

Well it doesn't show that in your screenshots, have you tried probing the wires to make sure that data is being enqueued/dequeued correctly in both loops?

LabVIEW Champion, CLA, CLED, CTD
0 Kudos
Message 4 of 7

Sir I did it after i posted the screen shots. My main concern is not "time out" for now i'll optimize it later but my concern is why isnt the file being written.

0 Kudos
Message 5 of 7

Hi Rex,


please keep related questions in one thread.

Your question is (most probably) answered here!

Best regards,

using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 7

Oh right, yeah, the path is wrong in your VI as per the other thread, that's why your file isn't writing.

LabVIEW Champion, CLA, CLED, CTD
0 Kudos
Message 7 of 7