I'm using Matlab's Data Acquisition Toolbox for interfacing with a National Instruments ADC. Unfortunately, I only have access to the hardware in my lab for limited parts of the day, but I'd like to be able to develop and test my code when I don't have access. Does anyone know of a way that I can collect some sample data, then feed it into the DAQ toolbox from a file instead of from the actual hardware? It needs to be input over time, same as it would with the NI hardware.
Current code:
s = daq.createSession('ni');
s.addAnalogInputChannel('Dev1',0,'Voltage');
s.Rate = 250;
s.DurationInSeconds = 30;
lh = s.addlistener('DataAvailable', @(src,event)myfunction(src,event));
s.NotifyWhenDataAvailableExceeds = 1000;
s.startBackground();
s.wait();
delete(lh);