LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

FileToArray in Labwindows CVI runs slow and holds up my program

The Function FileToArray() in LabWindows CVI takes a long to save an array, granted the array i am saving is large (28000 elements). The function runs so slowly that it holds up the execution of my program, which is on a strict time schedule. Is there any way that i can speed up this function.
0 Kudos
Message 1 of 2
(3,022 Views)
Unfortunately, no, there is no way to speed up that function. Your options would be:

1) Do your own file I/O. You could probably write a faster routine yourself using binary storage.

2) Put the file saving operation in another thread so it doesn't block your main program thread.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 2
(3,022 Views)