I have written a VI to acquire analogue data from Measurement Computing USB_1616HS using their Universal Library ULx VIs.
The main VI (attached) has:
- A loop ("Loop 1") for the user interface, updating as buttons are clicked. Once this loop stops, control passes to a timed loop ("Loop 2") that gets data from the USB device, typically every 500 milliseconds, and passes it to a waveform chart.
- When loop 2 stops, the data is saved. (As much as possible of the code has been put in separate VIs, but I need all the controls in the same VI so they update properly in their loops).
- These both sit inside a larger loop ("Loop 0") so the program then continues and starts loop 1 again ready for a new run.
I usually get a message "Not enough memory to complete this operation" quite soon after starting the data acquisition. The array sizes are all quite small eg 1000*3 - I don't think it is an array allocation problem. Windows Task manager shows Labview using 200 Mb (Windows 8, 64 bit, 16 Gb memory).
My guess is that it is something to do with the property nodes and the number of controls on the VI but without pinning it down, it's hard to know how to fix it. Any advice?
Thanks
Roger