Hello,
I am trying to create an test system that records the current and airflow of a pump.
I would like the test to follow the logic that can be seen in the snip below:
1. Monitor for current and flow continuously.
2. When current and flow reach a given threshold (indicating that a pump is in the test fixture) begin averaging current and flow values over one second.
3. After one second has elapsed, record the averaged values to a spreadsheet.
4. Monitor for current and flow such that when they drop below a given threshold the system knows that pump has completed testing.
5. repeat.
Where I am running into issues is when I try to average values using a for loop. Because I cannot use the myDAQ tool multiple times, I don't know how to pass the value from the DAQ more than once. Any advice on how I could take multiple averages using one daq channel would be greatly appreciated.
Thanks.