12-04-2014 01:38 AM
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.
12-04-2014 03:42 AM
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.
12-04-2014 04:00 AM
yes sir i did it but this my file is empty after execution
12-04-2014 04:03 AM - edited 12-04-2014 04:07 AM
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?
12-04-2014 04:44 AM
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.
12-04-2014 05:51 AM
Hi Rex,
please keep related questions in one thread.
Your question is (most probably) answered here!
12-04-2014 05:53 AM
Oh right, yeah, the path is wrong in your VI as per the other thread, that's why your file isn't writing.