Quantcast
Channel: Digital I/O topics
Viewing all articles
Browse latest Browse all 2181

Time averaging, and calling DAQ Signal Multiple times

$
0
0

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. 


Viewing all articles
Browse latest Browse all 2181

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>