09-27-2010 09:17 PM
Hello everyone,
I am having trouble combing counter events and analog input events under the same time domain. I am using a hall effect sensor to output pulses to the counter. I am using these pulses to determine the RPM of a drive shaft, but must take the average pulses over a known time interval. Simultaneously I am using a load cell to measure the force produced by a propeller. The load cell is connected to an analog input channel. I would like to record the RPM and Force as a function of time. Has anyone done this in the past? or Has anyone used any devices that output a voltage as a function of RPM? That would make this a whole lot easier.
Hopefully I have been sufficiently clear and thanks for any help in advance.
09-28-2010 11:12 AM
Put the code to read the RPM and force inside a while loop. Use the Elapsed Time express vi to stop the loop when the desired time has elapsed. You can accumulate the measurements by wiring the read output to the loop border and turn indexing on. This will build an array of data points which you can manipulate after the loop. You can use Add Array Elements to get a total of all measurements. You can use the Mean function to get the average. You can wire the array to a waveform chart.