09-28-2020 10:13 PM
Dear all
I currently need to store the data in FGV for subsequent use. The data per array in FGV is 900,000, and the reading and writing speed of FGV is too slow. May I ask how to optimize or do you have any better Suggestions?
09-28-2020 10:27 PM
A picture of a VI doesn't help us help you. Certainly not one that doesn't even show the file writing part of the code.
Please attach an actual VI. Perhaps even a data file.
When you say "too slow", how slow is it? How fast do you want it to be?
09-28-2020 10:33 PM
It is inefficient to place connected terminals inside structures. they belong on the toplevel diagram (details). You could also use feedback nodes, eliminating the FOR loop.
Is debugging disabled and front panel of the FGV closed when you test?
What else is going on? What other parts of the code access the FGV and how often? How is it used? How do you determine performance? What's in the other cases? We can't really debug pictures!
09-28-2020 10:37 PM
Each array has a data size of 900,000, and the time it takes to write and read is between the 30-50s, so hopefully it can read and write faster
09-28-2020 10:42 PM
Just call this FGV in another VI and turn off the debug and FGV front panel while using. Since each array has data of 90000000, FGV reads and writes are slow
09-28-2020 11:18 PM - edited 09-28-2020 11:36 PM
@daisy_11 wrote:
Since each array has data of 90000000, FGV reads and writes are slow
Did you just add two more zeroes to that number??? (that would require 64bit LabVIEW!)
09-28-2020 11:27 PM
In my testing, reading 3x 900k data from the FGV takes less than 10ms.
(Why do you even need the init state?)
09-29-2020 12:13 AM
09-29-2020 12:13 AM
The data should be 90000000. I typed it wrong the first time
09-29-2020 12:24 AM - edited 09-29-2020 12:26 AM
That's a lot of data!!! (>2GB per data copy!) Do you have LabVIEW 64bit? How much RAM do you have? What speed would seem reasonable to you?
This is only the "storage". What kind of "processing" are you planning to do?
What does the data represent and why do you need to handle it all at once?
Maybe a FGV is not the ideal tool here.