Electro Posted October 11, 2004 Report Share Posted October 11, 2004 Hallo, I can't get it to work: write and read a 4dimensional array to / from a file. Can somebody help? The file shows the way I've tried. :headbang: Quote Link to comment
FLX Posted October 11, 2004 Report Share Posted October 11, 2004 Hello, if you add a header information for your file, you are able to read first the dimension size. The write VI can do this for you. Set the header input of the write file function to true. good luck. Quote Link to comment
ahlers01 Posted October 16, 2004 Report Share Posted October 16, 2004 Hi, the problem is that the Open/Create/Replace File VI creates a byte stream file. You can use a datalog file instead (see LV's help system for an explanation of datalog files): 'Method A' in attached example code. Or you can flatten the data to a string, save it as string, read it back as string and unflatten it to a 4D array: 'Method B' in example Quote Link to comment
Electro Posted October 20, 2004 Author Report Share Posted October 20, 2004 Hi, a short thank you from me at the time for your help. So that's the difference between the normal and the advanced file i/o. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.