01-16-2009 03:03 PM
Solved! Go to Solution.
01-16-2009 04:31 PM
Your DAQmx Read should be set to return a 1D Waveform array. The filter will then work. Even with a 1D DBL array wired to the filter function, you are throwing away all of the timing information (dt) and that is required if you want the filter to work correctly. With a DBL array, the dt will default to 1 sample/sec.
01-19-2009 07:18 AM
01-19-2009 08:38 AM
01-19-2009 09:03 AM
Dennis Knutson wrote:
Probe the output of the DAQmx Read. Each of the Y arrays in the waveform array should have 250 elements.
I have. That seems to be the problem and I am not sure if it is related to the timing I use for the 1d array. When it is 2d I get 250 samples each read. When it is 1d I get 4 samples, which is the number of channels.
01-19-2009 10:45 AM
01-19-2009 11:01 AM
01-19-2009 12:14 PM
Well, one thing you did not do was change the data type wire into the Obtain Queue. You have a 1D dbl array and it should be a 1D Waveform array. Right click on the output of the DAQmx Read and select Create Constant. This is what you want to wire in.
Look at the shipping example called Cont Acq&Graph Voltage - Write Data to File (TDMS).vi.
01-19-2009 03:44 PM